/* Mobile App-Like Experience Styles */

:root {
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --bottom-nav-height: calc(60px + var(--safe-area-bottom));
}

/* Base Mobile Adjustments */
@media (max-width: 768px) {
    body {
        padding-bottom: var(--bottom-nav-height) !important;
        /* Ensure content clears bottom nav */
        -webkit-tap-highlight-color: transparent;
        /* Remove tap highlight */
    }

    /* 
       BOTTOM NAVIGATION BAR 
       Fixed at bottom, always visible
    */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: var(--bottom-nav-height);
        background: rgba(13, 14, 20, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        justify-content: space-around;
        align-items: center;
        /* Center vertically in the main 60px area */
        padding-bottom: var(--safe-area-bottom);
        /* Push content up from home bar */
        z-index: 10000;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.65);
        text-decoration: none;
        font-size: 11px;
        font-family: var(--font-ui, 'Inter', sans-serif);
        font-weight: 600;
        letter-spacing: 0.3px;
        height: 100%;
        transition: all 0.2s ease;
        padding-top: 6px;
        padding-bottom: 2px;
        border-top: 2px solid transparent;
    }

    .bottom-nav-item .icon {
        width: 26px;
        height: 26px;
        margin-bottom: 3px;
        transition: transform 0.2s ease;
        opacity: 0.9;
        stroke-width: 2.5;
    }

    /* Active State */
    .bottom-nav-item.active {
        color: var(--accent-gold, #ffd700);
        background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    }

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

    /* Touch Feedback */
    .bottom-nav-item:active {
        transform: scale(0.95);
        color: white;
    }
}

/* Desktop: Hide Bottom Nav */
@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }
}

/* =========================================
   HERO SECTION STYLES (Replaces inline)
   ========================================= */
.hero-section {
    min-height: 25vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 40px;
    padding: 0 20px;
}

.hero-logo {
    max-height: 180px;
    width: auto;
    display: block;
}

.hero-description {
    font-size: var(--fluid-lg, 1.25rem);
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
    line-height: 1.5;
}

.modules-grid {
    padding-bottom: 80px;
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* Mobile Specific Hero Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 20vh;
        margin-top: 20px;
    }

    .hero-logo {
        max-height: 140px;
        /* Smaller logo on mobile */
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .modules-grid {
        padding-bottom: 20px;
        /* Less bottom padding because body has padding-bottom */
        grid-template-columns: 1fr;
        /* Stack modules */
        gap: 20px;
    }
}