/* ==========================================================================
   foryou.reviews - Pop Art Review Platform
   Colors: #E63946, #F77F00, #FCBF49, #1B1B1B, #F5F0E8, #C1166B
   Fonts: Josefin Sans (700, 600), Jost (400, 500)
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    color: #1B1B1B;
    background: #F5F0E8;
    overflow-x: hidden;
    border-radius: 0;
}

/* No rounded corners anywhere */
* {
    border-radius: 0 !important;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

#top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #1B1B1B;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    z-index: 1000;
    transition: background 0s;
}

#nav-domain {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    color: #F5F0E8;
    text-transform: uppercase;
}

#hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

#hamburger .hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background: #F5F0E8;
    transition: background 200ms ease-out;
}

#hamburger:hover .hamburger-line {
    background: #C1166B;
}

/* ==========================================================================
   Room Sections (Exhibition Rooms)
   ========================================================================== */

.room {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 5vw 0 5vw;
    overflow: hidden;
}

.room[data-bg="light"] {
    background: #F5F0E8;
    color: #1B1B1B;
}

.room[data-bg="dark"] {
    background: #1B1B1B;
    color: #F5F0E8;
}

.room-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    align-items: center;
}

/* ==========================================================================
   Primary Content Panel (Layer 1)
   ========================================================================== */

.panel-primary {
    position: relative;
    background: #F5F0E8;
    box-shadow: 8px 8px 0 #1B1B1B;
    padding: 0;
    width: 65%;
    min-height: 380px;
}

[data-bg="dark"] .panel-primary {
    background: #1B1B1B;
    box-shadow: 8px 8px 0 #F5F0E8;
    border: 2px solid #F5F0E8;
}

[data-bg="light"] .panel-primary {
    border: 2px solid #1B1B1B;
}

.panel-content {
    padding: 48px 40px;
    opacity: 0;
    transition: opacity 300ms ease;
}

.panel-content.revealed {
    opacity: 1;
}

/* ==========================================================================
   Border Animate System
   ========================================================================== */

.border-segment {
    position: absolute;
    background: #FCBF49;
    z-index: 2;
}

[data-bg="light"] .border-segment {
    background: #1B1B1B;
}

.border-top {
    top: -4px;
    left: -4px;
    height: 4px;
    width: 0;
}

.border-right {
    top: -4px;
    right: -4px;
    width: 4px;
    height: 0;
}

.border-bottom {
    bottom: -4px;
    right: -4px;
    height: 4px;
    width: 0;
}

.border-left {
    bottom: -4px;
    left: -4px;
    width: 4px;
    height: 0;
}

/* Animated states */
.border-animate-target.animating .border-top {
    animation: draw-top 150ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.border-animate-target.animating .border-right {
    animation: draw-right 150ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 150ms forwards;
}

.border-animate-target.animating .border-bottom {
    animation: draw-bottom 150ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 300ms forwards;
}

.border-animate-target.animating .border-left {
    animation: draw-left 150ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 450ms forwards;
}

@keyframes draw-top {
    from { width: 0; }
    to { width: calc(100% + 8px); }
}

@keyframes draw-right {
    from { height: 0; }
    to { height: calc(100% + 8px); }
}

@keyframes draw-bottom {
    from { width: 0; right: -4px; }
    to { width: calc(100% + 8px); right: -4px; }
}

@keyframes draw-left {
    from { height: 0; bottom: -4px; }
    to { height: calc(100% + 8px); bottom: -4px; }
}

/* ==========================================================================
   Typography
   ========================================================================== */

.category-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
    padding: 4px 12px;
    background: #E63946;
    color: #F5F0E8;
}

[data-bg="dark"] .category-label {
    background: #C1166B;
    color: #F5F0E8;
}

.review-headline {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 7rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 0.95;
    margin-bottom: 24px;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.review-headline.clip-revealed {
    clip-path: inset(0 0% 0 0);
}

[data-bg="light"] .review-headline {
    color: #1B1B1B;
}

[data-bg="dark"] .review-headline {
    color: #F5F0E8;
}

.headline-rule {
    width: 120px;
    height: 6px;
    background: #E63946;
    margin-bottom: 24px;
}

.review-body {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.65;
    max-width: 65ch;
}

[data-bg="light"] .review-body {
    color: #1B1B1B;
}

[data-bg="dark"] .review-body {
    color: #F5F0E8;
}

/* ==========================================================================
   Accent Panel (Layer 2) - Rating
   ========================================================================== */

.panel-accent {
    position: relative;
    padding: 24px;
    box-shadow: 5px 5px 0 #1B1B1B;
    transition: box-shadow 200ms ease-out, transform 200ms ease-out;
    z-index: 3;
}

.accent-rating {
    background: #E63946;
    color: #F5F0E8;
    width: 220px;
    margin-left: -40px;
    margin-top: 20px;
    align-self: flex-start;
}

[data-bg="dark"] .accent-rating {
    background: #F77F00;
    box-shadow: 5px 5px 0 #F5F0E8;
}

.panel-accent:hover {
    box-shadow: 8px 8px 0 #1B1B1B;
    transform: translate(-3px, -3px);
}

[data-bg="dark"] .panel-accent:hover {
    box-shadow: 8px 8px 0 #F5F0E8;
}

/* Corner Brackets */
.corner-bracket {
    position: absolute;
    width: 24px;
    height: 24px;
}

.corner-bracket::before,
.corner-bracket::after {
    content: '';
    position: absolute;
    background: #F5F0E8;
}

.corner-tl {
    top: -8px;
    left: -8px;
}

.corner-tl::before {
    top: 0;
    left: 0;
    width: 24px;
    height: 4px;
}

.corner-tl::after {
    top: 0;
    left: 0;
    width: 4px;
    height: 24px;
}

.corner-br {
    bottom: -8px;
    right: -8px;
}

.corner-br::before {
    bottom: 0;
    right: 0;
    width: 24px;
    height: 4px;
}

.corner-br::after {
    bottom: 0;
    right: 0;
    width: 4px;
    height: 24px;
}

/* Rating Mountains */
.mountain-rating {
    width: 100%;
    height: 60px;
    display: block;
    margin-bottom: 12px;
}

.peak.filled {
    fill: #FCBF49;
    stroke: #1B1B1B;
    stroke-width: 2;
}

.peak.unfilled {
    fill: none;
    stroke: #1B1B1B;
    stroke-width: 2;
}

[data-bg="dark"] .peak.unfilled {
    stroke: #F5F0E8;
}

.rating-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #F5F0E8;
    display: block;
    text-align: center;
}

