/**
 * NAVBAR CSS - Styles non-critiques extraits de navbar.php
 * Optimisé pour cache navigateur et PageSpeed
 * 
 * Styles critiques (header fixe, layout de base) restent inline dans navbar.php
 */

/* Styles communs - Pas de media queries ici, voir navbar-desktop.css et navbar-mobile.css */

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ============================================
   MENU DE CATÉGORIES (Style AliExpress)
   ============================================ */
.categories-dropdown-menu {
    animation: fadeInDown 0.3s ease-out;
}

.category-main-item:hover {
    background: rgba(255,255,255,0.1) !important;
    transform: translateX(4px);
}

.category-main-item.active {
    background: rgba(255,255,255,0.15) !important;
    border-left: 3px solid #f8fafc;
}

.category-sub-item {
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.category-sub-item:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.3) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1) !important;
}

.category-group-title {
    font-size: 1rem;
    font-weight: 700;
    color: white !important;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.3) !important;
}

.category-sub-item a {
    color: white !important;
    text-decoration: none;
    font-size: 0.9rem;
    flex: 1;
}

.category-sub-item:hover a {
    color: white !important;
    font-weight: 600;
}

.category-sub-name {
    color: white !important;
}

.category-sub-count {
    color: white;
    font-size: 0.85rem;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 12px;
}

/* ============================================
   SCROLLBARS PERSONNALISÉES
   ============================================ */
/* Scrollbar menu catégories - WebKit uniquement (Chrome, Safari, Edge) */
@supports (-webkit-appearance: none) {
    .categories-main-list::-webkit-scrollbar,
    .categories-sub-list::-webkit-scrollbar {
        width: 10px;
    }

    .categories-main-list::-webkit-scrollbar-track,
    .categories-sub-list::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 10px;
        margin: 5px 0;
    }

    .categories-main-list::-webkit-scrollbar-thumb,
    .categories-sub-list::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 10px;
        border: 2px solid #f1f5f9;
        transition: all 0.3s ease;
    }
    
}

/* Pour Firefox */
.categories-main-list,
.categories-sub-list {
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f5f9;
}

/* Scrollbars globaux - NOIR et plus fines - WebKit uniquement */
@supports (-webkit-appearance: none) {
    ::-webkit-scrollbar { 
        width: 6px; 
        height: 6px; 
    }

    ::-webkit-scrollbar-track { 
        background: #f1f5f9; 
        border-radius: 10px; 
    }

    ::-webkit-scrollbar-thumb { 
        background: #1a1a1a; 
        border-radius: 10px; 
        border: 1px solid #f1f5f9; 
    }
}

html { 
    scrollbar-width: thin; 
    scrollbar-color: #1a1a1a #f1f5f9; 
}

/* ============================================
   ICÔNES D'ACTION - HOVER EFFECTS
   ============================================ */
.navbar-action-icon {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-action-icon i {
    transition: all 0.3s ease;
}

/* Suivi de colis */
.navbar-action-icon.tracking {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.navbar-action-icon.tracking:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.navbar-action-icon.tracking:hover i {
    transform: rotate(-15deg) scale(1.1);
    color: white;
}

/* Wishlist */
.navbar-action-icon.wishlist {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.navbar-action-icon.wishlist:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: scale(1.2) rotate(-5deg);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
}

.navbar-action-icon.wishlist:hover i {
    transform: scale(1.15);
    color: white;
}

/* Panier */
.navbar-action-icon.cart {
    background: rgba(30, 58, 138, 0.1);
    border-color: rgba(30, 58, 138, 0.3);
    color: #1e3a8a;
}

.navbar-action-icon.cart:hover {
    background: #1e3a8a;
    border-color: #1e3a8a;
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.navbar-action-icon.cart:hover i {
    transform: scale(1.2);
    color: white;
}

/* Styles langue et user déplacés vers navbar-desktop.css et navbar-mobile.css */

/* Messages */
.navbar-action-icon.messages {
    position: relative;
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: #8b5cf6;
}

.navbar-action-icon.messages:hover {
    background: #8b5cf6;
    border-color: #8b5cf6;
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.navbar-action-icon.messages:hover i {
    transform: scale(1.1);
    color: white;
}

/* Styles user déplacés vers navbar-desktop.css et navbar-mobile.css */

/* ============================================
   BADGES NOTIFICATIONS
   ============================================ */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
    animation: pulse 2s infinite;
}

/* Styles responsive catégories déplacés vers navbar-desktop.css et navbar-mobile.css */

/* Styles navbar secondaire mobile et recherche desktop déplacés vers navbar-mobile.css et navbar-desktop.css */
