/**
 * TEAM-EXCITING NAVBAR - PERFECTED STYLES
 * Enhanced Navigation Bar with Gather Integration
 * @package team-exciting
 * @version 2.0.0
 */

/* ===================================
   TEAM-EXCITING NAVBAR BASE
   =================================== */

.navbar-nav {
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 5px !important;
}

.navbar-nav .menu-item {
    position: relative;
    margin: 0;
    padding: 0;
}

.navbar-nav .menu-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'Poppins', 'Barlow', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #cccccc;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: transparent;
}

/* Icon Styles */
.navbar-nav .menu-item a i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* Hover Effects */
.navbar-nav .menu-item a:hover {
    color: #ff6600;
    background: rgba(255, 102, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.3);
    transform: translateY(-2px);
}

.navbar-nav .menu-item a:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Active/Current Menu Item */
.navbar-nav .menu-item.current-menu-item a,
.navbar-nav .menu-item.current_page_item a {
    color: #ff6600;
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.15), rgba(255, 0, 0, 0.1));
    box-shadow: 0 0 25px rgba(255, 102, 0, 0.4);
    font-weight: 800;
}

/* Glow Effect on Active */
.navbar-nav .menu-item.current-menu-item a::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 8px;
    background: linear-gradient(45deg, #ff6600, #ff0000);
    opacity: 0.5;
    filter: blur(10px);
    z-index: -1;
    animation: navGlow 2s ease-in-out infinite;
}

@keyframes navGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Underline Animation */
.navbar-nav .menu-item a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6600, #ff0000);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.navbar-nav .menu-item a:hover::after,
.navbar-nav .menu-item.current-menu-item a::after {
    width: calc(100% - 48px);
}

/* ===================================
   SPECIFIC MENU ITEM COLORS
   =================================== */

/* Tournaments - Trophy Gold */
.navbar-nav .menu-item:nth-child(1) a:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.navbar-nav .menu-item:nth-child(1).current-menu-item a {
    color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.1));
}

/* Gather - Team Orange */
.navbar-nav .menu-item:nth-child(2) a:hover {
    color: #ff6600;
    background: rgba(255, 102, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.3);
}

.navbar-nav .menu-item:nth-child(2).current-menu-item a {
    color: #ff6600;
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.15), rgba(255, 0, 0, 0.1));
}

/* Games - Cyan Blue */
.navbar-nav .menu-item:nth-child(3) a:hover {
    color: #00d9ff;
    background: rgba(0, 217, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.navbar-nav .menu-item:nth-child(3).current-menu-item a {
    color: #00d9ff;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(0, 191, 255, 0.1));
}

/* ===================================
   MOBILE MENU STYLES
   =================================== */

.offcanvas-nav-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.offcanvas-nav-list .menu-item {
    margin-bottom: 12px;
}

.offcanvas-nav-list .menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #cccccc;
    text-decoration: none;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 102, 0, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.offcanvas-nav-list .menu-item a:hover {
    color: #ff6600;
    background: rgba(255, 102, 0, 0.15);
    border-color: rgba(255, 102, 0, 0.5);
    transform: translateX(8px);
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.3);
}

.offcanvas-nav-list .menu-item a i {
    font-size: 20px;
    min-width: 24px;
    text-align: center;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1199px) {
    .navbar-nav .menu-item a {
        padding: 10px 18px;
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    .navbar-nav {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .offcanvas-nav-list .menu-item a {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .offcanvas-nav-list .menu-item a {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ===================================
   ACCESSIBILITY & PERFORMANCE
   =================================== */

/* Focus States */
.navbar-nav .menu-item a:focus,
.offcanvas-nav-list .menu-item a:focus {
    outline: 2px solid #ff6600;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .navbar-nav .menu-item a,
    .navbar-nav .menu-item a i,
    .navbar-nav .menu-item a::after,
    .offcanvas-nav-list .menu-item a {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .navbar-nav .menu-item a {
        border: 2px solid currentColor;
    }

    .navbar-nav .menu-item.current-menu-item a {
        border-color: #ff6600;
    }
}

/* ===================================
   LOGO ALIGNMENT FIX
   =================================== */

.navbar .logo {
    display: flex;
    align-items: center;
    z-index: 10;
}

.navbar .logo .site-title {
    font-size: 24px;
    font-weight: 800;
    color: #ff6600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.navbar .logo .site-title:hover {
    color: #ff7722;
    text-shadow: 0 0 20px rgba(255, 102, 0, 0.6);
}

/* ===================================
   NAVBAR CONTAINER IMPROVEMENTS
   =================================== */

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.navbar-collapse {
    display: flex;
    flex: 1;
    justify-content: center;
}

/* ===================================
   🎮 TEAM-EXCITING NAVBAR COMPLETE! 🔥
   =================================== */