/* ==========================================================================
   Pull Quote Panel (Layer 2)
   ========================================================================== */

.panel-pullquote {
    position: relative;
    background: #F77F00;
    color: #F5F0E8;
    padding: 24px 24px 24px 32px;
    box-shadow: 5px 5px 0 #1B1B1B;
    border-left: 8px solid #FCBF49;
    width: 45%;
    margin-left: auto;
    margin-top: -30px;
    z-index: 4;
    transition: box-shadow 200ms ease-out, transform 200ms ease-out;
}

.panel-pullquote:hover {
    box-shadow: 8px 8px 0 #1B1B1B;
    transform: translate(-3px, -3px);
}

.pullquote-text {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: clamp(1.5rem, 3.5vw, 3rem);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

/* ==========================================================================
   Mountain Dividers
   ========================================================================== */

.mountain-divider {
    position: relative;
    height: 180px;
    width: 100%;
    margin-top: auto;
    overflow: hidden;
}

.mountain-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.mountain-peak {
    mix-blend-mode: multiply;
}

[data-bg="dark"] .mountain-peak {
    mix-blend-mode: screen;
}

/* ==========================================================================
   Ben-Day Dot Overlay
   ========================================================================== */

.ben-day-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

[data-bg="light"] .ben-day-overlay {
    background: radial-gradient(circle, #1B1B1B 4px, transparent 4px);
    background-size: 16px 16px;
    opacity: 0.08;
}

[data-bg="dark"] .ben-day-overlay {
    background: radial-gradient(circle, #F5F0E8 4px, transparent 4px);
    background-size: 16px 16px;
    opacity: 0.08;
}

/* ==========================================================================
   Background Mountain Accent
   ========================================================================== */

.bg-mountain-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40vw;
    height: 25vh;
    pointer-events: none;
    z-index: 0;
}

.bg-mountain-svg {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Editorial Panel
   ========================================================================== */

.panel-editorial {
    width: 80%;
    margin: 0 auto;
}

.panel-editorial .review-headline {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

/* ==========================================================================
   Decorative Diagonal Slashes
   ========================================================================== */

.category-label::after {
    content: '///';
    margin-left: 8px;
    color: #FCBF49;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   Responsive: Tablet (< 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    .panel-primary {
        width: 100%;
    }

    .accent-rating {
        margin-left: 0;
        margin-top: -20px;
    }

    .panel-pullquote {
        width: 70%;
        margin-top: -20px;
    }

    .panel-editorial {
        width: 100%;
    }
}

/* ==========================================================================
   Responsive: Mobile (< 768px)
   ========================================================================== */

@media (max-width: 768px) {
    #top-bar {
        height: 48px;
    }

    .room {
        padding: 80px 2vw 0 2vw;
    }

    .panel-primary {
        width: 100%;
        min-height: auto;
    }

    .panel-content {
        padding: 32px 24px;
    }

    .accent-rating {
        width: 180px;
    }

    .panel-pullquote {
        width: 90%;
    }

    .mountain-divider {
        height: 100px;
    }

    /* Faster border animation on mobile */
    .border-animate-target.animating .border-top {
        animation-duration: 100ms;
    }

    .border-animate-target.animating .border-right {
        animation-duration: 100ms;
        animation-delay: 100ms;
    }

    .border-animate-target.animating .border-bottom {
        animation-duration: 100ms;
        animation-delay: 200ms;
    }

    .border-animate-target.animating .border-left {
        animation-duration: 100ms;
        animation-delay: 300ms;
    }
}

/* ==========================================================================
   Responsive: Small Mobile (< 480px)
   ========================================================================== */

@media (max-width: 480px) {
    .accent-rating {
        width: 100%;
        margin-left: 0;
    }

    .mountain-rating {
        height: 40px;
    }

    .panel-pullquote {
        width: 100%;
        margin-top: -15px;
    }

    .review-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .panel-editorial .review-headline {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
}

/* ==========================================================================
   No Gradients, No Blur, No Rounded Corners
   Rules enforced globally
   ========================================================================== */
