/* ═══════════════════════════════════════════════════════════
   SUMMERLAND PLUS — Mobile Nav Bar  v1.2.0
   Full light mode — all !important to beat theme overrides
   ══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Desktop: hidden ── */
@media (min-width: 769px) {
    #mobnav-bar,
    #mobnav-overlay { display: none !important; }
}

/* ─── Overlay — pure WHITE expand (mirrors slai-preloader dissolve) ─── */
#mobnav-overlay {
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    right: 0 !important; bottom: 0 !important;
    z-index: 989 !important;                 /* below site menu */
    background: #ffffff !important;          /* WHITE dissolve */
    clip-path: circle(0% at 50% 100%);
    pointer-events: none !important;
    transition: clip-path 0.55s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: clip-path;
}
#mobnav-overlay.expanding {
    clip-path: circle(160% at 50% 100%) !important;
}

/* ─── Bar shell — pure white ─── */
#mobnav-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    /* Below the site header/menu — WoodMart menu is typically 9999 */
    z-index: 990 !important;

    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;

    height: calc(66px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    padding-top: 0 !important;
    margin: 0 !important;

    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important;

    border-top: 1.5px solid #dde8e9 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-radius: 20px 20px 0 0 !important;

    box-shadow:
        0 -4px 24px rgba(16,132,126,0.08),
        0 -1px 0   rgba(221,232,233,0.9),
        0 -8px 20px rgba(0,0,0,0.04) !important;

    font-family: 'Inter', -apple-system, sans-serif !important;
    /* Fade in only — no slide so there's no jump on page navigation */
    animation: mn-fadein 0.25s ease both;
}
/* Extend white background below rounded corners to fill screen bottom */
#mobnav-bar::after {
    content: '' !important;
    position: absolute !important;
    bottom: -40px !important;
    left: 0 !important;
    right: 0 !important;
    height: 44px !important;
    background: rgba(255,255,255,0.97) !important;
    pointer-events: none !important;
    z-index: -1 !important;
}
@keyframes mn-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ─── Side buttons ─── */
.mobnav-btn,
#mobnav-rewards,
#mobnav-whatsapp {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    flex: 1 !important;
    height: 66px !important;
    padding: 10px 6px 12px !important;
    margin: 0 !important;
    text-decoration: none !important;
    color: #8aabab !important;              /* ← muted teal, not white */
    border: none !important;
    background: none !important;
    outline: none !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: color 0.2s ease, transform 0.15s ease !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.mobnav-btn:active,
#mobnav-rewards:active,
#mobnav-whatsapp:active {
    transform: scale(0.88) !important;
    transition-duration: 0.08s !important;
}
#mobnav-rewards:active  { color: #ffb63d !important; }
#mobnav-whatsapp:active { color: #25D366 !important; }

.mobnav-icon {
    width: 26px !important;
    height: 26px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.mobnav-icon svg {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
    fill: none !important;
    color: inherit !important;
}
.mobnav-label {
    font-family: 'Inter', -apple-system, sans-serif !important;
    font-size: 9.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    line-height: 1 !important;
    color: inherit !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ─── Centre slot ─── */
#mobnav-centre {
    flex: 1.1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding-bottom: 8px !important;
    background: none !important;
    overflow: visible !important;   /* don't clip the lifted ring */
}

/* ─── AI button ─── */
#mobnav-ai {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 5px !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    box-shadow: none !important;
    /* Slightly lower lift — was 20px */
    transform: translateY(-14px) !important;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1) !important;
    will-change: transform;
}
#mobnav-ai:active {
    transform: translateY(-14px) scale(0.94) !important;
    transition-duration: 0.08s !important;
}

.mobnav-ai-label {
    font-family: 'Inter', -apple-system, sans-serif !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: #10847E !important;
    opacity: 0.8 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
#mobnav-ai.spinning .mobnav-ai-label {
    color: #10847E !important;
    opacity: 1 !important;
}

/* ══════════════════════════════════════════════════════
   THE RING — ring-logo.svg always visible
   Static: still  |  Tap: same SVG rotates at 1.2s linear
   ══════════════════════════════════════════════════════ */
#mobnav-ring {
    position: relative !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/* The gradient ring SVG — always displayed, rotates on tap */
#mobnav-ring-img {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    display: block !important;
    opacity: 1 !important;
    transform-origin: center center !important;
    will-change: transform;
    filter: drop-shadow(0 0 6px rgba(16,132,126,0.20))
            drop-shadow(0 0 3px rgba(237,203,29,0.15));
}

/* On tap: rotate the SVG at the same speed as slai-load-spin */
#mobnav-ai.spinning #mobnav-ring-img {
    animation: mn-ring-spin 1.2s linear infinite !important;
}
@keyframes mn-ring-spin { to { transform: rotate(360deg); } }

/* Hide the CSS conic spin div — not needed anymore */
#mobnav-ring-spin { display: none !important; }

/* White inner core — inset 9px same as .slai-orb-inner */
#mobnav-ring-core {
    position: absolute !important;
    inset: 9px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    z-index: 2 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Teal spark icon inside */
#mobnav-spark {
    width: 22px !important; height: 22px !important;
    color: #10847E !important;
    display: block !important; flex-shrink: 0 !important;
    transition: color 0.3s ease, transform 0.5s cubic-bezier(0.34,1.56,0.64,1) !important;
}
#mobnav-ai.spinning #mobnav-spark {
    color: #21b99e !important;
    transform: rotate(60deg) scale(0.9) !important;
}

/* Glow — breathes gently in static, pulses when spinning */
#mobnav-glow {
    position: absolute !important;
    inset: -8px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(16,132,126,0.14) 0%, transparent 72%) !important;
    z-index: -1 !important;
    pointer-events: none !important;
    animation: mn-breathe 3.5s ease-in-out infinite !important;
}
@keyframes mn-breathe {
    0%, 100% { opacity: 0.5; transform: scale(1);    }
    50%       { opacity: 1;  transform: scale(1.10); }
}
#mobnav-ai.spinning #mobnav-glow {
    animation: mn-glow-pulse 1.2s ease-in-out infinite !important;
}
@keyframes mn-glow-pulse {
    0%, 100% { opacity: 0.9; transform: scale(1);    }
    50%       { opacity: 1;  transform: scale(1.20); }
}

/* ─── Body offset ─── */
@media (max-width: 768px) {
    body {
        padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px) + 4px) !important;
        box-sizing: border-box !important;
    }
    body:has(.slai-advisor-wrapper) {
        padding-bottom: 0 !important;
    }
}
