/* ═══════════════════════════════════════════════════════════════════════════════════════════════
   İmtahan Mərkəzi — bölmənin stili. Mənbə: sahibin 2026-10 şablonu
   (`new_site_template/imtahanmarkazi.html`, sadə CSS, Plus Jakarta Sans).

   ‼ ƏL İLƏ YAZILIR, YIĞILMIR: köhnə Tailwind addımı (`tools/build-css.sh`) çıxarıldı — şablon özü
     sadə CSS idi. Bu faylı yenidən generasiya edən heç nə yoxdur; birbaşa redaktə edin.
   ‼ TƏK DÜZÜLÜŞ, MOBİL VARİANT YOXDUR (müştəri qərarı 2026-10-19 — 10-07-dəki uyğunlaşan variantı
     ləğv etdi): telefonda da kompüterdəki görünüş, kiçildilmiş halda. Səhifə 1240 px-dən dar olmur
     (`body` min-width + head.php-də `viewport width=1240`). Buraya @media en qaydası YAZMAYIN —
     telefon onsuz da 1240 px görür, qayda yalnız dar kompüter pəncərəsində işə düşüb görünüşü fərqləndirər.
   ═══════════════════════════════════════════════════════════════════════════════════════════════ */

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-badge: #dbeafe;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --success: #16a34a;
    --success-light: #dcfce7;
    --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    --card-hover-shadow: 0 12px 30px -4px rgba(37, 99, 235, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

* { box-sizing: border-box; }

/* ‼ text-size-adjust 100% MƏCBURİDİR: telefon brauzerləri (Android Chrome «font boosting», iOS) sabit
   enli səhifədə mətni öz-özünə böyüdür — kartlar daşar, görünüş kompüterdəkindən fərqlənərdi. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Yapışqan başlıq lövbərə keçəndə bölmə başlığını örtməsin. */
:target { scroll-margin-top: 96px; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    color: var(--text-main);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-width: 1240px; /* şablonun 1200-ü + kənar boşluq; head.php viewport ilə EYNİ rəqəm */
}

img { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1em; }

.container {
    width: 1180px;
    margin: 0 auto;
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 8px; top: -60px; z-index: 200;
    background: #fff; color: var(--primary); font-weight: 700;
    padding: 10px 14px; border-radius: var(--radius-sm); box-shadow: var(--card-shadow);
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.45); outline-offset: 2px; }

/* ── TOP BAR & HEADER ─────────────────────────────────────────────────────────────────────────── */

.topbar {
    width: 100%;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 500;
}

.topbar .container {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px 20px;
    flex-wrap: wrap;
    color: var(--text-muted);
    padding: 6px 0;
}

.topbar-info, .topbar-links {
    display: flex;
    gap: 6px 20px;
    align-items: center;
    flex-wrap: wrap;
}

.topbar a:hover { color: var(--primary); }
.topbar-links { font-weight: 600; color: var(--text-main); }

