/* ===========================================
   foryou.reviews - Styles
   Theatre-dark, spotlight-illuminated review experience
   =========================================== */

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

:root {
    --theatre-black: #0C0C0F;
    --spotlight-gold: #FFE066;
    --dopamine-neon: #FF3366;
    --trust-blue: #4A90D9;
    --parchment-white: #F0EDE6;
    --muted-silver: #8A8A94;
    --nature-olive: #4A5C3A;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--muted-silver) var(--theatre-black);
}

body {
    background-color: var(--theatre-black);
    color: var(--parchment-white);
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.6vw, 19px);
    line-height: 1.75;
    overflow-x: hidden;
}

/* --- Viewport Sections --- */
.viewport-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--theatre-black);
}

/* --- Spotlight Effects --- */
.spotlight {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.spotlight-gold {
    background: conic-gradient(
        from 165deg at 50% 0%,
        transparent 0deg,
        rgba(255, 224, 102, 0.08) 15deg,
        rgba(255, 224, 102, 0.06) 20deg,
        rgba(255, 224, 102, 0.08) 30deg,
        transparent 45deg
    );
}

.spotlight-warm {
    background: conic-gradient(
        from 165deg at 50% 0%,
        transparent 0deg,
        rgba(255, 224, 102, 0.07) 12deg,
        rgba(255, 224, 102, 0.05) 22deg,
        rgba(255, 224, 102, 0.07) 30deg,
        transparent 42deg
    );
}

.spotlight-cool {
    background: conic-gradient(
        from 165deg at 50% 0%,
        transparent 0deg,
        rgba(74, 144, 217, 0.08) 12deg,
        rgba(74, 144, 217, 0.06) 22deg,
        rgba(74, 144, 217, 0.08) 30deg,
        transparent 42deg
    );
}

.spotlight-rose {
    background: conic-gradient(
        from 165deg at 50% 0%,
        transparent 0deg,
        rgba(255, 51, 102, 0.07) 12deg,
        rgba(255, 51, 102, 0.05) 22deg,
        rgba(255, 51, 102, 0.07) 30deg,
        transparent 42deg
    );
}

.spotlight-narrow {
    background: conic-gradient(
        from 172deg at 50% 0%,
        transparent 0deg,
        rgba(255, 224, 102, 0.06) 8deg,
        rgba(255, 224, 102, 0.04) 12deg,
        rgba(255, 224, 102, 0.06) 16deg,
        transparent 24deg
    );
}

/* --- Vignette --- */
.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 200px 100px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 2;
}

/* --- Botanical Silhouettes --- */
.botanical {
    position: absolute;
    top: 0;
    height: 100%;
    width: 120px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.05;
}

.botanical-left {
    left: 0;
}

.botanical-right {
    right: 0;
}

.botanical svg {
    width: 100%;
    height: 100%;
}

.botanical-faint {
    opacity: 0.03;
}

/* === HERO SECTION === */
#hero {
    flex-direction: column;
    z-index: 1;
}

#hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

#hero-title {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: clamp(48px, 10vw, 120px);
    letter-spacing: 0.01em;
    color: var(--parchment-white);
    line-height: 1.1;
}

#hero-title .letter {
    display: inline-block;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#hero-title .letter.visible {
    opacity: 1;
    transform: scale(1);
}

#hero-subtitle {
    font-family: 'Roboto Slab', serif;
    font-weight: 400;
    font-size: clamp(18px, 3vw, 36px);
    letter-spacing: 0.15em;
    color: var(--parchment-white);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#hero-subtitle.visible {
    opacity: 0.7;
    transform: translateY(0);
}

#hero-hud {
    margin-top: 32px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

#hero-hud.visible {
    opacity: 1;
}

/* === HUD RATING CIRCLES === */
.hud-rating {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.hud-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.hud-ring {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.2s ease-out;
}

.hud-ring-outer {
    stroke: var(--spotlight-gold);
    filter: drop-shadow(0 0 4px rgba(255, 224, 102, 0.4));
}

.hud-ring-middle {
    stroke: var(--trust-blue);
    filter: drop-shadow(0 0 4px rgba(74, 144, 217, 0.4));
}

.hud-ring-inner {
    stroke: var(--dopamine-neon);
    filter: drop-shadow(0 0 4px rgba(255, 51, 102, 0.4));
}

.hud-score {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--parchment-white);
    text-shadow: 0 0 10px rgba(255, 224, 102, 0.3);
}

