/**
 * Navbar Component - Belgium Video Gaming
 * Menu de navigation principal avec design belge
 */

/* ===== NAVBAR PRINCIPALE ===== */
.main-navbar {
    background-color: #000000;
    width: 70%;
    margin: 0 auto;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
}

/* ===== ÉLÉMENTS DE NAVIGATION ===== */
.nav-item {
    position: relative;
    flex: 1;
    text-align: center;
}

.nav-button {
    background-color: transparent; /* Transparent par défaut */
    color: #FFFFFF; /* Blanc par défaut */
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.nav-button:hover {
    background-color: #DC2626; /* Rouge au hover */
    color: #FCD34D; /* Jaune au hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.nav-button:active {
    transform: translateY(0);
}

/* ===== DROPDOWN HARDWARE ===== */
.dropdown {
    position: relative;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #000000; /* Noir pour cohérence */
    border: 2px solid #DC2626;
    border-top: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #FFFFFF; /* Blanc par défaut */
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #333333;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #DC2626; /* Rouge au hover */
    color: #FCD34D; /* Jaune au hover */
    padding-left: 20px;
}

.dropdown-item.disabled {
    color: #6B7280;
    cursor: not-allowed;
}

.dropdown-divider {
    height: 1px;
    background-color: #E5E7EB;
    margin: 8px 0;
}

/* ===== MENU HAMBURGER MOBILE ===== */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FCD34D;
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.navbar-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== MENU MOBILE ===== */
.navbar-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.navbar-mobile.active {
    opacity: 1;
    visibility: visible;
}

.navbar-mobile-content {
    background-color: #000000;
    width: 100%;
    max-width: 400px;
    height: 100%;
    padding: 80px 20px 20px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.navbar-mobile.active .navbar-mobile-content {
    transform: translateX(0);
}

.mobile-section {
    margin-bottom: 30px;
}

.mobile-section-title {
    color: #DC2626;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #DC2626;
    padding-bottom: 8px;
}

.mobile-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-item {
    color: #FFFFFF; /* Blanc par défaut */
    text-decoration: none;
    padding: 12px 16px;
    background-color: #1F2937;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.mobile-item:hover {
    background-color: #DC2626; /* Rouge au hover */
    color: #FCD34D; /* Jaune au hover */
    border-left-color: #FCD34D;
    transform: translateX(5px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .main-navbar {
        width: 85%;
    }
    
    .nav-button {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .main-navbar {
        width: 100%;
        position: relative;
    }
    
    .navbar-container {
        display: none;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .navbar-mobile {
        display: block;
    }
}

@media (max-width: 480px) {
    .navbar-mobile-content {
        padding: 60px 15px 15px;
    }
    
    .mobile-section-title {
        font-size: 16px;
    }
    
    .mobile-item {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-navbar {
    animation: slideInDown 0.5s ease-out;
}

/* ===== ACCESSIBILITÉ ===== */
.nav-button:focus,
.dropdown-item:focus,
.mobile-item:focus {
    outline: 2px solid #FCD34D;
    outline-offset: 2px;
}

/* ===== ÉTATS ACTIFS ===== */
.nav-item.active .nav-button {
    background-color: #DC2626; /* Rouge pour l'état actif */
    color: #FCD34D; /* Jaune pour l'état actif */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ===== INDICATEUR DE PAGE ACTIVE ===== */
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #FCD34D;
}
