/* ========================================
   Ehliyet Sınav Soruları - Ana CSS
   Mobile-first, performans odaklı
   ======================================== */

/* === CSS Custom Properties === */
:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --success: #0d904f;
    --success-light: #e6f4ea;
    --danger: #d93025;
    --danger-light: #fce8e6;
    --warning: #f9ab00;
    --warning-light: #fef7e0;
    
    --text: #202124;
    --text-secondary: #5f6368;
    --text-light: #80868b;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-card: #ffffff;
    --border: #dadce0;
    --border-light: #e8eaed;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.1);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 4px 6px rgba(0,0,0,0.07), 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 10px 25px rgba(0,0,0,0.1), 0 20px 48px rgba(0,0,0,0.08);
    
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container: 1140px;
    --header-h: 64px;
    
    --transition: 0.2s ease;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-alt);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; color: var(--text); }

/* === Skip Link === */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 8px 24px;
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 10000;
    font-weight: 600;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* === Container === */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}
@media (min-width: 768px) {
    .container { padding: 0 24px; }
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    box-shadow: var(--shadow);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 6px 14px; font-size: 0.8125rem; }

/* === Header === */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text);
}
.logo:hover { color: var(--primary); }
.logo svg { flex-shrink: 0; }

/* Hamburger */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

#main-menu {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px 0;
}
#main-menu.open { display: block; }
#main-menu li a {
    display: block;
    padding: 12px 24px;
    color: var(--text);
    font-weight: 500;
    transition: background var(--transition);
}
#main-menu li a:hover { background: var(--bg-alt); color: var(--primary); }

@media (min-width: 768px) {
    .menu-toggle { display: none; }
    #main-menu {
        display: flex !important;
        position: static;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 4px;
    }
    #main-menu li a {
        padding: 8px 16px;
        border-radius: var(--radius);
        font-size: 0.9375rem;
    }
}

/* === Breadcrumbs === */
.breadcrumb-wrap { padding: 12px 0; }
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.8125rem;
    color: var(--text-light);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { margin: 0 4px; }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* === Hero Section === */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #3498db 50%, #2ecc71 100%);
    color: #fff;
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}
.hero h1 .year { color: rgba(255,255,255,0.85); }
.hero-desc {
    font-size: 1.0625rem;
    opacity: 0.92;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero .btn-primary {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}
.hero .btn-primary:hover {
    background: rgba(255,255,255,0.9);
    box-shadow: var(--shadow-lg);
}
.hero .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}
.hero .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 36px;
    position: relative;
    z-index: 1;
}
.stat-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    text-align: center;
    min-width: 100px;
}
.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
}
.stat-label {
    display: block;
    font-size: 0.8125rem;
    opacity: 0.85;
    margin-top: 2px;
}

@media (min-width: 768px) {
    .hero { padding: 72px 0; }
    .hero h1 { font-size: 2.5rem; }
    .hero-desc { font-size: 1.1875rem; }
    .stat-number { font-size: 2rem; }
    .stat-card { padding: 24px 32px; min-width: 130px; }
}

/* === Section === */
.section {
    padding: 48px 0;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-header h2 {
    font-size: 1.375rem;
    font-weight: 700;
}
.view-all {
    font-weight: 600;
    font-size: 0.875rem;
}

/* === Exam Grid === */
.exam-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px) {
    .exam-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .exam-grid { grid-template-columns: repeat(3, 1fr); }
}

.exam-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}
.exam-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.exam-card a {
    display: block;
    padding: 20px;
    color: inherit;
}
.exam-card-top {
    margin-bottom: 8px;
}
.exam-date {
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 600;
}
.exam-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}
.exam-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
}
.question-count { color: var(--text-secondary); }
.exam-action {
    color: var(--primary);
    font-weight: 600;
}

