/* =========================================================
   Alper Hoca | YKS & ALES Matematik
   Bağımlılıksız, elle yazılmış stil dosyası (build gerekmez)
   ========================================================= */

:root {
    --navy-900: #0f1b3d;
    --navy-800: #16255a;
    --navy-700: #1e3a8a;
    --indigo: #4f46e5;
    --indigo-soft: #eef2ff;
    --amber: #f59e0b;
    --amber-dark: #b45309;
    --amber-soft: #fef3c7;
    --green: #16a34a;
    --green-soft: #dcfce7;
    --red: #dc2626;
    --red-soft: #fee2e2;
    --wa: #25d366;
    --wa-dark: #128c7e;
    --ink: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --paper: #fbfcfe;
    --white: #ffffff;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(15, 27, 61, .06), 0 8px 24px -12px rgba(15, 27, 61, .18);
    --shadow-lg: 0 20px 50px -20px rgba(15, 27, 61, .35);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    line-height: 1.6;
    background-color: var(--paper);
    /* Kareli defter dokusu */
    background-image:
        linear-gradient(rgba(79, 70, 229, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 70, 229, .045) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy-900); letter-spacing: -.02em; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: 5rem 0; }
.section-alt { background: rgba(255, 255, 255, .85); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
    display: inline-block;
    font-family: var(--mono);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--indigo);
    background: var(--indigo-soft);
    padding: .3rem .7rem;
    border-radius: 999px;
    margin-bottom: .9rem;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font: inherit;
    font-weight: 600;
    font-size: .98rem;
    padding: .8rem 1.3rem;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    text-decoration: none !important;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled, .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--navy-800); color: var(--white); box-shadow: 0 6px 16px -6px rgba(22, 37, 90, .6); }
