/* ============================================
   recycle.reviews — Styles
   Earth-tone palette, ma-negative-space layout,
   particle-effects, card-flip reveals
   ============================================ */

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

/* ---------- Custom Properties ---------- */
:root {
    --warm-clay: #E8DCC8;
    --dark-earth: #3A2E22;
    --rich-soil: #5C4A3A;
    --terracotta: #C4663A;
    --olive: #6B7A4E;
    --soft-sand: #F5EFE0;
}

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--warm-clay);
    color: var(--rich-soil);
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ---------- Particles ---------- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0.6;
    animation: drift 12s linear infinite;
}

.particle.terracotta {
    background-color: var(--terracotta);
}

.particle.olive {
    background-color: var(--olive);
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(30px, -40px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translate(-20px, -80px) scale(0.9);
        opacity: 0.5;
    }
    75% {
        transform: translate(40px, -120px) scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: translate(0px, -160px) scale(1);
        opacity: 0.6;
    }
}

/* ---------- Site Header ---------- */
.site-header {
    text-align: center;
    padding: 12vh 2rem 6vh;
    position: relative;
    z-index: 1;
}

.site-title {
    font-family: 'Work Sans', sans-serif;
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 800;
    color: var(--dark-earth);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.site-tagline {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    color: var(--rich-soil);
    margin-top: 1rem;
    opacity: 0.8;
}

/* ---------- Reviews Clearing (Main) ---------- */
.reviews-clearing {
    max-width: 600px;
    width: 45%;
    min-width: 320px;
    margin: 0 auto;
    padding: 4vh 0 10vh;
    position: relative;
    z-index: 1;
}

/* ---------- Review Card ---------- */
.review-card {
    perspective: 800px;
    margin: 10vh auto;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    min-height: 280px;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.review-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    backface-visibility: hidden;
    background-color: var(--soft-sand);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 2px 20px rgba(58, 46, 34, 0.06);
}

.card-back {
    transform: rotateY(180deg);
}

/* ---------- Lens Flare ---------- */
.lens-flare {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(196, 102, 58, 0.2), transparent);
    border-radius: 50%;
    pointer-events: none;
    animation: flare-pulse 4s ease-in-out infinite;
}

@keyframes flare-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

/* ---------- Card Front ---------- */
.review-rating {
    display: inline-block;
    font-family: 'Work Sans', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--soft-sand);
    background-color: var(--terracotta);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.review-title {
    font-family: 'Work Sans', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--dark-earth);
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.review-summary {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: var(--rich-soil);
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.flip-hint {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    color: var(--olive);
    border-bottom: 1px dashed var(--olive);
    padding-bottom: 2px;
}

/* ---------- Card Back ---------- */
.review-back-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark-earth);
    margin-bottom: 1rem;
}

.review-detail {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--rich-soil);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(92, 74, 58, 0.15);
}

.review-author {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    color: var(--olive);
    font-weight: 700;
}

.review-date {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    color: var(--rich-soil);
    opacity: 0.6;
}

/* ---------- Featured Card ---------- */
.review-card.featured .card-front {
    border-left: 4px solid var(--terracotta);
    overflow: hidden;
}

/* ---------- Footer ---------- */
.site-footer {
    text-align: center;
    padding: 6vh 2rem 4vh;
    position: relative;
    z-index: 1;
}

.footer-text {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    color: var(--rich-soil);
    opacity: 0.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .reviews-clearing {
        width: 90%;
        min-width: 0;
    }

    .review-card {
        margin: 6vh auto;
    }

    .card-front,
    .card-back {
        padding: 2rem 1.5rem;
    }

    .site-header {
        padding: 8vh 1.5rem 4vh;
    }
}