/* === Exam List (Archive) === */
.exam-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.exam-list-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.exam-list-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.exam-list-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: inherit;
    gap: 16px;
}
.exam-list-info h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.exam-list-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}
.exam-list-action {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* === Month Grid === */
.month-grid { margin-top: 16px; }
.year-group { margin-bottom: 24px; }
.year-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.year-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.year-group .year-title { width: 100%; }
.month-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 500;
    transition: all var(--transition);
    min-width: 120px;
}
.month-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}
.month-name { font-weight: 600; font-size: 0.9375rem; }
.month-count { font-size: 0.75rem; color: var(--text-secondary); margin-top: 4px; }

/* === Filter Tags === */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 24px;
}
.filter-tag {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition);
}
.filter-tag:hover, .filter-tag.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* === Info Section === */
.info-box {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow);
}
.info-box h2 {
    font-size: 1.375rem;
    margin-bottom: 24px;
    text-align: center;
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .info-grid { grid-template-columns: repeat(2, 1fr); }
}
.info-item h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}
.info-item p { color: var(--text-secondary); font-size: 0.9375rem; }
.info-item ul { margin-top: 8px; }
.info-item ul li {
    padding: 4px 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}
.info-item ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* === FAQ Section === */
.faq-section h2 {
    font-size: 1.375rem;
    margin-bottom: 20px;
}
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
}
.faq-item summary {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-light);
    transition: transform var(--transition);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: var(--bg-alt); }
.faq-answer {
    padding: 0 20px 16px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ========================================
   SINAV (QUIZ) SAYFASI
   ======================================== */
   
.exam-page { padding: 24px 0 48px; }

.exam-header {
    margin-bottom: 32px;
}
.exam-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.exam-meta-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.exam-date-badge, .exam-count-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}
.exam-date-badge svg, .exam-count-badge svg {
    color: var(--primary);
}

/* Quiz Controls */
.quiz-controls {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}
.quiz-progress { flex: 1; min-width: 200px; }
.progress-bar {
    height: 8px;
    background: var(--bg-alt);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 4px;
}
.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}
.progress-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.quiz-actions { display: flex; gap: 8px; }

/* Question Cards */
.questions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.question-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition);
}
.question-card.answered-correct { border-color: var(--success); }
.question-card.answered-wrong { border-color: var(--danger); }

.question-header {
    margin-bottom: 12px;
}
.question-number {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.question-text {
    margin-bottom: 16px;
    font-size: 0.9375rem;
    line-height: 1.7;
}
.question-text p { margin-bottom: 8px; }
.question-image {
    margin-bottom: 12px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    max-width: 500px;
}
.question-image img {
    width: 100%;
    height: auto;
}

/* Choices */
.choices-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.choice-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg);
    text-align: left;
    font-size: 0.9375rem;
    transition: all var(--transition);
    cursor: pointer;
}
.choice-btn:hover:not(.selected):not(.revealed) {
    border-color: var(--primary);
    background: var(--primary-light);
}
.choice-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-alt);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: all var(--transition);
}
.choice-text { flex: 1; }
.choice-image { max-width: 200px; margin-bottom: 4px; border-radius: var(--radius-sm); }
.choice-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: none;
}

/* Selected / Correct / Wrong states */
.choice-btn.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}
.choice-btn.selected .choice-letter {
    background: var(--primary);
    color: #fff;
}
.choice-btn.correct {
    border-color: var(--success);
    background: var(--success-light);
}
.choice-btn.correct .choice-letter {
    background: var(--success);
    color: #fff;
}
.choice-btn.correct .choice-icon {
    display: block;
    color: var(--success);
}
.choice-btn.correct .choice-icon::after {
    content: '✓';
    font-weight: 700;
    font-size: 1.125rem;
}
.choice-btn.wrong {
    border-color: var(--danger);
    background: var(--danger-light);
}
.choice-btn.wrong .choice-letter {
    background: var(--danger);
    color: #fff;
}
.choice-btn.wrong .choice-icon {
    display: block;
    color: var(--danger);
}
.choice-btn.wrong .choice-icon::after {
    content: '✗';
    font-weight: 700;
    font-size: 1.125rem;
}
.choice-btn.revealed {
    cursor: default;
    pointer-events: none;
}

