/**
 * Team-Exciting Sub-Navigation
 * Shows navigation bar with all gaming sections
 *
 * @package team-exciting
 * @since 6.0.0
 */

/* Tournament Sub-Navigation Container */
.tournament-subnav-wrapper {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.98), rgba(37, 37, 37, 0.98));
    border-bottom: 2px solid rgba(255, 102, 0, 0.4);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 102, 0, 0.2);
    backdrop-filter: blur(15px);
    animation: slideInDown 0.5s ease;
}

.tournament-subnav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.tournament-subnav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.tournament-subnav-item {
    margin: 0;
}

.tournament-subnav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 25px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
    font-family: 'Poppins', 'Barlow', sans-serif;
}

.tournament-subnav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, #ff6600, #ff0000);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.tournament-subnav-link:hover {
    color: #ff6600;
    background: rgba(255, 102, 0, 0.1);
    transform: translateY(-2px);
}

.tournament-subnav-link:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.tournament-subnav-link.active {
    color: #ff6600;
    background: rgba(255, 102, 0, 0.15);
    border-bottom-color: transparent;
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.3);
}

.tournament-subnav-link.active::before {
    transform: translateX(-50%) scaleX(1);
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.6);
}

/* Icons */
.tournament-subnav-icon {
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Count Badges */
.tournament-subnav-count {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 11px;
    font-weight: normal;
    min-width: 20px;
    text-align: center;
}

.tournament-subnav-link.active .tournament-subnav-count {
    background: rgba(255, 255, 255, 0.35);
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .tournament-subnav-link {
        padding: 15px 20px;
        font-size: 13px;
    }

    .tournament-subnav-icon {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .tournament-subnav-wrapper {
        position: relative;
    }

    .tournament-subnav-list {
        flex-direction: column;
        gap: 0;
    }

    .tournament-subnav-item {
        width: 100%;
    }

    .tournament-subnav-link {
        width: 100%;
        padding: 15px 20px;
        justify-content: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .tournament-subnav-link::before {
        display: none;
    }
}

/* Pulse animation for active items */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 102, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 102, 0, 0.4);
    }
}

.tournament-subnav-link.active {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Cosmic Background Effect */
.tournament-subnav-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 102, 0, 0.08) 1px, transparent 1px),
                radial-gradient(circle at 80% 50%, rgba(255, 0, 0, 0.08) 1px, transparent 1px);
    background-size: 60px 60px, 80px 80px;
    animation: cosmicDust 20s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes cosmicDust {
    0%, 100% { background-position: 0% 0%, 50% 50%; }
    50% { background-position: 100% 100%, 0% 100%; }
}
