/* ========================================
   gabs.reviews — Translucent Frost Theme
   ======================================== */

:root {
    --deep-sky: #0b1928;
    --frost-pane: rgba(220, 232, 240, 0.12);
    --frost-border: rgba(255, 255, 255, 0.22);
    --ridge-shadow: #1e3a52;
    --peak-highlight: #dce8f0;
    --warm-amber: #d4915e;
    --ember-glow: #b8653a;
    --snow-drift: #f0f4f7;
    --ice-shadow: #0f2235;
    --altitude-mark: #5a8fa8;
    --mid-mountain: #2a4d6b;
    --near-mountain: #3a6585;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--deep-sky);
    color: var(--snow-drift);
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 300;
}

/* ---- Navigation Sidebar ---- */
#sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 48px;
    height: 100vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    background: rgba(11, 25, 40, 0.6);
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--frost-border);
}

@supports not (backdrop-filter: blur(12px)) {
    #sidebar {
        background: rgba(14, 30, 48, 0.92);
    }
}

#sidebar-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--peak-highlight);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

#waypoint-dots {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.waypoint-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(220, 232, 240, 0.15);
    border: 1px solid var(--frost-border);
    transition: all 0.4s ease;
    cursor: pointer;
}

.waypoint-dot.active {
    background: var(--warm-amber);
    border-color: var(--warm-amber);
    box-shadow: 0 0 8px rgba(212, 145, 94, 0.5);
}

.mini-compass {
    opacity: 0.6;
}

/* ---- Snowfall ---- */
#snowfall {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: snowfall linear infinite;
}

@keyframes snowfall {
    0% {
        transform: translateY(-10px) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(60vh) translateX(40px);
        opacity: 0;
    }
}

/* ---- Mountain Layers ---- */
#mountain-layers {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 400px;
    z-index: 1;
    pointer-events: none;
}

.mountain-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300%;
    height: 100%;
    will-change: transform;
}

/* ---- Scroll Container ---- */
#scroll-container {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 100vh;
    overflow-x: scroll;
    overflow-y: hidden;
    z-index: 10;
    padding-left: 48px;
    scrollbar-width: none;
}

#scroll-container::-webkit-scrollbar {
    display: none;
}

/* ---- Waypoint Sections ---- */
.waypoint {
    flex: 0 0 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ---- Hero Section ---- */
.hero-section {
    flex-basis: 100vw;
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.compass-rose {
    animation: bounceIn 800ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
    opacity: 0.7;
}

.compass-rose-large {
    animation: rotateCompass 60s linear infinite;
}

@keyframes rotateCompass {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(5rem, 12vw, 10rem);
    letter-spacing: 0.15em;
    line-height: 0.95;
    color: var(--peak-highlight);
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: var(--altitude-mark);
    letter-spacing: 0.05em;
}

.scroll-arrow {
    position: absolute;
    bottom: 40px;
    right: 60px;
    animation: pulseRight 2s ease-in-out infinite;
}

@keyframes pulseRight {
    0%, 100% { transform: translateX(0); opacity: 0.6; }
    50% { transform: translateX(10px); opacity: 1; }
}

/* ---- Interstitials ---- */
.interstitial {
    flex: 0 0 clamp(200px, 30vw, 400px);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ambient-word {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 8vw, 8rem);
    writing-mode: vertical-rl;
    color: var(--peak-highlight);
    opacity: 0.06;
    letter-spacing: 0.2em;
    user-select: none;
    position: absolute;
}

.contour-lines {
    position: absolute;
    opacity: 0.8;
}

.contour-lines path {
    transition: stroke-dashoffset 2s ease-out;
}

.contour-lines.animate path {
    stroke-dashoffset: 0 !important;
}

/* ---- Review Sections ---- */
.review-section {
    flex-basis: clamp(500px, 60vw, 800px);
    flex-shrink: 0;
}

/* ---- Review Cards ---- */
.review-card {
    width: clamp(320px, 40vw, 520px);
    min-height: clamp(400px, 50vh, 600px);
    background: var(--frost-pane);
    backdrop-filter: blur(16px);
    border: 2px solid var(--frost-border);
    border-radius: 4px;
    position: relative;
    transform: rotateX(55deg) rotateZ(-45deg) scale(0.7);
    opacity: 0;
    transition: transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 400ms ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    overflow: hidden;
}

@supports not (backdrop-filter: blur(16px)) {
    .review-card {
        background: rgba(14, 30, 48, 0.92);
    }
}

.review-card.in-view {
    transform: rotateX(0) rotateZ(0) scale(1);
    opacity: 1;
}

.card-frost-halo {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 4px;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 145, 94, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-card:hover .card-frost-halo {
    opacity: 1;
}

.card-accent-strip {
    position: absolute;
    top: 20px;
    right: -12px;
    width: 40px;
    height: 120px;
    background: rgba(212, 145, 94, 0.15);
    border: 1px solid rgba(212, 145, 94, 0.3);
    transform: rotate(3deg);
    border-radius: 2px;
}

.card-inner {
    padding: 40px 36px;
    position: relative;
    z-index: 2;
}

.rating-badge {
    margin-bottom: 20px;
}

.review-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: 0.08em;
    line-height: 0.95;
    color: var(--peak-highlight);
    margin-bottom: 12px;
}

.review-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--altitude-mark);
    background: rgba(90, 143, 168, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(90, 143, 168, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
}

.review-body {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.72;
    letter-spacing: 0.01em;
    color: var(--snow-drift);
    max-width: 38ch;
    margin-bottom: 16px;
}

.review-date {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--altitude-mark);
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--frost-border);
}

/* ---- Summit Section ---- */
.summit-section {
    flex-basis: 100vw;
}

.summit-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.summit-message {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 300;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: var(--snow-drift);
    letter-spacing: 0.03em;
}

.summit-attribution {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--altitude-mark);
    display: flex;
    gap: 12px;
    align-items: center;
}

.divider {
    color: var(--warm-amber);
}

/* ---- Progress Bar ---- */
#progress-bar {
    position: fixed;
    bottom: 0;
    left: 48px;
    right: 0;
    height: 40px;
    z-index: 90;
    pointer-events: none;
}

#progress-ridge {
    width: 100%;
    height: 100%;
}

#ridge-fill {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.1s linear;
}

/* ---- Bounce-enter keyframes ---- */
@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
