/**
 * Lake City Ultrabots Team 8041 - Modern Sub-Navigation
 * Responsive design with horizontal scroll on mobile, centered on desktop
 */

.sub-nav {
    background-color: var(--dark, #333);
    border-bottom: 3px solid var(--primary, #CC0000);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sub-nav-container {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary, #CC0000) transparent;
    max-width: 1200px;
    margin: 0 auto;
}

.sub-nav-container::-webkit-scrollbar {
    height: 4px;
}

.sub-nav-container::-webkit-scrollbar-track {
    background: transparent;
}

.sub-nav-container::-webkit-scrollbar-thumb {
    background: var(--primary, #CC0000);
    border-radius: 2px;
}

.sub-nav-item {
    flex-shrink: 0;
    padding: 0.75rem 1.25rem;
    color: var(--off-white, #f8f8f8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: 4px;
    transition: all 0.25s ease;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    position: relative;
}

.sub-nav-item:hover {
    background: rgba(204, 0, 0, 0.15);
    border-color: rgba(204, 0, 0, 0.3);
    color: var(--primary, #CC0000);
    transform: translateY(-1px);
}

.sub-nav-item.active {
    background: rgba(204, 0, 0, 0.25);
    border-color: var(--primary, #CC0000);
    color: var(--primary, #CC0000);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(204, 0, 0, 0.3);
}

.sub-nav-item:focus {
    outline: 2px solid var(--primary, #CC0000);
    outline-offset: 2px;
}

/* Tablet: 768px - 1023px */
@media (min-width: 768px) {
    .sub-nav-container {
        justify-content: center;
        gap: 0.75rem;
        padding: 1rem;
    }

    .sub-nav-item {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
}

/* Desktop: 1024px - 1439px */
@media (min-width: 1024px) {
    .sub-nav-container {
        gap: 1rem;
        padding: 1rem 2rem;
    }

    .sub-nav-item {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Large Desktop: 1440px+ */
@media (min-width: 1440px) {
    .sub-nav-container {
        gap: 1.5rem;
        padding: 1.25rem 2rem;
    }

    .sub-nav-item {
        padding: 1rem 2.5rem;
        font-size: 1.0625rem;
    }
}

/* Ultra-wide: 1920px+ */
@media (min-width: 1920px) {
    .sub-nav-container {
        max-width: 1600px;
    }
}