/* ════════════════════════════════════════════════════════════════════
   SkyraIrl — Navbar (mockup tasarımı)
   .snv kök sınıfı; eski .skyra-nav stillerinden bağımsız.
   ════════════════════════════════════════════════════════════════════ */
:root {
    --snv-bg: #05070e;
    --snv-line: rgba(40, 54, 82, 0.7);
    --snv-text: #e9f1ff;
    --snv-muted: rgba(160, 176, 204, 0.8);
    --snv-cyan: #46d9ff;
    --snv-violet: #8b7cff;
    --snv-amber: #f6c65b;
}

.snv {
    position: relative;
    z-index: 1040;
    padding: 0 !important;
    background: var(--snv-bg) !important;
    border-bottom: 1px solid var(--snv-line);
}

.snv-inner {
    width: min(100%, 1880px);
    margin: 0 auto;
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 7px clamp(14px, 1.6vw, 24px);
}

/* ── Marka ───────────────────────────────────────────────────────────── */
.snv-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    flex: 0 0 auto;
}

.snv-brand-mark {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(70, 217, 255, .22), rgba(139, 124, 255, .22));
    border: 1px solid rgba(70, 217, 255, .32);
}

.snv-brand-mark svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--snv-cyan);
    stroke-width: 1.7;
}

.snv-brand-name {
    color: var(--snv-text);
    font-size: 1.03rem;
    font-weight: 700;
    letter-spacing: .2px;
}

/* ── Toggler (mobil) ─────────────────────────────────────────────────── */
.snv-toggler {
    margin-left: auto;
    border: 1px solid var(--snv-line);
    border-radius: 8px;
    padding: 6px 9px;
}

.snv-toggler:focus { box-shadow: none; }

/* ── Açılır kapsayıcı ────────────────────────────────────────────────── */
.snv-collapse {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1 1 auto;
}

/* ── Ana menü ────────────────────────────────────────────────────────── */
.snv-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.snv-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: var(--snv-muted);
    font-size: .825rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.snv-link:hover {
    color: var(--snv-text);
    background: rgba(255, 255, 255, .04);
}

.snv-link--active {
    color: var(--snv-text);
    background: rgba(70, 217, 255, .10);
    border-color: rgba(70, 217, 255, .30);
}

.snv-ico {
    display: inline-flex;
}

.snv-ico svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Sağ küme ────────────────────────────────────────────────────────── */
.snv-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.snv-icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--snv-line);
    background: rgba(255, 255, 255, .02);
    color: var(--snv-muted);
    text-decoration: none;
    cursor: pointer;
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.snv-icon-btn:hover,
.snv-icon-btn.is-active {
    color: var(--snv-text);
    background: rgba(70, 217, 255, .08);
    border-color: rgba(70, 217, 255, .30);
}

.snv-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.snv-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ff5874;
    color: #fff;
    font-size: .59rem;
    font-weight: 700;
    line-height: 1;
}

/* ── Puan rozeti ─────────────────────────────────────────────────────── */
.snv-points {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(139, 124, 255, .45);
    background: rgba(139, 124, 255, .10);
    color: #d8d0ff;
    text-decoration: none;
    transition: border-color .16s ease, background .16s ease;
}

.snv-points:hover {
    border-color: rgba(139, 124, 255, .8);
    background: rgba(139, 124, 255, .16);
}

.snv-points-gem svg {
    width: 16px;
    height: 16px;
    fill: rgba(139, 124, 255, .25);
    stroke: var(--snv-violet);
    stroke-width: 1.6;
    stroke-linejoin: round;
}

.snv-points-val {
    color: #efeaff;
    font-size: .84rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ── Kullanıcı bloğu ─────────────────────────────────────────────────── */
.snv-user {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    padding: 0 9px 0 5px;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease;
}

.snv-user:hover {
    background: rgba(255, 255, 255, .03);
    border-color: var(--snv-line);
}

.snv-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid rgba(70, 217, 255, .35);
    background: radial-gradient(circle at 32% 28%, #2b3b66, #0c1326);
    color: #cfe6ff;
    font-size: .87rem;
    font-weight: 700;
}

.snv-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.snv-user-id {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.snv-user-id strong {
    color: var(--snv-text);
    font-size: .825rem;
    font-weight: 600;
}

.snv-user-id small {
    color: var(--snv-muted);
    font-size: .68rem;
}

.snv-chevron svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--snv-muted);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Font Awesome ikon boyutları (svg → FA geçişi) ───────────────────── */
.snv-ico i { font-size: 17px; line-height: 1; }
.snv-icon-btn i { font-size: 17px; line-height: 1; }
.snv-points-gem i { font-size: 15px; color: var(--snv-violet); }
.snv-chevron i { font-size: 12px; color: var(--snv-muted); }

/* ── Çıkış / giriş / kayıt ───────────────────────────────────────────── */
.snv-logout-form { margin: 0; }

.snv-cta {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--snv-amber), #e0a93b);
    color: #1a1206;
    font-weight: 600;
    text-decoration: none;
}

/* ── Tema anahtarı (switch) ──────────────────────────────────────────── */
.snv-switch {
    position: relative;
    flex: 0 0 auto;
    width: 52px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--snv-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: background .16s ease, border-color .16s ease;
}

.snv-switch:hover { border-color: rgba(70, 217, 255, .35); }

.snv-switch-bg {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--snv-muted);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.snv-switch-bg--moon { left: 8px; }
.snv-switch-bg--sun  { right: 8px; }

.snv-switch-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--snv-cyan);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
    transition: transform .2s ease, background .2s ease;
}

.snv-switch[aria-checked="true"] .snv-switch-knob,
/* Knob konumunu data-theme'den de sür (head'de paint'ten ÖNCE set edilir) →
   sayfa yüklemesinde knob doğru yerde başlar, aria-checked geç set edilince animasyon oynamaz.
   Kullanıcı tıkladığında apply() data-theme'i değiştirir → transition yine çalışır. */
html[data-theme="light"] .snv-switch-knob {
    transform: translateX(24px);
    background: var(--snv-amber);
}

/* ── Dil seçici ──────────────────────────────────────────────────────── */
.snv-lang {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    padding: 3px;
    border-radius: 9px;
    border: 1px solid var(--snv-line);
    gap: 2px;
}

.snv-lang a {
    padding: 4px 9px;
    border-radius: 6px;
    color: var(--snv-muted);
    font-size: .7rem;
    font-weight: 600;
    text-decoration: none;
}

.snv-lang a.is-active {
    background: rgba(70, 217, 255, .14);
    color: var(--snv-text);
}

/* ── Responsive (mobil collapse) ─────────────────────────────────────── */
@media (max-width: 991.98px) {
    .snv-collapse {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 0 6px;
    }

    .snv-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .snv-link { width: 100%; }

    .snv-right {
        margin-left: 0;
        flex-wrap: wrap;
        gap: 8px;
    }

    .snv-user { margin-left: auto; }
}
