:root {
    /* ── Ana renkler ── */
    --navy:          #1B2F5E;
    --navy-dark:     #111E3F;
    --navy-light:    #2A4A8A;
    --yellow:        #F5C400;
    --yellow-dark:   #D4A800;
    --red:           #C8102E;
    --white:         #FFFFFF;
    --white-80:      rgba(255,255,255,0.80);
    --white-40:      rgba(255,255,255,0.40);
    --white-10:      rgba(255,255,255,0.10);
    --white-06:      rgba(255,255,255,0.06);

    /* ── Zemin sistemi ── */
    --bg-base:       #1B2F5E;
    --bg-surface:    #243770;
    --bg-elevated:   #2E4485;

    /* ── Kenarlık ── */
    --border:         rgba(255,255,255,0.12);
    --border-hover:   rgba(245,196,0,0.30);
    --border-subtle:  rgba(255,255,255,0.12);
    --border-default: rgba(255,255,255,0.18);

    /* ── Metin ── */
    --text-pri:       #FFFFFF;
    --text-sec:       rgba(255,255,255,0.70);
    --text-muted:     rgba(255,255,255,0.40);
    --text-primary:   #FFFFFF;
    --text-secondary: rgba(255,255,255,0.70);

    /* ── Yardımcı ── */
    --yellow-dim:    rgba(245,196,0,0.15);
    --yellow-muted:  rgba(245,196,0,0.15);
    --success:       #22c55e;
    --warning:       #F5C400;
    --error:         #C8102E;
}

html, body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-pri);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Anchor hedefleri için sticky navbar offset */
section[id] {
    scroll-margin-top: 80px;
}

/* Blazor error UI */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(245,196,0,0.10);
    border-top: 1px solid rgba(245,196,0,0.25);
    color: #ffffff;
    padding: 12px 16px;
    text-align: center;
    z-index: 1000;
    font-size: 14px;
}

/* ══════════════════════════════════════
   Animasyonlar
══════════════════════════════════════ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes shimmer {
    from { background-position: -200% 0; }
    to   { background-position:  200% 0; }
}

/* Sayfa yüklenme animasyonu (hero) */
.animate-in {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.animate-fade {
    animation: fadeIn 0.4s ease forwards;
    opacity: 0;
}

/* Stagger delay yardımcıları */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ── Scroll-triggered .reveal sistemi (mevcut) ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal.delay-100 { transition-delay: 100ms; }
.reveal.delay-200 { transition-delay: 200ms; }
.reveal.delay-300 { transition-delay: 300ms; }

/* ── Scroll-triggered .anim sistemi (yeni) ── */
.anim {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 500ms ease, transform 500ms ease;
}
.anim.animate-in {
    opacity: 1;
    transform: translateY(0);
}
.anim-delay-1 { transition-delay: 100ms; }
.anim-delay-2 { transition-delay: 200ms; }
.anim-delay-3 { transition-delay: 300ms; }
.anim-delay-4 { transition-delay: 400ms; }

/* ══════════════════════════════════════
   Etkileşim
══════════════════════════════════════ */

.card-hover {
    transition: border-color 150ms ease, transform 150ms ease;
}
.card-hover:hover {
    transform: translateY(-2px);
}

.btn-press:active {
    transform: scale(0.98);
}

/* ══════════════════════════════════════
   Nav linkleri (anchor tabanlı)
══════════════════════════════════════ */

.nav-link {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-sec);
    text-decoration: none;
    transition: color 150ms ease, background 150ms ease;
    border-bottom: 2px solid transparent;
    line-height: 1.5;
}
.nav-link:hover {
    color: var(--text-pri);
    background: rgba(255,255,255,0.06);
}
.nav-link.nav-active {
    color: var(--yellow);
    border-bottom-color: var(--yellow);
}

/* ══════════════════════════════════════
   Loading skeleton
══════════════════════════════════════ */

.skeleton {
    background: linear-gradient(90deg, #243770 25%, #2E4485 50%, #243770 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}

/* ══════════════════════════════════════
   Details / Accordion
══════════════════════════════════════ */

details > summary {
    list-style: none;
}
details > summary::-webkit-details-marker {
    display: none;
}

details[open] > summary .faq-question {
    color: var(--yellow);
}

details[open] {
    border-left: 3px solid var(--yellow) !important;
}

details[open] > summary .chevron {
    transform: rotate(180deg);
    color: var(--yellow);
}

.chevron {
    transition: transform 150ms ease, color 150ms ease;
    flex-shrink: 0;
}

/* ══════════════════════════════════════
   Scrollbar
══════════════════════════════════════ */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-dark); }
::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ══════════════════════════════════════
   Selection
══════════════════════════════════════ */

::selection {
    background: rgba(245,196,0,0.25);
    color: #ffffff;
}

/* ══════════════════════════════════════
   Guide section — dikey çizgi
══════════════════════════════════════ */

.step-line {
    width: 2px;
    background: var(--border-subtle);
    flex-grow: 1;
    min-height: 24px;
}

/* ══════════════════════════════════════
   Başvuru Rehberi — interaktif adım durumları
══════════════════════════════════════ */

.step-badge--done {
    background: rgba(34, 197, 94, 0.15) !important;
    border-color: rgba(34, 197, 94, 0.40) !important;
    color: var(--success) !important;
}

.step-line--done {
    background: rgba(34, 197, 94, 0.35);
}

