/* ============================================================
   OG MOBIL ALT NAVIGASYON
   Sadece mobilde görünür, 5 sekmeli, sabit
   ============================================================ */

/* Body alt padding — içerik nav'ın altında kalmasın */
@media (max-width: 768px) {
    body.has-mobile-bottom-nav {
        padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    }
}

/* Nav kabı */
.og-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .og-bottom-nav {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        background: #16161b;
        border-top: 0.5px solid rgba(255, 255, 255, 0.08);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        height: calc(68px + env(safe-area-inset-bottom, 0px));
        align-items: stretch;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
    }
}

/* Her bir sekme */
.og-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    color: #888;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: color 0.15s ease, background 0.15s ease;
    border: none;
    background: transparent;
    cursor: pointer;
    min-height: 44px;
}

.og-nav-item:hover,
.og-nav-item:focus {
    color: #AFA9EC;
    text-decoration: none;
}

.og-nav-item:active {
    background: rgba(83, 74, 183, 0.1);
}

/* İkon */
.og-nav-icon {
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.og-nav-item:active .og-nav-icon {
    transform: scale(0.9);
}

/* Yazı */
.og-nav-label {
    line-height: 1;
    letter-spacing: 0.2px;
}

/* Profil avatarı */
.og-nav-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.15s ease;
}

.og-nav-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #534AB7;
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* ============================================================
   AKTİF SEKME
   ============================================================ */

.og-nav-item.og-nav-active {
    color: #534AB7;
    font-weight: 600;
}

.og-nav-item.og-nav-active .og-nav-icon {
    fill: #534AB7;
}

.og-nav-item.og-nav-active .og-nav-avatar {
    border-color: #534AB7;
}

/* Ana sayfa ikonu için özel: aktifken dolu */
.og-nav-item[data-nav="home"] .og-nav-icon {
    fill: transparent;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
}

.og-nav-item[data-nav="home"].og-nav-active .og-nav-icon {
    fill: #534AB7;
    stroke: #534AB7;
}

/* ============================================================
   DARK MODE ZATEN KOYU — LIGHT MODE DESTEĞİ
   ============================================================ */

@media (prefers-color-scheme: light) {
    .og-bottom-nav {
        background: #ffffff;
        border-top-color: rgba(0, 0, 0, 0.08);
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
    }

    .og-nav-item {
        color: #666;
    }

    .og-nav-item.og-nav-active {
        color: #534AB7;
    }
}

/* Theme variable integration (if exists) */
[data-theme="light"] .og-bottom-nav {
    background: #ffffff;
    border-top-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .og-nav-item {
    color: #666;
}
[data-theme="light"] .og-nav-item.og-nav-active {
    color: #534AB7;
}

/* ============================================================
   HAREKET AZALTMA TERCİHİ
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .og-nav-item,
    .og-nav-icon {
        transition: none;
    }
}