.site-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.nav {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Köhnə saytın loqosu qalır (sahib qərarı) — şablonun mətn loqosunun yerində. */
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { display: block; width: 150px; height: auto; }

.menu {
    display: flex;
    gap: 28px;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.menu a:not(.btn):hover,
.menu a[aria-current="page"] { color: var(--primary); }

/* ── BUTTONS ──────────────────────────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: var(--radius-md);
    padding: 10px 20px;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    gap: 8px;
    font-family: inherit;
    line-height: 1.3;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-light {
    background: #fff;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-light:hover {
    background: var(--bg-light);
    border-color: #cbd5e1;
}

.btn-white {
    background: #fff;
    color: var(--text-main);
    border-color: #fff;
}
.btn-white:hover { background: var(--primary-light); transform: translateY(-1px); }

.btn-block { width: 100%; }

/* ── HERO ─────────────────────────────────────────────────────────────────────────────────────── */

.hero {
    width: 100%;
    padding: 80px 0 70px;
    background: radial-gradient(100% 100% at 50% 0%, #eff6ff 0%, #ffffff 100%);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--primary-badge);
    color: var(--primary-hover);
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.hero h1 {
    font-size: 58px;
    line-height: 1.08;
    letter-spacing: -2px;
    font-weight: 800;
    margin: 24px 0 20px;
    color: var(--text-main);
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 760px;
    margin-bottom: 32px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.25s ease;
}

.feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.feature b {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature small {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
    display: block;
}

/* ── SECTIONS ─────────────────────────────────────────────────────────────────────────────────── */

.section {
    width: 100%;
    padding: 60px 0;
}

.section-alt { background: var(--bg-light); }

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 28px;
}

.section-head h1,
.section-head h2 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.2px;
    margin: 0 0 10px;
}

.section-head p { color: var(--text-muted); margin: 0; }

/* ── KATEQORİYA TABLARI ───────────────────────────────────────────────────────────────────────── */

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
/* ‼ JS-siz tablar GİZLİDİR (`hidden`), kartların hamısı görünür: düymə işləməyəndə ekranda qalmasın. */
.category-tabs[hidden] { display: none; }

.tab-btn {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 10px 22px;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.tab-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.catalog-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin: -24px auto 32px;
    max-width: 680px;
}

/* ── İMTAHAN KARTLARI ─────────────────────────────────────────────────────────────────────────── */

.exams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #fff;
    padding: 28px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exams-grid .card { align-self: stretch; }

.card:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-2px);
}

.card.is-hidden { display: none; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badges .badge { text-transform: uppercase; letter-spacing: 0.02em; font-size: 12px; }

.card-title {
    margin: 12px 0 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 800;
}
.badges + .card-title { margin-top: 12px; }
.card > div > .card-title:first-child { margin-top: 0; }

.price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin: 12px 0;
    line-height: 1.2;
}
.price.is-free { color: var(--success); }

.subjects {
    color: var(--text-muted);
    font-weight: 600;
    margin: 8px 0 16px;
    padding: 8px 12px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    display: block;
    font-size: 13px;
}

.details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 16px 0;
}

.details div {
    background: var(--bg-light);
    padding: 10px 6px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
}

.details small {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.details b {
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* «İmtahanın strukturu» — <details>: JS-siz də açılır, klaviatura ilə işləyir. */
.acc { margin-bottom: 12px; }

.clickable-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    list-style: none;
}
.clickable-trigger::-webkit-details-marker { display: none; }

.clickable-trigger:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-hover);
}

.clickable-trigger .arrow {
    transition: transform 0.3s ease;
    color: var(--primary);
    display: inline-flex;
}

.acc[open] > .clickable-trigger .arrow { transform: rotate(180deg); }
.acc[open] > .clickable-trigger { border-color: var(--primary); }

.accordion-inner {
    margin-top: 8px;
    padding: 16px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
}

.struct-list { list-style: none; margin: 0; padding: 0; }
.struct-list li { margin: 4px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.struct-list li span:last-child { color: var(--text-muted); white-space: nowrap; }

.accordion-inner hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 10px 0;
}

.struct-notes { list-style: none; margin: 0; padding: 0; color: var(--text-muted); font-weight: 600; }
.struct-notes li { margin: 3px 0; padding-left: 14px; position: relative; }
.struct-notes li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: #94a3b8; }

.about-title { font-size: 14px; font-weight: 800; margin: 0 0 6px; }

