/* Bottom Navigation - Mobile App Style */
/* Include this CSS in all pages for consistent navigation */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 5, 6, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.5);
    display: none; /* Hidden on desktop by default */
}

.bottom-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    color: #ffb347;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border-radius: 12px;
}

.bottom-nav-item .icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.bottom-nav-item .label {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.8;
}

.bottom-nav-item.active {
    color: #ffd700;
}

.bottom-nav-item.active .icon {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.bottom-nav-item.active .label {
    opacity: 1;
    font-weight: 600;
}

.bottom-nav-item:active {
    transform: scale(0.95);
}

/* Show bottom nav on mobile and tablets (touch devices) */
@media (max-width: 1024px) and (hover: none) and (pointer: coarse) {
    /* Touch devices only */
    .bottom-nav {
        display: block !important;
    }
    
    .nav-links {
        display: none !important;
    }
    
    .nav-left.nav-links {
        display: none !important;
    }
    
    body {
        padding-bottom: 70px !important;
    }
}

/* Also show on small screens regardless of touch */
@media (max-width: 768px) {
    .bottom-nav {
        display: block !important;
    }
    
    .nav-links {
        display: none !important;
    }
    
    .nav-left.nav-links {
        display: none !important;
    }
    
    body {
        padding-bottom: 70px !important;
    }
}

/* Landscape phones - ensure bottom nav shows */
@media (max-height: 600px) and (orientation: landscape) {
    .bottom-nav {
        display: block !important;
    }
    
    .nav-links {
        display: none !important;
    }
    
    .nav-left.nav-links {
        display: none !important;
    }
    
    body {
        padding-bottom: 60px !important;
    }
    
    .bottom-nav {
        padding: 4px 0 4px !important;
    }
    
    .bottom-nav-item .icon {
        font-size: 1.3rem !important;
    }
    
    .bottom-nav-item .label {
        font-size: 0.65rem !important;
    }
}

/* Hide bottom nav on desktop */
@media (min-width: 1025px) {
    .bottom-nav {
        display: none !important;
    }
}

/* Smooth scroll for all pages */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
