/* ============================================
   gabs.review - Aurora Crystal Review Experience
   ============================================ */

/* CSS Custom Properties */
:root {
    --deep-bg: #0b0c1e;
    --panel-bg: #151833;
    --aurora-green: #3dffa2;
    --aurora-teal: #1ce8d5;
    --aurora-magenta: #e84393;
    --aurora-violet: #9b59f5;
    --crystal-amber: #f5c842;
    --frost-white: #e8e6f0;
    --lilac-haze: #b8a9d4;
    --prism-edge: #4effce;
    --blur-easing: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--deep-bg);
    color: var(--frost-white);
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ============================================
   Aurora Background Layers
   ============================================ */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.aurora-layer {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    will-change: transform;
    contain: paint;
}

.aurora-layer-1 {
    background: radial-gradient(ellipse at 30% 40%, rgba(61, 255, 162, 0.18) 0%, transparent 60%);
    animation: auroraMove1 18s ease-in-out infinite;
}

.aurora-layer-2 {
    background: radial-gradient(ellipse at 70% 60%, rgba(155, 89, 245, 0.15) 0%, transparent 55%);
    animation: auroraMove2 25s ease-in-out infinite;
}

.aurora-layer-3 {
    background: radial-gradient(ellipse at 50% 30%, rgba(232, 67, 147, 0.12) 0%, transparent 50%);
    animation: auroraMove3 33s ease-in-out infinite;
}