.step-card--done {
    border-color: rgba(34, 197, 94, 0.25) !important;
    background: rgba(34, 197, 94, 0.05) !important;
}

.step-card--done-final {
    border-color: rgba(34, 197, 94, 0.30) !important;
}

.btn-complete {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    min-height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.60);
    background: transparent;
    cursor: pointer;
    transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.btn-complete:hover:not(.btn-complete--done) {
    border-color: rgba(34, 197, 94, 0.40);
    color: var(--success);
}

.btn-complete--done {
    border-color: rgba(34, 197, 94, 0.40);
    color: var(--success);
    background: rgba(34, 197, 94, 0.10);
}

.rehber-progress-track {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.10);
    overflow: hidden;
    margin-bottom: 24px;
}

.rehber-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--success);
    transition: width 400ms ease;
}

.rehber-congrats {
    border-radius: 14px;
    padding: 20px 24px;
    border: 1px solid rgba(34, 197, 94, 0.30);
    background: rgba(34, 197, 94, 0.08);
    margin-top: 24px;
    animation: fadeInUp 0.4s ease forwards;
}

/* ══════════════════════════════════════
   Input — sarı focus glow
══════════════════════════════════════ */

.input-yellow:focus {
    outline: none;
    border-color: rgba(245,196,0,0.6);
    box-shadow: 0 0 0 3px var(--yellow-dim);
}

/* ══════════════════════════════════════
   Hero — glow & stats bar
══════════════════════════════════════ */

.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0c1830 0%, #111e3f 45%, #0a1525 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-glow {
    position: absolute;
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,196,0,0.10) 0%, rgba(245,196,0,0.03) 45%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-glow-2 {
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30,58,110,0.6) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 3rem;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
    overflow: hidden;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.stats-bar > div {
    flex: 1;
    padding: 18px 16px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.08);
    font-weight: 800;
    font-size: 1.375rem;
    color: var(--yellow);
    line-height: 1;
}

.stats-bar > div:last-child {
    border-right: none;
}

.stats-bar > div span {
    display: block;
    font-size: 0.625rem;
    font-weight: 500;
    color: rgba(255,255,255,0.40);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 6px;
}

/* ══════════════════════════════════════
   Nasıl Çalışır — adım kartları
══════════════════════════════════════ */

.how-step-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    transition: border-color 200ms ease, transform 200ms ease, background 200ms ease;
}

.how-step-card:hover {
    border-color: rgba(245,196,0,0.25);
    transform: translateY(-3px);
    background: rgba(245,196,0,0.04);
}

.how-step-card--accent {
    border-color: rgba(245,196,0,0.30);
    background: rgba(245,196,0,0.06);
}

.how-step-card--accent:hover {
    border-color: rgba(245,196,0,0.50);
    background: rgba(245,196,0,0.10);
}

.how-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(245,196,0,0.12);
    border: 1px solid rgba(245,196,0,0.30);
    color: var(--yellow);
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.how-step-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    line-height: 1;
}

.how-step-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.how-step-card p {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.55;
}

/* ══════════════════════════════════════
   Responsive fixes for new sections
══════════════════════════════════════ */

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
    }

    .stats-bar {
        max-width: 320px;
        flex-direction: column;
        margin-top: 2rem;
    }

    .stats-bar > div {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: 14px 12px;
        font-size: 1.2rem;
    }

    .stats-bar > div:last-child {
        border-bottom: none;
    }

    #rehber .flex.gap-5 {
        gap: 0.75rem;
    }

    #rehber .step-line {
        min-height: 18px;
    }

    #rehber .rounded-xl.p-5 {
        padding: 1rem;
    }
}

@media (max-width: 420px) {
    .hero-glow {
        width: 440px;
        height: 440px;
    }

    .hero-glow-2 {
        width: 260px;
        height: 260px;
    }

    .stats-bar {
        max-width: 280px;
    }

    .stats-bar > div {
        font-size: 1.05rem;
    }
}

/* ══════════════════════════════════════
   Scroll progress bar
══════════════════════════════════════ */

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--yellow);
    z-index: 1000;
    border-radius: 0 2px 2px 0;
    transition: width 80ms linear;
    pointer-events: none;
}

/* ══════════════════════════════════════
   Back-to-top floating button
══════════════════════════════════════ */

#back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px) scale(0.9);
    transition: opacity 0.25s ease, transform 0.25s ease, filter 0.15s ease;
    z-index: 50;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
#back-to-top:hover {
    filter: brightness(1.1);
}
#back-to-top:active {
    transform: scale(0.93);
}

/* ══════════════════════════════════════
   Mobile menu smooth slide
══════════════════════════════════════ */

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease,
                padding-top 0.25s ease, padding-bottom 0.25s ease;
}
.mobile-menu--open {
    max-height: 240px;
    opacity: 1;
    pointer-events: auto;
    padding-top: 12px;
    padding-bottom: 12px;
}

/* ══════════════════════════════════════
   FAQ smooth open/close
══════════════════════════════════════ */

@keyframes faqSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes faqSlideUp {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-6px); }
}

/* ══════════════════════════════════════
   Footer linkleri
══════════════════════════════════════ */

.footer-link {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 150ms ease;
}
.footer-link:hover {
    color: rgba(255,255,255,0.80);
}

/* ══════════════════════════════════════
   TCKN karakter sayacı
══════════════════════════════════════ */

.input-counter {
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.25);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    transition: color 200ms ease;
}
.input-counter.complete {
    color: rgba(245,196,0,0.70);
}
