/* ===== gabs.reviews — Glitch + Zen Contemplative ===== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --warm-earth: #6B5B4F;
    --parchment-light: #F0EBE0;
    --glitch-red: #E04040;
    --glitch-blue: #4080E0;
    --zen-green: #5A8A62;
    --static-gray: #8A8580;
    --deep-root: #2A2218;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(15px, 1.6vw, 19px);
    line-height: 1.8;
    color: var(--parchment-light);
    background-color: var(--warm-earth);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Floating Elements Layer --- */
#floating-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.floating-el {
    position: absolute;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.floating-el.visible {
    opacity: 0.35;
    transform: scale(1);
}

.floating-el[data-drift="1"] {
    width: 14px;
    height: 14px;
    background: var(--parchment-light);
    border-radius: 50%;
    top: 15%;
    left: 8%;
}

.floating-el[data-drift="2"] {
    width: 20px;
    height: 8px;
    background: var(--static-gray);
    top: 30%;
    right: 12%;
}

.floating-el[data-drift="3"] {
    width: 10px;
    height: 10px;
    background: var(--zen-green);
    border-radius: 50%;
    top: 50%;
    left: 5%;
}

.floating-el[data-drift="4"] {
    width: 18px;
    height: 6px;
    background: var(--parchment-light);
    top: 65%;
    right: 7%;
}

.floating-el[data-drift="5"] {
    width: 12px;
    height: 12px;
    background: var(--static-gray);
    border-radius: 2px;
    top: 80%;
    left: 10%;
}

.floating-el[data-drift="6"] {
    width: 16px;
    height: 16px;
    background: var(--zen-green);
    border-radius: 50%;
    top: 40%;
    right: 5%;
}

/* --- Glitch Bands Layer --- */
#glitch-bands {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
}

.glitch-band {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--static-gray);
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.08s, transform 0.08s;
}

.glitch-band.burst {
    opacity: 0.5;
    transform: translateX(var(--offset, 5px));
}

/* --- Botanical Layer --- */
#botanical-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.botanical {
    position: absolute;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.botanical.visible {
    opacity: var(--target-opacity, 0.12);
}

.botanical-fern-1 {
    width: 100px;
    top: 10%;
    left: 3%;
    --target-opacity: 0.1;
}

.botanical-leaf-1 {
    width: 70px;
    top: 25%;
    right: 4%;
    --target-opacity: 0.12;
}

.botanical-sprig-1 {
    width: 55px;
    top: 45%;
    left: 6%;
    --target-opacity: 0.1;
}

.botanical-fern-2 {
    width: 90px;
    top: 60%;
    right: 3%;
    --target-opacity: 0.12;
}

.botanical-flower-1 {
    width: 60px;
    top: 75%;
    left: 4%;
    --target-opacity: 0.15;
}

.botanical-leaf-2 {
    width: 65px;
    top: 88%;
    right: 5%;
    --target-opacity: 0.1;
}

/* --- Hero Section Base --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

/* --- Opening / Title Section --- */
#opening {
    flex-direction: column;
}

.opening-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

#title-gabs {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(48px, 12vw, 140px);
    letter-spacing: 0.06em;
    color: var(--parchment-light);
    text-shadow:
        -2px 0 var(--glitch-red),
        2px 0 var(--glitch-blue),
        0 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.6s ease;
    line-height: 1;
}

#title-gabs.animate-in {
    opacity: 1;
}

#title-reviews {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: clamp(18px, 3vw, 36px);
    letter-spacing: 0.15em;
    color: var(--parchment-light);
    opacity: 0;
    transition: opacity 0.6s ease;
    margin-top: 0.2em;
}

#title-reviews.animate-in {
    opacity: 0.85;
}

