/* =========================================
   recycle.reviews — Brutalist Editorial CSS
   ========================================= */

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

:root {
    --signal-orange: #E87040;
    --trust-blue: #3D6B8B;
    --concrete-white: #FAFAFA;
    --raw-black: #1A1A1A;
    --concrete-gray: #D0D0D0;
    --light-surface: #F0F0F0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.75;
    color: var(--raw-black);
    background-color: var(--concrete-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Selection --- */
::selection {
    background: var(--signal-orange);
    color: var(--concrete-white);
}

/* --- HERO (Raw Opening) --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: var(--concrete-white);
    padding: 0 clamp(32px, 8vw, 120px);
}

#hero-content {
    max-width: 900px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 40px;
}

#hero-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#site-title {
    font-family: 'Jost', 'Futura', sans-serif;
    font-weight: 700;
    font-size: clamp(48px, 8vw, 96px);
    line-height: 1.05;
    color: var(--raw-black);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

#site-tagline {
    font-family: 'Jost', 'Futura', sans-serif;
    font-weight: 400;
    font-size: clamp(18px, 2.5vw, 28px);
    color: var(--raw-black);
    margin-bottom: 32px;
    opacity: 0.7;
}

#orange-rule {
    height: 6px;
    background: var(--signal-orange);
    width: 0;
    transition: none;
}

#orange-rule.animate {
    width: 100%;
    transition: width 0.6s ease-out;
}

/* --- REVIEW STREAM --- */
#review-stream {
    max-width: 760px;
    margin: 0 auto;
    padding: 80px clamp(20px, 4vw, 40px);
}

/* --- Individual Review --- */
.review {
    border-top: 1px solid var(--raw-black);
    padding: 48px 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.review-header {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.review-meta {
    flex: 1;
}

.review-title {
    font-family: 'Jost', 'Futura', sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 3.5vw, 36px);
    line-height: 1.2;
    color: var(--raw-black);
    margin-bottom: 8px;
}

.review-rating {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 32px;
    margin-bottom: 4px;
}

.rating-value {
    color: var(--signal-orange);
    font-size: 40px;
}

.rating-max {
    color: var(--concrete-gray);
    font-size: 24px;
}

.review-date {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 14px;
    color: var(--trust-blue);
}

.review-body {
    margin-bottom: 24px;
}

.review-body p {
    margin-bottom: 16px;
}

.review-body p:last-child {
    margin-bottom: 0;
}

.review-body sup a {
    color: var(--signal-orange);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    transition: color 0.15s ease;
}

.review-body sup a:hover {
    text-decoration: underline;
    color: var(--trust-blue);
}

.review-verdict {
    font-family: 'Jost', 'Futura', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 1.5vw, 18px);
    padding: 16px 0;
    border-top: 1px solid var(--concrete-gray);
    margin-top: 24px;
}

.verdict-label {
    font-weight: 700;
    color: var(--trust-blue);
}

/* --- 3D Product Shapes --- */
.product-shape {
    width: 100px;
    height: 100px;
    perspective: 400px;
    flex-shrink: 0;
}

/* Cube */
.cube {
    width: 70px;
    height: 70px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(30deg);
    margin: 15px auto;
    animation: cubeFloat 6s ease-in-out infinite;
}

.cube-face {
    position: absolute;
    width: 70px;
    height: 70px;
    border: 2px solid var(--raw-black);
}

.cube-front  { background: var(--signal-orange); transform: translateZ(35px); opacity: 0.9; }
.cube-back   { background: var(--signal-orange); transform: rotateY(180deg) translateZ(35px); opacity: 0.7; }
.cube-right  { background: var(--signal-orange); transform: rotateY(90deg) translateZ(35px); opacity: 0.8; }
.cube-left   { background: var(--signal-orange); transform: rotateY(-90deg) translateZ(35px); opacity: 0.6; }
.cube-top    { background: var(--signal-orange); transform: rotateX(90deg) translateZ(35px); opacity: 0.95; }
.cube-bottom { background: var(--signal-orange); transform: rotateX(-90deg) translateZ(35px); opacity: 0.5; }

.cube-blue .cube-face {
    border-color: var(--raw-black);
}
.cube-blue .cube-front  { background: var(--trust-blue); }
.cube-blue .cube-back   { background: var(--trust-blue); }
.cube-blue .cube-right  { background: var(--trust-blue); }
.cube-blue .cube-left   { background: var(--trust-blue); }
.cube-blue .cube-top    { background: var(--trust-blue); }
.cube-blue .cube-bottom { background: var(--trust-blue); }

@keyframes cubeFloat {
    0%, 100% { transform: rotateX(-20deg) rotateY(30deg); }
    50% { transform: rotateX(-20deg) rotateY(40deg); }
}

/* Cylinder */
.cylinder {
    width: 60px;
    height: 80px;
    position: relative;
    margin: 10px auto;
    transform-style: preserve-3d;
    transform: rotateX(-15deg);
}

.cylinder-body {
    width: 60px;
    height: 80px;
    background: var(--trust-blue);
    border: 2px solid var(--raw-black);
    border-radius: 0;
    position: relative;
}

.cylinder-top {
    width: 60px;
    height: 18px;
    background: var(--trust-blue);
    border: 2px solid var(--raw-black);
    border-radius: 50%;
    position: absolute;
    top: -9px;
    left: 0;
    opacity: 0.9;
}

/* Orange cylinder variant */
.cylinder-orange .cylinder-body {
    background: var(--signal-orange);
}

.cylinder-orange .cylinder-top {
    background: var(--signal-orange);
}

/* Pyramid */
.pyramid {
    width: 80px;
    height: 80px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-10deg) rotateY(25deg);
    margin: 10px auto;
}