@keyframes auroraMove1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(5%, -8%) rotate(3deg); }
    50% { transform: translate(-3%, 5%) rotate(-2deg); }
    75% { transform: translate(8%, 3%) rotate(4deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes auroraMove2 {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-8%, 5%) rotate(-3deg); }
    50% { transform: translate(6%, -6%) rotate(2deg); }
    75% { transform: translate(-4%, -3%) rotate(-4deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes auroraMove3 {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(7%, 7%) rotate(5deg); }
    66% { transform: translate(-5%, -4%) rotate(-3deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* ============================================
   Crystalline Fragment Decorations
   ============================================ */
.crystal-fragments {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.crystal-shard {
    position: absolute;
    top: var(--shard-top);
    right: var(--shard-right);
    width: 80px;
    height: 100px;
    background: var(--shard-color);
    opacity: 0;
    clip-path: polygon(50% 0%, 90% 25%, 100% 70%, 60% 100%, 10% 80%, 0% 30%);
    animation: shardRotate var(--shard-rotation-dur) linear infinite;
    transition: opacity 1.5s ease;
}

.crystal-shard.visible {
    opacity: 0.2;
}

.crystal-shard:hover {
    opacity: 0.35;
}

.shard-1 { width: 70px; height: 90px; clip-path: polygon(40% 0%, 95% 20%, 85% 75%, 50% 100%, 5% 70%, 15% 15%); }
.shard-2 { width: 55px; height: 75px; clip-path: polygon(50% 5%, 100% 35%, 80% 90%, 30% 100%, 0% 50%, 20% 10%); }
.shard-3 { width: 90px; height: 110px; clip-path: polygon(45% 0%, 88% 15%, 100% 60%, 70% 100%, 15% 85%, 0% 40%); }
.shard-4 { width: 60px; height: 80px; clip-path: polygon(55% 0%, 100% 30%, 90% 80%, 40% 100%, 0% 65%, 10% 20%); }
.shard-5 { width: 75px; height: 95px; clip-path: polygon(35% 0%, 95% 25%, 85% 70%, 55% 100%, 5% 80%, 15% 20%); }
.shard-6 { width: 65px; height: 85px; clip-path: polygon(50% 0%, 90% 20%, 100% 65%, 65% 100%, 10% 85%, 0% 35%); }
.shard-7 { width: 85px; height: 100px; clip-path: polygon(40% 0%, 100% 30%, 80% 80%, 45% 100%, 0% 70%, 20% 15%); }
.shard-8 { width: 50px; height: 70px; clip-path: polygon(55% 5%, 95% 25%, 90% 75%, 50% 100%, 10% 80%, 5% 30%); }
.shard-9 { width: 95px; height: 115px; clip-path: polygon(45% 0%, 85% 18%, 100% 55%, 75% 100%, 20% 90%, 0% 45%); }
.shard-10 { width: 60px; height: 80px; clip-path: polygon(50% 0%, 100% 25%, 85% 80%, 40% 100%, 0% 60%, 15% 15%); }
.shard-11 { width: 70px; height: 90px; clip-path: polygon(40% 0%, 90% 20%, 100% 70%, 60% 100%, 5% 80%, 10% 25%); }
.shard-12 { width: 55px; height: 75px; clip-path: polygon(55% 0%, 95% 30%, 80% 85%, 35% 100%, 0% 55%, 20% 10%); }

@keyframes shardRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   Prism Lines SVG Overlay
   ============================================ */
.prism-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    opacity: 0;
    animation: heroFadeIn 1.5s ease-out 1s forwards;
}

.hero-title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 7rem);
    color: var(--frost-white);
    transform: rotate(-2deg);
    letter-spacing: 0;
    text-shadow: 0 0 40px rgba(61, 255, 162, 0.3), 0 0 80px rgba(155, 89, 245, 0.15);
    margin-bottom: 0.3em;
}

.hero-tagline {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--lilac-haze);
    letter-spacing: 0.03em;
    opacity: 0;
    animation: heroFadeIn 1s ease-out 1.8s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: heroFadeIn 0.8s ease-out 2.5s forwards, chevronPulse 2s ease-in-out 3.3s infinite;
}

.chevron-crystal {
    display: block;
}

@keyframes heroFadeIn {
    from { opacity: 0; filter: blur(12px); transform: translateY(15px); }
    to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes chevronPulse {
    0%, 100% { opacity: 0.6; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(8px); }
}

/* ============================================
   Crystal Column (Main Content)
   ============================================ */
.crystal-column {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-left: calc(50% - 450px - 8%);
    padding: 0 20px 60px;
}

/* ============================================
   Crystal Panel System
   ============================================ */
.crystal-panel {
    position: relative;
    background: rgba(21, 24, 51, 0.75);
    border: 1px solid rgba(78, 255, 206, 0.1);
    padding: 2.5rem 2.8rem;
    margin-bottom: -14px;
    backdrop-filter: blur(8px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
}

.crystal-panel:nth-child(odd) {
    z-index: 2;
    border-radius: 2px 24px 4px 40px;
}

.crystal-panel:nth-child(even) {
    z-index: 3;
    border-radius: 40px 4px 24px 2px;
}

.crystal-panel:hover {
    border-color: rgba(78, 255, 206, 0.4);
    box-shadow: 0 0 30px rgba(78, 255, 206, 0.06);
}

/* Panel width variants */
.panel-wide {
    width: 100%;
}

.panel-narrow {
    width: 65%;
}

.panel-medium {
    width: 82%;
}

/* Panel Glow Background */
.panel-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 20%, rgba(61, 255, 162, 0.08) 0%, rgba(155, 89, 245, 0.04) 50%, transparent 100%);
    pointer-events: none;
    z-index: -1;
    border-radius: inherit;
}

/* Panel Shimmer Effect (hover) */
.panel-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.04) 50%, transparent 70%);
    background-size: 300% 300%;
    background-position: 100% 100%;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.crystal-panel:hover .panel-shimmer {
    opacity: 1;
    animation: shimmerSweep 1.2s ease forwards;
}

@keyframes shimmerSweep {
    from { background-position: 100% 100%; }
    to { background-position: 0% 0%; }
}

.panel-content {
    position: relative;
    z-index: 1;
}

/* ============================================
   Review Typography
   ============================================ */
.review-title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(2.2rem, 5.5vw, 4.8rem);
    color: var(--frost-white);
    line-height: 1.2;
    margin-bottom: 0.4em;
}

.review-title.small-title {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.review-meta {
    display: flex;
    gap: 1.2em;
    margin-bottom: 1em;
}

.meta-date {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--lilac-haze);
    letter-spacing: 0.05em;
}

.meta-tag {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--aurora-teal);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.review-body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.8;
    color: var(--frost-white);
    margin-bottom: 1.5em;
}

/* Verdict */
.review-verdict {
    display: flex;
    align-items: center;
    gap: 1.2em;
    flex-wrap: wrap;
}

