/* =============================================================================
   STEREOBOARD MOBILE-FIRST NAVIGATION STYLES
   ============================================================================= */

.g-disclaimer {
    max-width:950px; 
    text-align: center; 
    margin:5px auto -9px auto; 
    padding:5px; 
    font-size:12px; 
    background-color:#fefefe; 
    border:1px solid #aaa; 
    border-radius:5px;
}

/* =============================================================================
   MAIN NAVIGATION CONTAINER
   ============================================================================= */

.nav-container {
    max-width: 990px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =============================================================================
   DESKTOP TOP BAR (Logo + Search) - FIXED
   ============================================================================= */

.desktop-top-bar {
    display: none;
    background: linear-gradient(to bottom, #ffffff 0%, #eeeeee 100%);
    height: 60px;
    /* Fixed positioning for desktop only */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
}

/* =============================================================================
   DESKTOP NAVIGATION BAR - SCROLLABLE
   ============================================================================= */

.desktop-nav-bar {
    display: none;
    background: linear-gradient(to bottom, #eeeeee 0%, #dedede 100%);
    border-bottom: 5px solid #ccc;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    height: 30px;
    /* Static positioning - will scroll with content */
    position: static;
    margin-top: 60px; /* Account for fixed top bar */
}

.desktop-nav-bar .nav-container {
    justify-content: flex-start;
}

/* =============================================================================
   MOBILE/TABLET HEADER - REMAINS FIXED
   ============================================================================= */

.mobile-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    height: 65px;
    /* Keep fixed for mobile/tablet */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* =============================================================================
   LOGO STYLES
   ============================================================================= */

.nav-logo {
    flex-shrink: 0;
}

.logo-img {
    height: 35px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* =============================================================================
   DESKTOP NAVIGATION
   ============================================================================= */

.desktop-nav {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0 0 -4px 0;
    padding: 0;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 3px 16px;
    color: #495057;
    text-decoration: none;
    font-weight: 400;
    font-size: 13px;
    border-radius: 6px 6px 0 0;
    transition: all 0.3s ease;
    background: #ffffff;
    border: 2px solid #e1e5e9;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ffffff;
    background: linear-gradient(145deg, #dc3545, #c82333);
    box-shadow: 0 3px 12px rgba(220, 53, 69, 0.3);
    transform: translateY(-1px);
    border-color: #dc3545;
}

/* Featured item styling */
.nav-item.featured .nav-link {
    background: linear-gradient(145deg, #dc3545, #c82333);
    color: #ffffff;
    border-color: #dc3545;
    font-weight: 600;
}

.nav-item.featured .nav-link:hover {
    background: linear-gradient(145deg, #c82333, #a71e2a);
    transform: translateY(-1px) scale(1.02);
}

/* =============================================================================
   DROPDOWN MENUS
   ============================================================================= */

.has-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 100%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    z-index: 1100;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-3px);
}

.dropdown-link {
    display: block;
    padding: 8px 16px;
    color: #495057;
    text-decoration: none;
    font-size: 12px;
    font-weight:500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e9ecef;
}

.dropdown-link:hover {
    background-color: #f8f9fa;
    color: #dc3545;
    padding-left: 20px;
}

.dropdown-link.trending {
    color: #dc3545;
    font-weight: 600;
    padding-left: 30px;
}

.dropdown-link.trending:hover {
    background-color: #fff5f5;
    padding-left: 20px;
}

.dropdown-hr {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 4px 0;
}

.dropdown-divider {
    padding: 8px 16px 4px;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f1f3f4;
    margin-bottom: 4px;
}

/* Mega Menu */
.mega-menu {
    min-width: 280px;
    max-width: 350px;
}

.mega-menu-section {
    padding: 4px 0;
}

/* =============================================================================
   DESKTOP SEARCH
   ============================================================================= */

.desktop-search {
    flex-shrink: 0;
}

.search-form {
    display: flex;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.search-form:focus-within {
    border-color: #dc3545;
    box-shadow: 0 3px 12px rgba(220, 53, 69, 0.15);
}

.search-input {
    border: none;
    padding: 10px 16px;
    font-size: 13px;
    background: transparent;
    outline: none;
    width: 300px;
    color: #495057;
}

.search-input::placeholder {
    color: #8e9297;
}

.search-btn {
    background: linear-gradient(145deg, #dc3545, #c82333);
    border: none;
    padding: 10px 14px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: linear-gradient(145deg, #c82333, #a71e2a);
    transform: scale(1.05);
}

/* =============================================================================
   TABLET SEARCH (768px - 1023px)
   ============================================================================= */

.tablet-nav-search {
    display: none;
    flex-shrink: 0;
}

/* =============================================================================
   MOBILE CONTROLS
   ============================================================================= */

.mobile-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-search-btn,
.mobile-menu-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: #495057;
}

.mobile-search-btn:hover,
.mobile-menu-btn:hover {
    background-color: #f8f9fa;
    color: #dc3545;
    transform: scale(1.1);
}

/* =============================================================================
   MOBILE MENU BUTTON
   ============================================================================= */

.mobile-menu-btn {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: #ffffff;
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
    transform: translateY(-1px);
}

.hamburger-line {
    width: 20px;
    height: 3px;
    background-color: #495057;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
    position: relative;
}

.mobile-menu-btn:hover .hamburger-line {
    background-color: #dc3545;
}

.mobile-menu-btn.active {
    background: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.mobile-menu-btn.active .hamburger-line {
    background-color: #ffffff;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =============================================================================
   MOBILE SEARCH OVERLAY
   ============================================================================= */

.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-search-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 25px 25px;
    width: 90%;
    max-width: 380px;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.mobile-search-form {
    display: flex;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.mobile-search-form:focus-within {
    border-color: #dc3545;
    box-shadow: 0 3px 12px rgba(220, 53, 69, 0.15);
}

.mobile-search-input {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-size: 16px;
    background: transparent;
    outline: none;
    color: #495057;
}

.mobile-search-input::placeholder {
    color: #8e9297;
}

.mobile-search-submit {
    background: linear-gradient(145deg, #dc3545, #c82333);
    border: none;
    padding: 14px 16px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-search-submit:hover {
    background: linear-gradient(145deg, #c82333, #a71e2a);
    transform: scale(1.05);
}

.close-search {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.close-search:hover {
    background: #dc3545;
    color: #ffffff;
    border-color: #dc3545;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.close-search svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* =============================================================================
   MOBILE MENU SIDEBAR
   ============================================================================= */

.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    background: #ffffff;
    z-index: 2000;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.2s ease-out;
    overflow-y: auto;
    box-shadow: 8px 0 25px rgba(0, 0, 0, 0.15);
}

.mobile-menu-sidebar.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f1f3f4;
    background: #ffffff;
}

.mobile-logo-img {
    height: 32px;
    width: auto;
}

.close-menu {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #6c757d;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.close-menu:hover {
    background: #dc3545;
    color: #ffffff;
    border-color: #dc3545;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

.close-menu svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    transition: all 0.2s ease;
}

.mobile-menu-content {
    padding: 0;
}

/* =============================================================================
   MOBILE MENU SEARCH
   ============================================================================= */

.mobile-menu-search {
    padding: 20px;
    border-bottom: 1px solid #f1f3f4;
    background: #ffffff;
}

.mobile-menu-search-form {
    display: flex;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu-search-form:focus-within {
    border-color: #dc3545;
    box-shadow: 0 3px 12px rgba(220, 53, 69, 0.15);
}

.mobile-menu-search-input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    background: transparent;
    outline: none;
    color: #495057;
}

.mobile-menu-search-input::placeholder {
    color: #8e9297;
}

.mobile-menu-search-btn {
    background: linear-gradient(145deg, #dc3545, #c82333);
    border: none;
    padding: 12px 16px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-search-btn:hover {
    background: linear-gradient(145deg, #c82333, #a71e2a);
    transform: scale(1.05);
}

/* =============================================================================
   MOBILE NAVIGATION MENU
   ============================================================================= */

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f1f3f4;
    position: relative;
}

.mobile-nav-item.featured {
    background: linear-gradient(135deg, #fff8f8 0%, #ffffff 100%);
    border-left: 4px solid #dc3545;
}

/* Main navigation item container - now handles the header layout */
.mobile-nav-item.has-mobile-dropdown {
    display: block; /* Changed from flex to block for better layout */
}

/* Navigation header - contains both the link and toggle button */
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #ffffff;
    transition: all 0.2s ease;
}

.mobile-nav-header:hover {
    background-color: #f8f9fa;
}

.mobile-nav-item.featured .mobile-nav-header:hover {
    background: linear-gradient(135deg, #fff0f0 0%, #f8f9fa 100%);
}

/* Main navigation links - now full width headers */
.mobile-nav-link {
    display: block;
    padding: 20px 24px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    flex: 1;
    letter-spacing: 0.3px;
}

.mobile-nav-item.featured .mobile-nav-link {
    color: #dc3545;
    font-weight: 700;
}

.mobile-nav-link:hover {
    color: #dc3545;
}

/* Mobile navigation title (clickable header text) */
.mobile-nav-title {
    display: block;
    padding: 20px 24px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    flex: 1;
    letter-spacing: 0.3px;
    cursor: pointer;
}

.mobile-nav-item.featured .mobile-nav-title {
    color: #dc3545;
    font-weight: 700;
}

.mobile-nav-title:hover {
    color: #dc3545;
}

/* Dropdown toggle button - now more subtle and better positioned */
.mobile-dropdown-toggle {
    background: none;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    padding: 20px 24px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.mobile-dropdown-toggle:hover {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

.mobile-dropdown-toggle.active {
    color: #dc3545;
    transform: rotate(180deg);
}

/* Dropdown menu container - cleaner appearance below headers */
.mobile-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    border-left: 4px solid #dc3545;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.mobile-dropdown-menu.active {
    max-height: 1000px;
    opacity: 1;
    padding: 8px 0;
}

/* Dropdown links - clean and indented */
.mobile-dropdown-link {
    display: block;
    padding: 14px 24px 14px 40px; /* Indented from main links */
    color: #495057;
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.mobile-dropdown-link:hover {
    background-color: #ffffff;
    color: #dc3545;
    border-left-color: #dc3545;
    padding-left: 43px; /* Slight indent increase on hover */
}

.mobile-dropdown-link.primary {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    color: #2c3e50;
    font-weight: 700;
    border-left: 3px solid #dc3545;
    margin-bottom: 8px;
    font-size: 16px;
}

.mobile-dropdown-link.primary:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #dc3545;
    border-left-color: #dc3545;
}

.mobile-dropdown-link.trending {
    color: #dc3545;
    font-weight: 500;
    position: relative;
}

.mobile-dropdown-link.trending::before {
    content: "";
    margin-right: 8px;
    font-size: 12px;
}

.mobile-dropdown-link.trending:hover {
    background-color: #fff5f5;
    border-left-color: #dc3545;
}

/* Dropdown dividers and separators */
.mobile-dropdown-divider {
    padding: 12px 24px 8px 40px;
    color: #6c757d;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f1f3f4;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    margin: 8px 0;
}

.mobile-dropdown-hr {
    height: 1px;
    background: #e9ecef;
    margin: 8px 24px 8px 40px;
    border: none;
}

/* =============================================================================
   MOBILE MENU OVERLAY
   ============================================================================= */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================= */

/* Mobile devices (below 768px) */
@media (max-width: 767px) {
    .mobile-search-btn {
        display: block;
    }
    
    .logo-img {
        height: 30px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .mobile-header {
        display: block;
    }
    
    main {
    	margin-top:80px !important;
    }
    
    .g-disclaimer {
        margin:72px auto -69px auto; 
    }
}

/* Tablet devices (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .mobile-search-btn {
        display: none;
    }
    
    .tablet-nav-search {
        display: block;
    }

    .nav-container {
        padding: 0 24px;
    }

    .mobile-header {
        display: block;
    }

    main {
    	margin-top:80px !important;
    }

    .g-disclaimer {
        margin:72px auto -69px auto; 
    }
}

/* Desktop devices (1024px and above) */
@media (min-width: 1024px) {
    .desktop-top-bar {
        display: block;
    }

    .desktop-nav-bar {
        display: block;
    }
    
    .mobile-header {
        display: none;
    }
    
    .nav-container {
        padding: 0 30px;
    }
}

/* Large desktop (1200px and above) */
@media (min-width: 1200px) {
    .search-input {
        width: 350px;
    }

    .nav-container {
        padding: 0 40px;
    }
}

/* Extra large desktop (1400px and above) */
@media (min-width: 1400px) {
    .nav-container {
        padding: 0 60px;
    }
}

/* =============================================================================
   ACCESSIBILITY & ANIMATIONS
   ============================================================================= */

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Focus styles for accessibility */
.nav-link:focus,
.search-btn:focus,
.mobile-search-btn:focus,
.mobile-menu-btn:focus {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-link {
        border: 2px solid #000000;
    }
    
    .nav-link:hover {
        background: #000000;
        color: #ffffff;
    }
}

/* =============================================================================
   PRINT STYLES
   ============================================================================= */

@media print {
    .main-nav {
        display: none;
    }
} 