.btn-primary:hover { background: var(--navy-700); }
.btn-amber { background: var(--amber); color: var(--navy-900); box-shadow: 0 6px 16px -6px rgba(245, 158, 11, .7); }
.btn-amber:hover { background: #fbbf24; }
.btn-wa { background: var(--wa); color: #053b22; box-shadow: 0 6px 16px -6px rgba(37, 211, 102, .7); }
.btn-wa:hover { background: #3ee07a; }
.btn-outline { background: var(--white); color: var(--navy-800); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy-800); }
.btn-block { width: 100%; }
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* ---------- Üst menü ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--navy-900); text-decoration: none !important; }
.brand-logo {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--navy-800), var(--indigo));
    color: var(--amber);
    font-weight: 800;
    font-size: 1.35rem;
    font-family: Georgia, "Times New Roman", serif;
}
.brand-text strong { display: block; font-size: 1.08rem; line-height: 1.1; }
.brand-text small { display: block; font-size: .72rem; color: var(--muted); font-family: var(--mono); }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: .5rem .8rem; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: .94rem; }
.nav-links a:hover { background: var(--indigo-soft); color: var(--indigo); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: .45rem .6rem; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; display: block; }

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0 4rem; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.badge {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .8rem; font-weight: 600;
    padding: .3rem .75rem; border-radius: 999px;
    background: var(--white); border: 1px solid var(--line); color: var(--navy-800);
}
.badge-amber { background: var(--amber-soft); border-color: #fde68a; color: var(--amber-dark); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
.hero h1 .hl { position: relative; white-space: nowrap; color: var(--indigo); }
.hero h1 .hl::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .05em; height: .32em;
    background: var(--amber-soft); z-index: -1; border-radius: 4px;
}
.hero-lead { font-size: 1.12rem; color: #475569; max-width: 560px; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-note { margin-top: 1.2rem; font-size: .88rem; color: var(--muted); }

/* Hero sağ: "tahta" kartı */
.board {
    background: var(--navy-900);
    color: #e2e8f0;
    border-radius: 22px;
    padding: 1.8rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    border: 6px solid #6b4f2a;
}
.board::before {
    content: ""; position: absolute; inset: 0; border-radius: 16px; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 22px 22px;
}
.board-title { font-family: var(--mono); font-size: .78rem; color: var(--amber); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; position: relative; }
.board-formula { position: relative; padding: .8rem 0; border-bottom: 1px dashed rgba(255, 255, 255, .15); font-size: 1.05rem; }
.board-formula:last-of-type { border-bottom: 0; }
.board-formula span { display: block; font-size: .75rem; color: #94a3b8; margin-bottom: .2rem; font-family: var(--mono); }
.board-formula .katex { color: #f8fafc; }

/* ---------- Kartlar ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); border-color: #c7d2fe; }
.card h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card .card-foot { margin-top: auto; padding-top: 1rem; }
.icon-box {
    width: 46px; height: 46px; border-radius: 12px;
    display: grid; place-items: center;
    margin-bottom: 1rem;
    background: var(--indigo-soft); color: var(--indigo);
    font-size: 1.35rem;
}
.icon-box.amber { background: var(--amber-soft); color: var(--amber-dark); }
.icon-box.green { background: var(--green-soft); color: var(--green); }
.icon-box svg { width: 24px; height: 24px; }

.tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: .72rem; font-weight: 700;
    padding: .18rem .55rem; border-radius: 6px;
    background: var(--indigo-soft); color: var(--indigo);
    margin-right: .3rem; margin-bottom: .6rem;
}
.tag.ales { background: var(--amber-soft); color: var(--amber-dark); }
.tag.ayt { background: #fae8ff; color: #a21caf; }
.tag.free { background: var(--green-soft); color: var(--green); }

/* Sınav hedef kartları */
.exam-card { padding: 2rem; }
.exam-card ul { margin: 0 0 1.2rem; padding: 0; list-style: none; }
.exam-card li { padding: .45rem 0 .45rem 1.7rem; position: relative; color: #475569; border-bottom: 1px dashed var(--line); }
.exam-card li:last-child { border-bottom: 0; }
.exam-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

/* Ürün kartları */
.product-price { font-size: 1.6rem; font-weight: 800; color: var(--navy-900); margin: .2rem 0 .8rem; }
.product-price small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.product-meta { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.secure-note { display: flex; align-items: center; gap: .5rem; justify-content: center; font-size: .85rem; color: var(--muted); margin-top: 1.5rem; }

/* ---------- Seviye testi CTA bandı ---------- */
.cta-band {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    color: var(--white);
    border-radius: 24px;
    padding: 2.8rem;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
    box-shadow: var(--shadow-lg);
    position: relative; overflow: hidden;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.cta-band p { color: #cbd5e1; }
.cta-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.cta-stat { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 1rem; text-align: center; }
.cta-stat b { display: block; font-size: 1.6rem; color: var(--amber); }
.cta-stat span { font-size: .8rem; color: #cbd5e1; }

/* ---------- Özel ders & form ---------- */
.tutor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.steps { list-style: none; margin: 0 0 1.5rem; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 1.3rem 3.2rem; counter-increment: step; }
.steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 2.2rem; height: 2.2rem; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--amber); color: var(--navy-900); font-weight: 800;
}
.steps li strong { display: block; color: var(--navy-900); }
.steps li span { color: var(--muted); font-size: .95rem; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow-lg); }
.form-card h3 { font-size: 1.3rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--navy-900); }
.field input,
.field select,
.field textarea {
    width: 100%;
    font: inherit;
    font-size: .95rem;
    padding: .75rem .9rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: #f8fafc;
    color: var(--ink);
    transition: border-color .15s ease, background .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--indigo); background: var(--white); }
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: .4rem 0 1.2rem; }
.check input { margin-top: .25rem; width: 1rem; height: 1rem; accent-color: var(--indigo); flex-shrink: 0; }
.form-hint { font-size: .8rem; color: var(--muted); text-align: center; margin: .8rem 0 0; }

/* ---------- SSS ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
    background: var(--white); border: 1px solid var(--line); border-radius: 14px;
    padding: 1.1rem 1.3rem; margin-bottom: .75rem; box-shadow: var(--shadow);
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy-900); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--indigo); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .8rem 0 0; color: #475569; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #cbd5e1; padding: 3.5rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: .8rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: var(--amber); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; font-size: .93rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .83rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; color: #94a3b8; }

/* ---------- Yüzen WhatsApp butonu ---------- */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 60;
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--wa); color: var(--white);
    display: grid; place-items: center;
    box-shadow: 0 10px 25px -8px rgba(18, 140, 126, .8);
    transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Bildirim (toast) ---------- */
.toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120%);
    background: var(--navy-900); color: var(--white);
    padding: .85rem 1.3rem; border-radius: 12px; font-size: .92rem;
    box-shadow: var(--shadow-lg); z-index: 100; max-width: calc(100% - 2rem);
    transition: transform .3s ease;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* =========================================================
   Online Deneme Sayfası
   ========================================================= */
