/* ============================================
   MOBİL ALT MENÜ (STICKY BOTTOM NAVIGATION)
   ============================================ */

/* Mobil alt menü - sadece mobil cihazlarda görünür */
.mobile-bottom-nav {
    display: none; /* Varsayılan olarak gizli */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 8px 0;
}

/* Mobil cihazlarda göster (768px ve altı) */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    
    /* Body'ye padding ekle ki içerik menünün altında kalmasın */
    body {
        padding-bottom: 60px;
    }
    
    /* ============================================
       MOBİLDE GİZLENECEK ELEMENTLER
       ============================================ */
    
    /* Sol menü açma butonu (artık mobil alt menüde var) */
    .btn-navbar,
    .navbar-header .btn,
    .navbar-header button,
    .navbar-header,
    #category {
        display: none !important;
    }
    
    /* Menu.twig'deki mobil navbar başlığı */
    .hidden-sm.hidden-md.hidden-lg .navbar-header {
        display: none !important;
    }
    
    /* Üst bölümdeki top-links (hesabım, istek listesi) */
    #top-links,
    #top-links .dropdown,
    .myaccount {
        display: none !important;
    }
    
    /* Üst sepet butonu ve hesabım dropdown (artık mobil alt menüde var) */
    #top #cart,
    #cart,
    .header-cart,
    .xs-cart {
        display: none !important;
    }
    
    /* Header'daki hesabım dropdown container */
    header .xs-cart,
    header .xs-cart .dropdown,
    header .xs-cart > div {
        display: none !important;
    }
    
    /* Desktop menü butonları */
    .dropdown.myaccount,
    .dropdown.account {
        display: none !important;
    }
    
    /* Wishlist top butonu */
    #wishlist-total,
    .wishlist-info {
        display: none !important;
    }
}

/* Menü container */
.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 5px;
}

/* Her bir menü item */
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-decoration: none;
    color: #666;
    padding: 4px 8px;
    transition: all 0.3s ease;
    position: relative;
    min-width: 60px;
}

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

.mobile-nav-item.active {
    color: #FFC107;
}

/* İkon container */
.mobile-nav-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.mobile-nav-icon i {
    font-size: 22px;
    transition: all 0.3s ease;
}

.mobile-nav-item:hover .mobile-nav-icon i,
.mobile-nav-item.active .mobile-nav-icon i {
    transform: scale(1.1);
}

/* Menü label */
.mobile-nav-label {
    font-size: 11px;
    font-weight: 400;
    text-align: center;
    line-height: 1.2;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.mobile-nav-item:hover .mobile-nav-label,
.mobile-nav-item.active .mobile-nav-label {
    font-weight: 600;
}

/* Badge (bildirim sayısı) */
.mobile-nav-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: #FFC107;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: none; /* Varsayılan olarak gizli */
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Badge görünür olduğunda */
.mobile-nav-badge:not(:empty) {
    display: flex;
}

/* Wishlist badge rengi */
.mobile-nav-badge-wishlist {
    background-color: #e91e63;
}

/* Animasyonlar */
@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Sürekli pulse animasyonu (devre dışı - isteğe bağlı)
.mobile-nav-badge {
    animation: badgePulse 2s ease-in-out infinite;
} */

/* Badge eklendiğinde özel animasyon */
@keyframes badgePopIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes badgeBounce {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(0.9);
    }
    75% {
        transform: scale(1.15);
    }
}

/* Sepete ürün eklendiğinde tetiklenen animasyon */
.mobile-nav-badge.badge-pulse {
    animation: badgeBounce 0.6s ease-out;
    background-color: #ff8c00 !important;
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 1);
}

/* Badge ilk göründüğünde */
.mobile-nav-badge:not(:empty) {
    display: flex;
    animation: badgePopIn 0.3s ease-out;
}

/* Aktif sayfa vurgusu */
.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: #FFC107;
    border-radius: 0 0 3px 3px;
}

/* Çok küçük ekranlar için (320px - 480px) */
@media (max-width: 480px) {
    .mobile-nav-icon i {
        font-size: 20px;
    }
    
    .mobile-nav-label {
        font-size: 10px;
    }
    
    .mobile-nav-item {
        padding: 4px 5px;
        min-width: 50px;
    }
}

/* iPhone X ve benzeri ekranlar için safe area desteği */
@supports (padding: max(0px)) {
    .mobile-bottom-nav {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
}

/* Tablet modunda gizle (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .mobile-bottom-nav {
        display: none;
    }
    
    body {
        padding-bottom: 0;
    }
}

/* Dark mode desteği (opsiyonel) */
@media (prefers-color-scheme: dark) {
    .mobile-bottom-nav {
        background-color: #0060aa;
        border-top-color: #08405e;
    }
    
    .mobile-nav-item {
        color: #fff;
    }
    
    .mobile-nav-item:hover,
    .mobile-nav-item:focus,
    .mobile-nav-item.active {
        color: #FFC107;
    }
}

/* Smooth scroll için */
html {
    scroll-behavior: smooth;
}

/* iOS için touch feedback */
.mobile-nav-item {
    -webkit-tap-highlight-color: rgba(255, 107, 0, 0.1);
    tap-highlight-color: rgba(255, 107, 0, 0.1);
}

/* Active touch state */
.mobile-nav-item:active {
    transform: scale(0.95);
    opacity: 0.8;
}

