/**
 * Theme: Freemium
 * Description: Navbar et bottom navigation pour le thème freemium
 * Colors: Utilise les variables CSS du menu (--brand-color)
 */

/* ============================================
   HEADER - Freemium
   ============================================ */
.menu-header {
    background: linear-gradient(155deg, 
        color-mix(in oklab, var(--brand-color, #121828) 100%, #000 0%) 0%, 
        color-mix(in oklab, var(--brand-color, #121828) 85%, #000 15%) 100%);
    color: white;
    padding: 2.75rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.menu-header .logo-badge {
    display: inline-block;
    margin: 0 auto 1rem;
    background: white;
    border-radius: 50%;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.menu-header .restaurant-logo {
    max-width: 150px;
    height: auto;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
}

.menu-header .menu-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ============================================
   BOTTOM NAVIGATION - Freemium
   ============================================ */
.bottom-nav {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    border-top: 2px solid #495057;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
}

.bottom-nav .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.bottom-nav .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.bottom-nav .nav-link {
    color: #f8f9fa !important;
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 0.25rem;
}

.bottom-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    transform: translateY(-2px);
}

.bottom-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

/* Swipe indicator */
.swipe-indicator {
    color: #f8f9fa;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    animation: swipe-hint 2s ease-in-out infinite;
}

@keyframes swipe-hint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
}

/* Dropdown */
.bottom-nav .dropdown-menu {
    background: #343a40;
    border: 1px solid #495057;
    border-radius: 8px;
}

.bottom-nav .dropdown-item {
    color: #f8f9fa !important;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

.bottom-nav .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

/* Badge */
.badge-freemium {
    background: #dc3545;
    color: #fff;
    font-weight: 700;
    padding: 0.35rem 0.6rem;
    border-radius: 12px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .menu-header {
        padding: 1.5rem 0;
    }
    
    .menu-header .menu-title {
        font-size: 1.5rem;
    }
    
    .menu-header .restaurant-logo {
        max-width: 120px;
    }
    
    .bottom-nav .nav-link {
        padding: 0.5rem 0.75rem;
        margin: 0.25rem 0;
    }
    
    /* Collapse vers le haut */
    .bottom-nav .navbar-collapse {
        position: absolute;
        bottom: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #343a40 0%, #212529 100%);
        border-top: 2px solid #495057;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
        padding: 0.5rem 0;
    }
}

/* Désactiver animations si préférence mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    .swipe-indicator {
        animation: none !important;
    }
}
