/* ============================================
   VIEWER PAGE SPECIFIC STYLES (viewer.html)
   ============================================ */

/* Viewer Container */
.viewer-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Viewer Header */
.viewer-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #2c3e50;
}

.viewer-header h1 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 10px;
}

/* Loading & Error States */
#loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2em;
    color: #666;
}

#error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    margin: 20px 0;
}

/* Content Area */
#content {
    line-height: 1.8;
}

#content h1 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 10px;
}

#content h2 {
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 12px;
}

#content h3 {
    color: #34495e;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Syntax Highlighting Override */
#content pre code {
    display: block;
    padding: 0;
}

/* Responsive for Viewer */
@media (max-width: 768px) {
    .viewer-container {
        padding: 20px;
    }

    .viewer-header h1 {
        font-size: 1.5em;
    }
}
