/* MOBILE NAVIGATION CSS 
    Kural: 7 İkonlu Dar Yapı, PWA uyumlu, Safe Area destekli.
*/

:root {
    --nav-bg: rgba(2, 6, 23, 0.95); /* Arkadaki içeriği daha iyi kapatması için opaklığı artırdım */
    --nav-active: #ef4444;         
    --nav-inactive: #9ca3af;      
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* --- KRİTİK KURAL: GÖRÜNMEZ BAŞLANGIÇ --- */
#main-content {
    opacity: 0;
    will-change: transform, opacity;
}

/* Ana Bar Konteyneri (Yükseklik 56px'e çekildi) */
#mobile-navigation-bar {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: var(--safe-area-bottom);
    height: calc(56px + var(--safe-area-bottom)); 
    will-change: transform;
}

/* Menü Elemanları (Daha Dar ve Küçük) */
.nav-item {
    color: var(--nav-inactive);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    min-width: 0; /* Flexbox sıkıştırma desteği */
}

.nav-item.active {
    color: var(--nav-active);
}

.nav-item i {
    font-size: 1.1rem !important; /* İkonlar küçültüldü */
    margin-bottom: 1px;
}

.nav-item span {
    font-size: 9px !important; /* Metinler küçültüldü */
    letter-spacing: -0.03em;
    font-weight: 500;
}

/* Paylaş Butonu (Yeni Küçük Baklava Tasarımı) */
.share-btn-wrapper {
    position: relative;
    margin-top: -1.2rem; /* Bar yüksekliği azaldığı için yukarı kaydırma azaltıldı */
}

.share-btn-small {
    width: 2.8rem; /* 3.5rem'den 2.8rem'e düştü */
    height: 2.8rem;
    background: #dc2626;
    color: white !important;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(45deg);
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    transition: transform 0.2s ease;
}

.dark .share-btn-small {
    border-color: #18181b; /* dark:bg-zinc-900 ile uyumlu */
}

.share-btn-small i {
    transform: rotate(-45deg);
    font-size: 1.2rem !important;
}

/* Bildirim ve Mesaj Rozetleri (Küçültülmüş İkonlara Göre Hizalandı) */
.nav-item .absolute {
    pointer-events: none;
    top: 2px !important;
    right: 15% !important; /* İkonun üzerine daha iyi oturması için yüzde verildi */
}

/* --- TAM SAYFA HAMBURGER PANEL --- */
#mobile-ext-panel {
    padding-top: env(safe-area-inset-top, 20px);
    z-index: 1001; 
    will-change: transform;
}

#mobile-ext-panel.is-active {
    transform: translateY(0) !important;
}

#mobile-ext-panel img {
    background-color: #e5e7eb;
    object-fit: cover;
}

/* Kapatma Butonu Efekti */
#mobile-ext-close:active {
    transform: scale(0.8);
}

/* İkon Tıklama Efekti */
.nav-item:active i {
    transform: scale(0.85);
}

/* --- ANİMASYONLAR --- */
.slide-left {
    opacity: 1 !important;
    animation: slideLeft 0.35s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.slide-right {
    opacity: 1 !important;
    animation: slideRight 0.35s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

@keyframes slideLeft {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Boşluk Kuralları */
body {
    overflow-x: hidden;
    width: 100%;
}

body.ext-menu-open {
    overflow: hidden;
}

.has-mobile-nav {
    /* Alt boşluk da barın yeni yüksekliğine (56px) göre güncellendi */
    padding-bottom: calc(56px + var(--safe-area-bottom));
}
