/* Bottom Navigation Bar - No Hamburger Menu */

/* Hide elements we don't need */
.mobile-menu-toggle,
.menu-overlay,
.site-menu.mobile-only {
    display: none !important;
}

/* Desktop Navigation - unchanged */
@media screen and (min-width: 769px) {
    .bottom-nav {
        display: none !important;
    }
    
    .site-nav {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
    }
}

/* Mobile Navigation - Bottom Bar */
@media screen and (max-width: 768px) {
    /* Hide desktop navigation completely */
    .site-nav {
        display: none !important;
    }
    
    /* Bottom Navigation Bar */
    .bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 60px !important;
        background: #1e293b !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
        z-index: 9999 !important;
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 0 10px !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        background: rgba(30, 41, 59, 0.98) !important;
    }
    
    /* Navigation Items */
    .bottom-nav-item {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        color: rgba(255, 255, 255, 0.8) !important;
        padding: 8px 4px !important;
        min-height: 44px !important;
        transition: all 0.2s ease !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
        position: relative !important;
    }
    
    /* Icon styling */
    .bottom-nav-item .icon {
        font-size: 20px !important;
        margin-bottom: 4px !important;
        transition: transform 0.2s ease !important;
    }
    
    /* Label styling */
    .bottom-nav-item .label {
        font-size: 11px !important;
        font-weight: 500 !important;
        letter-spacing: 0.3px !important;
    }
    
    /* Active/Hover state */
    .bottom-nav-item:active {
        color: #10b981 !important;
        transform: scale(0.95) !important;
    }
    
    .bottom-nav-item:active .icon {
        transform: translateY(-2px) !important;
    }
    
    /* Current page indicator */
    .bottom-nav-item.current {
        color: #10b981 !important;
    }
    
    .bottom-nav-item.current::after {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 30px !important;
        height: 3px !important;
        background: #10b981 !important;
        border-radius: 0 0 3px 3px !important;
    }
    
    /* Page content adjustment */
    body {
        padding-bottom: 70px !important; /* Space for bottom nav */
        padding-top: 0 !important; /* No top nav on mobile */
    }
    
    /* Header/Logo for mobile */
    .mobile-header {
        position: sticky !important;
        top: 0 !important;
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
        padding: 12px 16px !important;
        z-index: 100 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .mobile-header .logo {
        font-size: 18px !important;
        font-weight: 600 !important;
        color: white !important;
        text-decoration: none !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    /* Scroll adjustments */
    html {
        scroll-padding-top: 60px !important; /* For mobile header */
        scroll-padding-bottom: 70px !important; /* For bottom nav */
    }
    
    section[id] {
        scroll-margin-top: 70px !important;
    }
    
    /* Safe area for iPhone */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .bottom-nav {
            padding-bottom: env(safe-area-inset-bottom) !important;
            height: calc(60px + env(safe-area-inset-bottom)) !important;
        }
        
        body {
            padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
        }
    }
}

/* Tablet adjustments */
@media screen and (min-width: 480px) and (max-width: 768px) {
    .bottom-nav-item .icon {
        font-size: 22px !important;
    }
    
    .bottom-nav-item .label {
        font-size: 12px !important;
    }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    .bottom-nav {
        border-top: 2px solid white !important;
    }
    
    .bottom-nav-item:focus {
        outline: 2px solid white !important;
        outline-offset: -2px !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .bottom-nav {
        background: rgba(15, 23, 42, 0.98) !important;
    }
}

/* Landscape mode adjustments */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .bottom-nav {
        height: 50px !important;
    }
    
    .bottom-nav-item .icon {
        font-size: 18px !important;
        margin-bottom: 2px !important;
    }
    
    .bottom-nav-item .label {
        font-size: 10px !important;
    }
    
    body {
        padding-bottom: 60px !important;
    }
}