/* =========================================
   RESET & FOUNDATION
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --app-height: 100vh;
}

html, body {
    width: 100%;
    height: var(--app-height);
    overflow: hidden; 
    overscroll-behavior: none;
}

/* =========================================
   SPA VIEWS & ROUTING
   ========================================= */
.view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.view.hidden {
    display: none !important;
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(50px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutLeft {
    0% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(-50px); }
}
@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-50px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutRight {
    0% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(50px); }
}

/* Slide up animation for overlays (like the logger) */
.view.overlay.hidden > div:nth-child(2) {
    transform: translateY(100%);
}
.view.overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Base Map */
#map-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Hide Mapbox watermark if desired */
.mapboxgl-ctrl-bottom-left, .mapboxgl-ctrl-bottom-right {
    display: none !important;
}

/* =========================================
   RETRO LIGHT MVP SPEC STYLES
   ========================================= */

/* Icons */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    vertical-align: middle;
}

input:focus {
    outline: none;
    box-shadow: none;
}

/* Auth Email specific */
.passport-ghost {
    opacity: 0.03;
    filter: grayscale(1);
    pointer-events: none;
}
.editorial-focus:focus-within {
    border-bottom-color: #ff5733;
}

/* Auth Password specific */
.passport-watermark {
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
}

/* Map specific */
.map-mesh {
    background-image: radial-gradient(circle, #e4beb6 1px, transparent 1px);
    background-size: 32px 32px;
}
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Log Journey specific */
.text-ink-gradient {
    background: linear-gradient(to bottom, #ff5733, #b72301);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Onboarding (How it works & Always Free) specific */
.perforated-edge {
    mask-image: radial-gradient(circle at 0 50%, transparent 10px, black 11px), 
                radial-gradient(circle at 100% 50%, transparent 10px, black 11px);
    mask-size: 100% 100%;
}
.glass-effect {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.asymmetric-canvas {
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}
.editorial-shadow {
    box-shadow: 0 10px 30px rgba(183, 35, 1, 0.08);
}
