/* Mobile Bottom Navigation Bar
   Visible only on mobile (<1024px). Desktop: hidden via display:none.
   No transitions or animations (project rule). */

/* Desktop: hide everything */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 1023px) {

    /* ===== Bottom Nav Bar ===== */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: var(--z-100);
        background-color: var(--color-white);
        border-top: var(--border-width-1) solid var(--border-color);
        box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.08);
        padding-bottom: env(safe-area-inset-bottom);
        align-items: flex-end;
        justify-content: space-around;
    }

    /* Standard nav items */
    .mobile-bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        padding: var(--spacing-2) var(--spacing-1);
        color: var(--color-gray-600);
        text-decoration: none;
        font-size: var(--font-size-xs);
        font-weight: var(--font-weight-medium);
        background: none;
        border: none;
        cursor: pointer;
        flex: 1;
        gap: var(--spacing-1);
    }

    .mobile-bottom-nav-item.active {
        color: var(--color-accent);
    }

    .mobile-bottom-nav-item:hover,
    .mobile-bottom-nav-item:focus-visible {
        color: var(--color-accent);
        text-decoration: none;
    }

    /* Icons */
    .mobile-bottom-nav-icon {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-bottom-nav-label {
        font-size: var(--font-size-xs);
        line-height: 1;
    }

    /* Center CTA — raised hero button */
    .mobile-bottom-nav-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 64px;
        min-height: 44px;
        padding: var(--spacing-2) var(--spacing-3);
        background-color: var(--color-accent);
        color: var(--color-white);
        border-radius: var(--radius-lg);
        text-decoration: none;
        font-weight: var(--font-weight-bold);
        font-size: var(--font-size-sm);
        box-shadow: 0 2px 8px rgba(0, 128, 128, 0.3);
        position: relative;
        top: calc(-1 * var(--spacing-2));
        flex: 1.2;
        border: none;
        cursor: pointer;
    }

    .mobile-bottom-nav-cta:hover,
    .mobile-bottom-nav-cta:focus-visible {
        background-color: var(--color-accent-dark);
        color: var(--color-white);
        text-decoration: none;
    }

    .mobile-bottom-nav-cta-label {
        line-height: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }

    /* ===== Content padding to prevent bottom nav overlap ===== */
    .site-main-content {
        padding-bottom: 72px;
    }
}
