/* Mobile Bottom Navigation Styles */
/* Optimized for PWA with safe-area support */

/* Bottom Navigation Container */
.bottom-nav-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.bottom-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px;
    border-top: 1px solid #333;
    min-height: 60px;
}

/* Copyright Notice - now inside nav container */
.copyright-notice {
    text-align: left;
    font-size: 10px;
    color: #888;
    background: #0a0a0a;
    padding: 6px 15px max(6px, env(safe-area-inset-bottom, 0px)) 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    border-top: 1px solid #2a2a2a;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #888;
    padding: 8px 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border-radius: 16px;
    margin: 0;
    max-width: 20%;
}

.nav-item.active {
    background: linear-gradient(135deg, #FF4500 0%, #FF6B35 100%);
    color: white;
    box-shadow: 0 2px 12px rgba(255, 69, 0, 0.4);
}

.nav-item:hover:not(.active) {
    color: #aaa;
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
}

.nav-item.active .nav-icon {
    stroke: white;
}

.nav-logo {
    width: 32px;
    height: 32px;
    margin-bottom: 2px;
}

.nav-item:not(.active) .nav-logo {
    filter: brightness(0) saturate(100%) invert(53%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(88%) contrast(88%);
}

.nav-item.active .nav-logo {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.nav-label {
    font-size: 10px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

/* Add padding to body to account for fixed bottom nav container */
body {
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

/* Prevent white space at bottom in PWA mode */
html {
    height: -webkit-fill-available;
}

/* PWA standalone mode optimizations */
@media all and (display-mode: standalone) {
    .copyright-notice {
        padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    }
    
    body {
        padding-bottom: calc(95px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* iOS PWA specific fixes */
@supports (-webkit-touch-callout: none) {
    @media all and (display-mode: standalone) {
        .copyright-notice {
            padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
        }
        
        body {
            padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
        }
    }
}

/* First-visit discovery animation */
@keyframes navGlowPulse {
    0% {
        box-shadow: 0 0 0 rgba(255, 69, 0, 0);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 69, 0, 0.6), 0 0 30px rgba(255, 107, 53, 0.4);
    }
    100% {
        box-shadow: 0 0 0 rgba(255, 69, 0, 0);
    }
}

.nav-item.discovery-pulse {
    animation: navGlowPulse 1.2s ease-out;
}

/* Mobile responsive adjustments */
@media (min-width: 768px) {
    .nav-item {
        padding: 10px 14px;
    }
    .nav-icon {
        width: 26px;
        height: 26px;
    }
    .nav-logo {
        width: 36px;
        height: 36px;
    }
    .nav-label {
        font-size: 11px;
    }
}