/* «İmtahan haqqında» məzmunu — platformadan gələn sanitizasiya olunmuş sadə HTML. */
.exam-about-body { line-height: 1.6; color: #334155; overflow-wrap: anywhere; }
.exam-about-body p { margin: .35em 0; }
.exam-about-body ul { list-style: disc; padding-left: 1.4em; margin: .35em 0; }
.exam-about-body ol { list-style: decimal; padding-left: 1.4em; margin: .35em 0; }
.exam-about-body h2, .exam-about-body h3, .exam-about-body h4 { font-size: 1.05em; font-weight: 700; margin: .6em 0 .3em; }
.exam-about-body a { color: var(--primary); text-decoration: underline; }
.exam-about-body code.math { font-family: "Cambria Math", "Times New Roman", serif; background: #fff; padding: 0 .3em; border-radius: 4px; }
.exam-about-body .math-rendered { font-family: inherit; }
.exam-about-body table { border-collapse: collapse; margin: .4em 0; display: block; overflow-x: auto; }
.exam-about-body th, .exam-about-body td { border: 1px solid var(--border-color); padding: .25em .5em; }

.card-cta { margin-top: 12px; }

/* Kataloq boş / əlçatmaz / mərkəz tapılmadı — üç ayrı hal (exam-cards.php). */
.state-card {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #fff;
    padding: 32px 28px;
    box-shadow: var(--card-shadow);
}
.state-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.state-card p { color: var(--text-muted); margin-bottom: 20px; }

/* ── NECƏ İŞLƏYİR ─────────────────────────────────────────────────────────────────────────────── */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
}

.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14px; margin: 0; }

.num {
    font-size: 14px;
    color: var(--primary);
    font-weight: 800;
    background: var(--primary-light);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 16px;
}

/* ── ANALİTİKA ────────────────────────────────────────────────────────────────────────────────── */

.analytics {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.analytics-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
}

.analytics-grid .card:hover { transform: none; }

.sample-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-muted);
}
.sample-label small {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    border: 1px dashed #cbd5e1;
    border-radius: 999px;
    padding: 2px 10px;
}

.big-score {
    font-size: 52px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin: 12px 0;
}

.trend { color: var(--success); font-weight: 700; margin: 0 0 20px; font-size: 14px; }

.list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.analytics-grid .card .list:first-child { margin-top: 0; }

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
}

.list-item b { color: var(--primary); }

.check-icon {
    width: 22px;
    height: 22px;
    background: var(--success-light);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.analytics-list { justify-content: center; }

/* ── ELANLAR (afişalar) ───────────────────────────────────────────────────────────────────────── */

.posters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.poster {
    margin: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #fff;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.poster img { display: block; width: 100%; height: auto; }
.poster figcaption { padding: 12px 16px; font-size: 14px; font-weight: 700; }

/* ── CTA ──────────────────────────────────────────────────────────────────────────────────────── */

.cta {
    width: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    text-align: center;
    border-radius: 28px;
    padding: 60px 24px;
}
.cta h2 { font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1.2; margin-bottom: 12px; }
.cta p { color: #cbd5e1; margin: 0 auto 24px; max-width: 560px; }

/* ── SADƏ MƏZMUN SƏHİFƏLƏRİ (qeydiyyat, kataloq qeydi) ───────────────────────────────────────── */

.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: 38px; font-weight: 800; line-height: 1.15; letter-spacing: -1.2px; margin-bottom: 16px; }
.prose h2 { font-size: 20px; font-weight: 800; margin: 32px 0 10px; }
.prose p, .prose li { color: #475569; }
.prose ul { padding-left: 1.3em; margin: 0; }
.prose li { margin: 6px 0; }
.prose .muted { font-size: 14px; color: var(--text-muted); }
.prose .spaced { margin-top: 28px; }
.prose a:not(.btn) { color: var(--primary); font-weight: 600; }
.prose a:not(.btn):hover { text-decoration: underline; }

.info-box {
    max-width: 760px;
    margin: 48px auto 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    padding: 28px;
}
.info-box h2 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.info-box ul { margin: 0; padding-left: 1.3em; color: #475569; }
.info-box li { margin: 6px 0; }

/* ── FOOTER ───────────────────────────────────────────────────────────────────────────────────── */

.site-footer {
    width: 100%;
    padding: 60px 0 32px;
    background: #fff;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
}

.site-footer h4 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.site-footer p { color: var(--text-muted); }
.site-footer .logo img { width: 170px; margin-bottom: 16px; }

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 2.2;
    color: var(--text-muted);
    font-weight: 500;
}
.site-footer ul a:hover { color: var(--primary); }
.site-footer .hours { color: var(--text-main); font-weight: 600; }

.disclaimer {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}
.disclaimer p { margin: 0 0 12px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 8px 20px;
    flex-wrap: wrap;
}
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--primary); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
