/* ====================================================== */
/* --- YENİ HİBRİT MOBİL ARAYÜZ STİLLERİ --- */
/* ====================================================== */

/* --- 1. ALT NAVİGASYON BARI (TAB BAR) --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px; /* Standart tab bar yüksekliği */
    background-color: rgba(13, 17, 23, 0.8); /* Yarı şeffaf koyu arkaplan */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: flex-start; /* İkon ve yazıyı yukarıya yakın tutar */
    padding-top: 8px;
    z-index: 30;
}

.nav-item, .nav-item-fab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: color 0.2s ease;
    flex-basis: 0;
    flex-grow: 1;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-item:hover {
    color: var(--text-light);
}

/* Aktif sayfanın ikonunu ve yazısını belirginleştir */
.nav-item.active {
    color: var(--primary);
}

.nav-item i {
    width: 24px;
    height: 24px;
}
.mobile-flyout-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 80vw; 
    max-width: 300px; 
    height: 100%;
    
    /* --- Buzlu Cam Stilleri --- */
    background-color: rgba(30, 41, 59, 0.85); /* Yarı şeffaf */
    backdrop-filter: blur(12px);              /* Bulanıklaştırma */
    -webkit-backdrop-filter: blur(12px);      /* Safari için */
    border-right: 1px solid rgba(255, 255, 255, 0.1); /* Kenarlık */
    /* --- Bitiş --- */

    z-index: 101;
    transform: translateX(-100%); 
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-flyout-menu.mobile-flyout-menu--right {
    left: auto;
    right: 0;
    transform: translateX(100%);
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1); /* Sol kenarlık */
}

.mobile-flyout-menu.is-open {
    transform: translateX(0); 
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
}

.mobile-flyout-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-flyout-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
}
.mobile-menu-link:hover {
    background-color: var(--bg-dark);
    color: var(--text-light);
}
.mobile-menu-link i {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* --- 3. GENEL ARAMA EKRANI (OVERLAY) --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 50; /* Header'ın üzerinde */
    padding: 1rem;
    display: flex;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.search-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.search-modal {
    width: 100%;
    max-width: 700px; /* Arama kutusunun maksimum genişliği */
    margin-top: 10vh; /* Ekranın biraz altında başlasın */
}
.search-input-main {
    width: 100%;
    height: 60px;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    font-size: 1.5rem;
    color: white;
    padding-left: 3.5rem;
    padding-right: 1rem;
}
.search-input-main:focus {
    outline: none;
    border-bottom-color: var(--primary);
}
.search-input-icon {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dark);
    width: 28px;
    height: 28px;
}
.search-results-panel {
    margin-top: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}
.search-result-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
}
.search-result-item {
    display: block;
    padding: 0.85rem 0.5rem;
    color: var(--text-light);
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
    text-decoration: none;
    font-weight: 500;
}
.search-result-item:hover {
    background-color: var(--bg-light);
}

/* mobile-nav.css dosyanızın sonuna ekleyin */

/* 1. Başlangıçta linkleri gizle ve aşağı kaydır */
.mobile-flyout-menu .mobile-menu-link {
    opacity: 0;
    transform: translateY(15px);
    /* Animasyon için yumuşak bir geçiş ekle */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* 2. Menü açıldığında (.is-open) linkleri görünür yap ve yerine oturt */
.mobile-flyout-menu.is-open .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Sihirli kısım: Her linke kademeli gecikme (stagger) ver */
.mobile-flyout-menu.is-open .mobile-menu-link:nth-child(1) { transition-delay: 0.10s; }
.mobile-flyout-menu.is-open .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-flyout-menu.is-open .mobile-menu-link:nth-child(3) { transition-delay: 0.20s; }
.mobile-flyout-menu.is-open .mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }
/* ... (İhtiyacınız olduğu kadar devam edin) ... */

/* Başlıklar ve ayırıcılar için de gecikme ekleyebilirsiniz */
.mobile-flyout-menu.is-open h3 {
    opacity: 0;
    animation: fadeIn 0.3s ease-out 0.05s forwards;
}

.mobile-flyout-menu.is-open .border-t {
    opacity: 0;
    animation: fadeIn 0.3s ease-out 0.1s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}