.verdict-word {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    background: linear-gradient(135deg, var(--aurora-green), var(--aurora-teal), var(--aurora-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.verdict-stars {
    display: flex;
    gap: 0.15em;
}

.star {
    font-size: 1.5rem;
    line-height: 1;
}

.star.filled {
    color: var(--crystal-amber);
}

.star.empty {
    color: rgba(184, 169, 212, 0.3);
}

.star.half {
    color: var(--crystal-amber);
    opacity: 0.55;
}

/* Pull Quotes */
.pull-quote {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    color: var(--frost-white);
    line-height: 1.5;
    position: relative;
    padding: 0.5em 0;
    background: linear-gradient(90deg, rgba(28, 232, 213, 0.15), rgba(232, 67, 147, 0.15));
    padding: 0.8em 1em;
    border-radius: 4px;
}

.quote-attribution {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--lilac-haze);
    letter-spacing: 0.05em;
    margin-top: 0.8em;
    font-style: italic;
}

/* ============================================
   Aurora Break (Section Dividers)
   ============================================ */
.aurora-break {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 80px;
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.aurora-break-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3dffa2 0%, #1ce8d5 25%, #9b59f5 60%, #e84393 100%);
    opacity: 0.25;
    animation: auroraBreatheSlow 8s ease-in-out infinite;
}

.aurora-break-gradient.aurora-break-alt {
    background: linear-gradient(135deg, #e84393 0%, #9b59f5 35%, #1ce8d5 70%, #3dffa2 100%);
}

@keyframes auroraBreatheSlow {
    0%, 100% { opacity: 0.2; transform: scaleX(1); }
    50% { opacity: 0.35; transform: scaleX(1.02); }
}

/* ============================================
   Handwritten Annotations
   ============================================ */
.annotation {
    position: absolute;
    pointer-events: none;
    z-index: 5;
}

/* ============================================
   Blur-Focus Animation System
   ============================================ */
.blur-target {
    filter: blur(12px);
    opacity: 0.4;
    transform: translateY(20px) scale(0.98);
    transition: filter 0.8s var(--blur-easing),
                opacity 0.8s ease-out,
                transform 0.8s var(--blur-easing);
}

.blur-target.in-view {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0) scale(1);
}

.blur-child {
    filter: blur(12px);
    opacity: 0.4;
    transform: translateY(20px) scale(0.98);
    transition: filter 0.8s var(--blur-easing),
                opacity 0.8s ease-out,
                transform 0.8s var(--blur-easing);
    transition-delay: calc(var(--stagger-index, 0) * 80ms);
}

.in-view .blur-child {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Keep review-title rotation when in view */
.in-view .review-title.blur-child {
    filter: blur(0);
    opacity: 1;
}

/* ============================================
   Footer
   ============================================ */
.crystal-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 20px 60px;
}

.footer-text {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--frost-white);
    transform: rotate(-1deg);
}

.footer-sub {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--lilac-haze);
    letter-spacing: 0.05em;
    margin-top: 0.5em;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .crystal-column {
        margin-left: 5%;
        margin-right: 5%;
        max-width: 90%;
    }

    .panel-wide,
    .panel-medium,
    .panel-narrow {
        width: 100%;
    }

    .crystal-panel {
        padding: 1.8rem 1.5rem;
    }

    .crystal-shard:nth-child(n+7) {
        display: none;
    }

    .aurora-layer-2,
    .aurora-layer-3 {
        display: none;
    }

    .blur-target {
        filter: blur(6px);
    }

    .blur-child {
        filter: blur(6px);
    }

    .aurora-break {
        height: 50px;
        margin-top: 25px;
        margin-bottom: 25px;
    }

    .annotation {
        display: none;
    }

    .review-verdict {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6em;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .crystal-panel {
        padding: 1.4rem 1.2rem;
        margin-bottom: -8px;
    }

    .review-title {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }

    .verdict-word {
        font-size: clamp(1.3rem, 6vw, 2rem);
    }

    .pull-quote {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }
}

/* Large screens: decorative right margin enhancement */
@media (min-width: 1200px) {
    .crystal-column {
        margin-left: calc(50% - 500px - 8%);
        max-width: 1000px;
    }

    .crystal-shard {
        width: calc(var(--shard-width, 80px) * 1.3);
        height: calc(var(--shard-height, 100px) * 1.3);
    }
}