.quiz-wrap { max-width: 860px; margin-inline: auto; }
.quiz-intro { text-align: center; }
.quiz-intro .grid { margin: 2rem 0; text-align: left; }
.quiz-bar {
    position: sticky; top: 68px; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px);
    border: 1px solid var(--line); border-radius: 14px;
    padding: .8rem 1.1rem; margin-bottom: 1.5rem; box-shadow: var(--shadow);
}
.timer { font-family: var(--mono); font-weight: 700; font-size: 1.25rem; color: var(--navy-900); }
.timer.warn { color: var(--red); }
.progress { flex: 1; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--indigo), var(--amber)); transition: width .25s ease; }
.progress-label { font-size: .85rem; color: var(--muted); white-space: nowrap; }

.question {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.5rem; margin-bottom: 1rem; box-shadow: var(--shadow);
}
.q-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.q-num { font-family: var(--mono); font-weight: 700; color: var(--indigo); }
.q-text { font-size: 1.05rem; margin-bottom: 1rem; color: var(--ink); }
.options { display: grid; gap: .5rem; }
.option {
    display: flex; align-items: center; gap: .8rem;
    padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 12px;
    cursor: pointer; background: #f8fafc; transition: border-color .15s ease, background .15s ease;
    font-size: 1rem;
}
.option:hover { border-color: #a5b4fc; background: var(--white); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .letter {
    width: 2rem; height: 2rem; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center;
    border: 1.5px solid var(--line); background: var(--white);
    font-weight: 700; font-size: .9rem; color: var(--navy-800);
}
.option.selected { border-color: var(--indigo); background: var(--indigo-soft); }
.option.selected .letter { background: var(--indigo); border-color: var(--indigo); color: var(--white); }
.option.correct { border-color: var(--green); background: var(--green-soft); }
.option.correct .letter { background: var(--green); border-color: var(--green); color: var(--white); }
.option.wrong { border-color: var(--red); background: var(--red-soft); }
.option.wrong .letter { background: var(--red); border-color: var(--red); color: var(--white); }
.quiz-done .option { cursor: default; }
.solution {
    display: none; margin-top: 1rem; padding: 1rem 1.1rem;
    background: var(--amber-soft); border-left: 4px solid var(--amber); border-radius: 8px;
    font-size: .95rem; color: #78350f;
}
.quiz-done .solution { display: block; }
.solution b { color: var(--amber-dark); }

.result-card {
    background: var(--white); border: 1px solid var(--line); border-radius: 22px;
    padding: 2rem; margin-bottom: 2rem; box-shadow: var(--shadow-lg); text-align: center;
}
.result-net { font-size: 3.4rem; font-weight: 800; color: var(--navy-900); line-height: 1; margin: .3rem 0; }
.result-level { display: inline-block; font-weight: 700; padding: .35rem .9rem; border-radius: 999px; margin: .6rem 0 1rem; }
.result-level.lvl-ileri { background: var(--green-soft); color: var(--green); }
.result-level.lvl-orta { background: var(--amber-soft); color: var(--amber-dark); }
.result-level.lvl-temel { background: var(--indigo-soft); color: var(--indigo); }
.result-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 1.5rem 0; }
.result-stats div { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: .8rem; }
.result-stats b { display: block; font-size: 1.4rem; color: var(--navy-900); }
.result-stats span { font-size: .8rem; color: var(--muted); }
.result-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.quiz-submit { text-align: center; margin: 2rem 0; }

/* ---------- Yasal metin sayfası ---------- */
.legal { max-width: 820px; margin-inline: auto; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 2.5rem; box-shadow: var(--shadow); }
.legal h1 { font-size: 1.9rem; }
.legal h2 { font-size: 1.2rem; margin-top: 1.8rem; }
.legal p, .legal li { color: #475569; }
.notice { background: var(--amber-soft); border: 1px solid #fde68a; color: #78350f; padding: 1rem 1.2rem; border-radius: 12px; font-size: .92rem; margin-bottom: 1.5rem; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
    .hero-grid, .tutor-grid, .cta-band { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        background: var(--white); border-bottom: 1px solid var(--line); padding: .75rem 1.25rem 1rem;
        box-shadow: var(--shadow);
    }
    .nav-links.open { display: flex; }
    .nav-links .btn { margin-top: .5rem; }
    .section { padding: 3.5rem 0; }
    .grid-2, .grid-3, .grid-4, .field-row, .footer-grid { grid-template-columns: 1fr; }
    .cta-band { padding: 2rem 1.5rem; }
    .result-stats { grid-template-columns: repeat(2, 1fr); }
    .legal { padding: 1.5rem; }
    .quiz-bar { top: 68px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
