/**
 * MOBİL ALT MENÜ (BOTTOM NAVIGATION)
 * Uygulama gibi alt menü - Sadece mobilde görünür
 */

/* YAPIŞKAN PROMO BANNER */
.mobile-promo-banner {
    display: none; /* Desktop'ta gizli */
    position: fixed;
    bottom: 60px; /* Alt menünün hemen üstünde */
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #FF9800, #F57C00);
    padding: 12px 15px;
    z-index: 9999;
    box-shadow: 0 -2px 15px rgba(255, 152, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    padding-right: 35px;
}

.promo-content i {
    font-size: 20px;
    animation: rotatePulse 3s ease-in-out infinite;
}

@keyframes rotatePulse {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-10deg) scale(1.1);
    }
    50% {
        transform: rotate(10deg) scale(1.1);
    }
    75% {
        transform: rotate(-5deg) scale(1.05);
    }
}

.promo-text {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
}

.promo-close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.promo-close:active {
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-50%) scale(0.9);
}

.promo-close i {
    font-size: 12px;
}

/* Bottom Navigation Container */
.mobile-bottom-nav {
    display: none; /* Desktop'ta gizli */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    border-top: 2px solid rgba(0, 149, 149, 0.1);
}

/* Navigation Items Container */
.bottom-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

/* Individual Nav Item */
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #607d8b;
    padding: 8px 6px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 50px;
    flex: 1;
    max-width: 75px;
}

/* Icon */
.bottom-nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

/* Label */
.bottom-nav-item span {
    font-size: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

/* Active State */
.bottom-nav-item.active {
    color: #009595;
    background: rgba(0, 149, 149, 0.1);
}

.bottom-nav-item.active i {
    transform: scale(1.1);
}

/* Hover/Touch Effect */
.bottom-nav-item:active {
    transform: scale(0.95);
}

/* Ripple Effect */
.bottom-nav-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 149, 149, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.bottom-nav-item:active::before {
    width: 100px;
    height: 100px;
}

/* Badge (örneğin sepet sayısı için) */
.bottom-nav-badge {
    position: absolute;
    top: 5px;
    right: 8px;
    background: linear-gradient(135deg, #e63946, #ff6b6b);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.4);
}

/* Mobil Görünürlük */
@media (max-width: 768px) {
    .mobile-promo-banner {
        display: block;
        animation: slideUpBanner 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s backwards;
    }
    
    @keyframes slideUpBanner {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    .mobile-bottom-nav {
        display: block;
    }
    
    /* 5 öğe için daha kompakt */
    .bottom-nav-items {
        padding: 0 5px;
    }
    
    .bottom-nav-item {
        padding: 6px 4px;
        min-width: 45px;
    }
    
    .bottom-nav-item i {
        font-size: 20px;
        margin-bottom: 3px;
    }
    
    .bottom-nav-item span {
        font-size: 9px;
    }
}

/* Çok küçük ekranlar */
@media (max-width: 375px) {
    .bottom-nav-item {
        padding: 6px 8px;
        min-width: 50px;
    }
    
    .bottom-nav-item i {
        font-size: 20px;
    }
    
    .bottom-nav-item span {
        font-size: 10px;
    }
}

/* iPhone X ve üzeri için safe area */
@supports (padding: max(0px)) {
    .mobile-bottom-nav {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
}

/* Animasyon - Sayfa yüklendiğinde yukarı kayma */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-bottom-nav {
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}