.pyramid-face {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 80px solid var(--signal-orange);
    opacity: 0.85;
}

.pyramid-front {
    transform: rotateX(15deg) translateZ(15px);
    border-bottom-color: var(--signal-orange);
}

.pyramid-right {
    transform: rotateY(90deg) rotateX(15deg) translateZ(15px);
    border-bottom-color: var(--trust-blue);
}

.pyramid-back {
    transform: rotateY(180deg) rotateX(15deg) translateZ(15px);
    border-bottom-color: var(--signal-orange);
    opacity: 0.6;
}

.pyramid-left {
    transform: rotateY(-90deg) rotateX(15deg) translateZ(15px);
    border-bottom-color: var(--trust-blue);
    opacity: 0.7;
}

/* Blue pyramid variant */
.pyramid-blue .pyramid-front {
    border-bottom-color: var(--trust-blue);
}

.pyramid-blue .pyramid-right {
    border-bottom-color: var(--signal-orange);
}

.pyramid-blue .pyramid-back {
    border-bottom-color: var(--trust-blue);
}

.pyramid-blue .pyramid-left {
    border-bottom-color: var(--signal-orange);
}

/* --- EVIDENCE SECTION --- */
#evidence {
    background: var(--light-surface);
    padding: 80px clamp(20px, 4vw, 40px);
}

.evidence-inner {
    max-width: 760px;
    margin: 0 auto;
}

.section-heading {
    font-family: 'Jost', 'Futura', sans-serif;
    font-weight: 700;
    font-size: clamp(32px, 5vw, 48px);
    color: var(--raw-black);
    margin-bottom: 16px;
}

.orange-divider {
    width: 120px;
    height: 6px;
    background: var(--signal-orange);
    margin-bottom: 48px;
}

#data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
}

#data-table th,
#data-table td {
    text-align: left;
    padding: 12px 16px;
    border: 2px solid var(--raw-black);
    transition: border-color 0.15s ease;
}

#data-table th {
    background: var(--raw-black);
    color: var(--concrete-white);
    font-family: 'Jost', 'Futura', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#data-table td {
    background: var(--concrete-white);
}

#data-table tbody tr:hover td {
    background: var(--light-surface);
}

/* Score column highlight */
#data-table td:last-child {
    font-weight: 400;
    color: var(--signal-orange);
}

/* --- REFERENCES SECTION --- */
#references {
    padding: 80px clamp(20px, 4vw, 40px);
    background: var(--concrete-white);
}

.references-inner {
    max-width: 760px;
    margin: 0 auto;
}

.reference-list {
    padding-left: 24px;
}

.reference-list li {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
    color: var(--raw-black);
    opacity: 0.8;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.reference-list li:hover {
    opacity: 1;
}

.reference-list li em {
    font-style: italic;
    font-weight: 600;
}

/* Reference highlight animation */
.reference-list li.highlight {
    opacity: 1;
    background-color: var(--signal-orange);
    color: var(--concrete-white);
}

/* --- CONCRETE FOOTER --- */
#site-footer {
    background: var(--concrete-gray);
    padding: 60px clamp(20px, 4vw, 40px);
}

.footer-inner {
    max-width: 760px;
    margin: 0 auto;
}

.footer-orange-line {
    width: 80px;
    height: 6px;
    background: var(--signal-orange);
    margin-bottom: 24px;
}

.footer-text {
    font-family: 'Jost', 'Futura', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--raw-black);
    margin-bottom: 8px;
}

.footer-sub {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 14px;
    color: var(--raw-black);
    opacity: 0.6;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .review-header {
        flex-direction: column;
        gap: 16px;
    }

    .product-shape {
        width: 80px;
        height: 80px;
    }

    .cube {
        width: 50px;
        height: 50px;
    }

    .cube-face {
        width: 50px;
        height: 50px;
    }

    .cube-front  { transform: translateZ(25px); }
    .cube-back   { transform: rotateY(180deg) translateZ(25px); }
    .cube-right  { transform: rotateY(90deg) translateZ(25px); }
    .cube-left   { transform: rotateY(-90deg) translateZ(25px); }
    .cube-top    { transform: rotateX(90deg) translateZ(25px); }
    .cube-bottom { transform: rotateX(-90deg) translateZ(25px); }

    #data-table {
        font-size: 11px;
    }

    #data-table th,
    #data-table td {
        padding: 8px 6px;
    }

    .rating-value {
        font-size: 32px;
    }

    .rating-max {
        font-size: 20px;
    }
}

@media (max-width: 400px) {
    #hero {
        padding: 0 24px;
    }

    #hero-content {
        padding: 24px;
    }

    #site-title {
        font-size: clamp(36px, 10vw, 56px);
    }

    .review {
        padding: 32px 0;
    }

    #data-table th,
    #data-table td {
        padding: 6px 4px;
        font-size: 10px;
    }
}