/* === REVIEW SECTIONS === */
.review-section {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.review-section.in-view {
    opacity: 1;
}

.review-content {
    position: relative;
    z-index: 3;
    width: 60%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    transition: filter 0.3s ease;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 32px;
}

.review-meta {
    flex: 1;
}

.review-title {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: clamp(28px, 5vw, 64px);
    letter-spacing: 0.01em;
    color: var(--parchment-white);
    line-height: 1.2;
    margin-bottom: 8px;
}

.review-category {
    font-family: 'Orbitron', sans-serif;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted-silver);
    margin-bottom: 12px;
}

.review-verdict {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(15px, 1.6vw, 19px);
    color: var(--spotlight-gold);
    font-style: italic;
}

.review-body p {
    margin-bottom: 16px;
    color: var(--parchment-white);
}

.review-highlight {
    color: var(--muted-silver);
    font-size: 0.9em;
    padding-left: 16px;
    border-left: 2px solid var(--spotlight-gold);
    font-style: italic;
}

/* --- Tags --- */
.review-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tag {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 2px;
    border: 1px solid;
}

.tag-verified {
    color: var(--trust-blue);
    border-color: rgba(74, 144, 217, 0.3);
    background: rgba(74, 144, 217, 0.05);
}

.tag-for-you {
    color: var(--spotlight-gold);
    border-color: rgba(255, 224, 102, 0.3);
    background: rgba(255, 224, 102, 0.05);
}

.tag-trending {
    color: var(--dopamine-neon);
    border-color: rgba(255, 51, 102, 0.3);
    background: rgba(255, 51, 102, 0.05);
}

.tag-top-rated {
    color: var(--dopamine-neon);
    border-color: rgba(255, 51, 102, 0.4);
    background: rgba(255, 51, 102, 0.08);
    box-shadow: 0 0 8px rgba(255, 51, 102, 0.15);
}

/* --- Spotlight color tints per section --- */
.review-section[data-spotlight="gold"] .review-verdict {
    color: var(--spotlight-gold);
}

.review-section[data-spotlight="blue"] .review-verdict {
    color: var(--trust-blue);
}

.review-section[data-spotlight="rose"] .review-verdict {
    color: var(--dopamine-neon);
}

.review-section[data-spotlight="gold"] .hud-score {
    text-shadow: 0 0 10px rgba(255, 224, 102, 0.3);
}

.review-section[data-spotlight="blue"] .hud-score {
    text-shadow: 0 0 10px rgba(74, 144, 217, 0.3);
}

.review-section[data-spotlight="rose"] .hud-score {
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

/* === CREDITS / FOOTER === */
#credits {
    flex-direction: column;
    padding: 80px 20px;
}

.credits-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.credits-title {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: clamp(24px, 4vw, 48px);
    letter-spacing: 0.01em;
    color: var(--parchment-white);
    margin-bottom: 48px;
}

.credits-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 64px;
}

.credit-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(138, 138, 148, 0.15);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.credit-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.credit-category {
    font-family: 'Roboto Slab', serif;
    font-weight: 400;
    font-size: clamp(14px, 1.4vw, 18px);
    color: var(--parchment-white);
}

.credit-reviewer {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(12px, 1.2vw, 15px);
    color: var(--muted-silver);
}

.credits-footer {
    margin-top: 32px;
}

.credits-tagline {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(13px, 1.4vw, 16px);
    color: var(--muted-silver);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.credits-domain {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: clamp(14px, 1.8vw, 22px);
    letter-spacing: 0.1em;
    color: var(--spotlight-gold);
    text-shadow: 0 0 12px rgba(255, 224, 102, 0.25);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .review-content {
        width: 90%;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .hud-rating {
        width: 90px;
        height: 90px;
    }

    .hud-score {
        font-size: 18px;
    }

    .botanical {
        width: 60px;
    }

    .credit-item {
        flex-direction: column;
        gap: 4px;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .review-content {
        width: 95%;
        gap: 24px;
    }

    .review-tags {
        gap: 8px;
    }

    .tag {
        font-size: 9px;
        padding: 4px 10px;
    }

    .botanical {
        display: none;
    }
}