/* Answer Reveal */
.answer-reveal { margin-top: 12px; }
.correct-answer-box {
    padding: 12px 16px;
    background: var(--success-light);
    border-left: 4px solid var(--success);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.875rem;
    color: var(--success);
}

/* === Result Panel === */
.result-panel {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid var(--border);
}
.result-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 480px;
    margin: 0 auto;
}
.result-card h2 {
    font-size: 1.25rem;
    margin-bottom: 24px;
}
.result-circle {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
}
.result-circle svg { width: 100%; height: 100%; }
.result-score {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.result-score span {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}
.result-score small {
    font-size: 0.875rem;
    color: var(--text-secondary);
}
.result-details {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 20px;
}
.result-stat { text-align: center; }
.result-stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}
.result-stat.correct .result-stat-num { color: var(--success); }
.result-stat.wrong .result-stat-num { color: var(--danger); }
.result-stat.empty .result-stat-num { color: var(--text-light); }
.result-stat span:last-child {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
}
.result-message {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 12px;
    border-radius: var(--radius);
}
.result-message.pass {
    background: var(--success-light);
    color: var(--success);
}
.result-message.fail {
    background: var(--danger-light);
    color: var(--danger);
}
.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Social Share Buttons === */
.social-share {
    margin-top: 40px;
    padding: 24px;
    background: var(--bg-alt);
    border-radius: 12px;
    text-align: center;
}
.social-share h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}
.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    font-family: inherit;
}
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.share-btn.whatsapp { background: #25D366; }
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #000; }
.share-btn.telegram { background: #0088cc; }
.share-btn.copy-link { background: var(--text-secondary); }

/* === Exam Navigation === */
.exam-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.nav-prev, .nav-next {
    display: block;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    color: var(--text);
    transition: all var(--transition);
}
.nav-prev:hover, .nav-next:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    color: var(--text);
}
.nav-label {
    display: block;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 4px;
}
.nav-title {
    font-size: 0.875rem;
    font-weight: 500;
}
.nav-next { text-align: right; }

/* === Archive Page === */
.archive-page, .monthly-page { padding: 24px 0 48px; }
.archive-header, .monthly-header { margin-bottom: 24px; }
.archive-header h1, .monthly-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.archive-subtitle, .monthly-subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}
.month-filter { margin-bottom: 24px; }
.month-filter h2 { font-size: 1rem; font-weight: 600; }
.other-months { margin-top: 48px; }
.other-months h2 { font-size: 1.125rem; margin-bottom: 4px; }

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text);
    transition: all var(--transition);
}
.pagination a:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}
.pagination .current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.pagination .dots {
    border: none;
    color: var(--text-light);
}

/* === Footer === */
.site-footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.8);
    padding: 48px 0 0;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-grid h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
}
.footer-about p {
    font-size: 0.875rem;
    line-height: 1.7;
}
.footer-nav ul li, .footer-months ul li { margin-bottom: 8px; }
.footer-nav ul li a, .footer-months ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    transition: color var(--transition);
}
.footer-nav ul li a:hover, .footer-months ul li a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8125rem;
}
.footer-disclaimer {
    margin-top: 8px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

/* === 404 Page === */
.error-page {
    padding: 80px 0;
    text-align: center;
}
.error-content h1 {
    font-size: 6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}
.error-content h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}
.error-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* === Utility === */
@media (max-width: 639px) {
    .exam-navigation { grid-template-columns: 1fr; }
    .hero-stats { gap: 12px; }
    .stat-card { padding: 12px 16px; min-width: 80px; }
    .stat-number { font-size: 1.25rem; }
    .quiz-controls { flex-direction: column; }
    .quiz-actions { width: 100%; justify-content: stretch; }
    .quiz-actions .btn { flex: 1; }
    .result-details { gap: 20px; }
}

/* Print styles */
@media print {
    .site-header, .site-footer, .quiz-controls, .exam-navigation, 
    .hero, .result-panel, .btn { display: none !important; }
    .question-card { break-inside: avoid; page-break-inside: avoid; border: 1px solid #ccc; }
    body { background: #fff; color: #000; }
}