.tagline {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-size: clamp(13px, 1.4vw, 17px);
    color: var(--static-gray);
    letter-spacing: 0.08em;
    margin-top: 1.5em;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.tagline.animate-in {
    opacity: 0.7;
}

/* --- RGB Glitch Text Effect --- */
.glitch-text {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(24px, 4.5vw, 56px);
    letter-spacing: 0.02em;
    color: var(--parchment-light);
    text-shadow:
        -2px 0 var(--glitch-red),
        2px 0 var(--glitch-blue),
        0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

/* --- Review Sections --- */
.review-section {
    filter: blur(3px);
    transition: filter 0.6s ease;
}

.review-section.in-focus {
    filter: blur(0);
}

.review-column {
    max-width: 480px;
    width: 90%;
    padding: 2em 0;
    position: relative;
    z-index: 10;
}

.review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin-bottom: 1.5em;
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(10px, 1vw, 13px);
    color: var(--static-gray);
    letter-spacing: 0.04em;
}

.reviewer-id {
    opacity: 0.8;
}

.review-timestamp {
    opacity: 0.6;
}

.review-title {
    margin-bottom: 0.8em;
}

.review-body {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    color: var(--parchment-light);
    opacity: 0.9;
    margin-bottom: 2em;
}

/* --- Score Bar --- */
.review-score {
    display: flex;
    align-items: center;
    gap: 0.8em;
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(10px, 1vw, 12px);
    color: var(--static-gray);
}

.score-label {
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.6;
}

.score-bar {
    flex: 1;
    height: 2px;
    background: rgba(240, 235, 224, 0.15);
    position: relative;
    max-width: 160px;
}

.score-fill {
    display: block;
    height: 100%;
    background: var(--zen-green);
    transition: width 1.2s ease;
}

.score-value {
    font-weight: 700;
    color: var(--parchment-light);
    opacity: 0.7;
}

/* --- Contemplation Garden --- */
#contemplation {
    flex-direction: column;
    background: linear-gradient(180deg, var(--warm-earth) 0%, #5E5045 50%, var(--warm-earth) 100%);
}

.contemplation-content {
    text-align: center;
    max-width: 520px;
    width: 90%;
    position: relative;
    z-index: 10;
    padding: 2em 0;
}

.contemplation-botanical {
    width: clamp(120px, 20vw, 220px);
    margin: 0 auto 2em;
    display: block;
    opacity: 0.25;
}

.contemplation-title {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(22px, 3.5vw, 42px);
    letter-spacing: 0.02em;
    color: var(--parchment-light);
    margin-bottom: 0.8em;
    /* No RGB split -- this is the calm zone */
}

.contemplation-text {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    color: var(--parchment-light);
    opacity: 0.85;
    margin-bottom: 2em;
}

.contemplation-korean {
    font-family: 'Space Mono', monospace;
    font-size: clamp(14px, 2vw, 22px);
    color: var(--zen-green);
    letter-spacing: 0.1em;
    opacity: 0.6;
}

/* --- Animations --- */
@keyframes glitchBurst {
    0% {
        opacity: 0;
        transform: translateX(0);
    }
    15% {
        opacity: 0.55;
        transform: translateX(var(--offset, 6px));
    }
    30% {
        opacity: 0;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(0);
    }
}

@keyframes floatDrift {
    0% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(6px, -8px) scale(1);
    }
    50% {
        transform: translate(-4px, 4px) scale(1);
    }
    75% {
        transform: translate(8px, 6px) scale(1);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

.floating-el.visible {
    animation: floatDrift 18s ease-in-out infinite;
}

.floating-el[data-drift="2"].visible {
    animation-duration: 22s;
    animation-delay: -3s;
}

.floating-el[data-drift="3"].visible {
    animation-duration: 20s;
    animation-delay: -7s;
}

.floating-el[data-drift="4"].visible {
    animation-duration: 25s;
    animation-delay: -5s;
}

.floating-el[data-drift="5"].visible {
    animation-duration: 19s;
    animation-delay: -10s;
}

.floating-el[data-drift="6"].visible {
    animation-duration: 23s;
    animation-delay: -2s;
}

/* --- Glitch Flicker for title --- */
@keyframes rgbSplitIn {
    0% {
        text-shadow:
            0 0 var(--glitch-red),
            0 0 var(--glitch-blue),
            0 0 rgba(0, 0, 0, 0);
    }
    100% {
        text-shadow:
            -2px 0 var(--glitch-red),
            2px 0 var(--glitch-blue),
            0 1px 2px rgba(0, 0, 0, 0.3);
    }
}

#title-gabs.animate-in {
    animation: rgbSplitIn 0.6s ease-out forwards;
}

/* --- Floating element glitch jump --- */
@keyframes glitchJump {
    0% { transform: translate(0, 0); }
    50% { transform: translate(var(--jx, 10px), var(--jy, -8px)); }
    100% { transform: translate(0, 0); }
}

.floating-el.glitch-jump {
    animation: glitchJump 0.08s linear !important;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .review-column {
        width: 92%;
        max-width: none;
    }

    .botanical {
        display: none;
    }

    .floating-el {
        display: none;
    }

    .review-meta {
        flex-direction: column;
        gap: 0.3em;
    }
}
