/**
 * PWA Bottom Navigation CSS
 *
 * White background, 5 items, outline icons, blue active / grey inactive.
 * Montserrat 9-10px, weight 600 labels.
 *
 * @package SayWOW_PWA
 */

/* ============================================
   BOTTOM NAV BAR
   ============================================ */

.pwa-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--pwa-footer-height);
    padding-bottom: var(--pwa-safe-bottom);
    background: var(--pwa-footer-bg);
    border-top: 1px solid var(--sw-grey-200);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    z-index: 1000;
    font-family: var(--sw-font);
    -webkit-user-select: none;
    user-select: none;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.04);
}

/* ============================================
   NAV ITEM
   ============================================ */

.pwa-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 8px 0 6px;
    text-decoration: none !important;
    color: var(--pwa-nav-inactive);
    transition: color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

/* Active state */
.pwa-nav-item.active {
    color: var(--pwa-nav-active);
}

/* Tap feedback */
.pwa-nav-item:active {
    opacity: 0.7;
}

/* ============================================
   ICON
   ============================================ */

.pwa-nav-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-bottom: 3px;
}

.pwa-nav-item__icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
}

/* ============================================
   LABEL
   ============================================ */

.pwa-nav-item__label {
    font-family: var(--sw-font);
    font-size: 10px;
    font-weight: var(--sw-fw-semibold);
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
}

/* ============================================
   ACTIVE INDICATOR (subtle top line)
   ============================================ */

.pwa-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--pwa-nav-active);
    border-radius: 0 0 2px 2px;
}

/* ============================================
   LANDSCAPE ADJUSTMENT
   ============================================ */

@media (orientation: landscape) and (max-height: 500px) {
    .pwa-bottom-nav {
        height: 48px;
    }

    .pwa-nav-item {
        flex-direction: row;
        gap: 6px;
    }

    .pwa-nav-item__icon {
        margin-bottom: 0;
    }

    .pwa-nav-item__icon svg {
        width: 18px;
        height: 18px;
    }
}
