/*
=========================================================
REVIEWS STYLESHEET - Joshua Dalton Media
=========================================================

Purpose
-------
Page-specific styles for /reviews/. Handles the hero header,
trust badge, filter tabs, review card grid (compact glass
cards with masked text and read-more lightbox), and
responsive breakpoint rules.

What belongs in this file
-------------------------
- Reviews page hero and trust badge styling
- Reviews filter tab buttons
- Review card shell, body, masked text window, toggle button, footer
- Featured card variant (subtle accent border)
- Grid layout
- Scroll-reveal animation states
- Reviews-specific responsive breakpoint rules

Asset path usage
----------------
This stylesheet is intended to be referenced from pages with:

<link rel="stylesheet" href="/assets/css/reviews.css">

Relationship to page files
--------------------------
Page files should:
1. load this stylesheet after global.css and lightbox.css
2. use it only on the /reviews/ page
3. keep shared styling in global.css or other shared stylesheets

Maintenance rule
----------------
If a selector would also be useful on other pages, it should
move to a shared stylesheet instead. Keep this file focused
on reviews-page-only presentation and layout.
*/

/* ================= HERO ================= */
.rv-hero{padding-top:clamp(24px,5vw,48px);padding-bottom:clamp(16px,4vw,32px);text-align:center}
.rv-hero__inner{display:flex;flex-direction:column;align-items:center;gap:14px;max-width:640px;margin:0 auto}
.rv-hero__title{margin:0;font-size:clamp(1.4rem,5.5vw,2.8rem);line-height:1.1;letter-spacing:-.02em;font-weight:800}
.rv-hero__lead{margin:0;font-size:clamp(.88rem,2.8vw,1.08rem);line-height:1.55;color:var(--muted);max-width:48ch}

/* ================= TRUST BADGE ================= */
.rv-trust{display:inline-flex;align-items:center;gap:12px;padding:12px 20px 12px 16px;margin-top:4px;border-radius:999px;background:linear-gradient(135deg,rgba(255,77,77,.14),rgba(255,77,77,.05));border:1.5px solid rgba(255,77,77,.28);box-shadow:0 8px 28px rgba(0,0,0,.22);text-decoration:none;color:var(--ink);transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.rv-trust:hover{border-color:rgba(255,77,77,.5);box-shadow:0 12px 36px rgba(255,77,77,.14);transform:translateY(-1px);text-decoration:none}
.rv-trust__stars{font-size:1.2rem;line-height:1;color:var(--accent);letter-spacing:2px}
.rv-trust__copy{display:flex;flex-direction:column;gap:1px;text-align:left}
.rv-trust__score{font-size:1.1rem;line-height:1.1;font-weight:800;color:var(--ink)}
.rv-trust__source{font-size:.68rem;line-height:1.2;color:var(--muted);font-weight:600}
.rv-trust__arrow{font-size:.88rem;color:var(--muted);transition:transform .2s ease}
.rv-trust:hover .rv-trust__arrow{transform:translate(2px,-2px)}

/* ================= SECTION ================= */
.rv-section{padding-top:0;padding-bottom:var(--section-bottom)}

/* ================= FILTER TABS ================= */
.rv-filters{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-bottom:clamp(24px,4vw,40px)}
.rv-filter{display:inline-flex;align-items:center;min-height:36px;padding:8px 18px;border-radius:999px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04);color:var(--muted);font:inherit;font-size:.78rem;font-weight:700;cursor:pointer;transition:all .18s ease}
.rv-filter:hover{border-color:rgba(255,255,255,.2);color:var(--ink)}
.rv-filter.is-active{background:var(--accent);border-color:var(--accent);color:#fff}

/* ================= CARD ================= */
.rv-card{position:relative;display:flex;flex-direction:column;border-radius:var(--radius);background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));border:1px solid rgba(255,255,255,.12);box-shadow:0 8px 32px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.07);backdrop-filter:blur(10px) saturate(120%);-webkit-backdrop-filter:blur(10px) saturate(120%);overflow:hidden;transition:border-color .2s ease,box-shadow .2s ease}
.rv-card:hover{border-color:rgba(255,255,255,.2);box-shadow:0 12px 40px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.1)}

/* ================= CATEGORY TAG ================= */
.rv-card__tag{position:absolute;top:14px;right:14px;display:inline-flex;align-items:center;min-height:24px;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);font-size:.62rem;line-height:1;color:var(--muted);font-weight:700;letter-spacing:.03em;z-index:1}

/* ================= CARD BODY ================= */
.rv-card__body{position:relative;padding:clamp(16px,3vw,20px) clamp(16px,3vw,20px) 8px;flex:1}
.rv-card__quote-mark{position:absolute;top:8px;left:14px;font-size:3.5rem;line-height:1;font-weight:800;color:rgba(255,77,77,.1);pointer-events:none;font-family:Georgia,'Times New Roman',serif}

/* ================= BLOCKQUOTE + TEXT MASK ================= */
.rv-card__text{margin:clamp(28px,4vw,36px) 0 0;padding:0;border:0;font-style:normal;max-height:4.95em;overflow:hidden;-webkit-mask-image:linear-gradient(to bottom,black 45%,transparent 100%);mask-image:linear-gradient(to bottom,black 45%,transparent 100%)}
.rv-card__text p{margin:0 0 10px;font-size:.84rem;line-height:1.6;color:rgba(239,239,239,.88)}
.rv-card__text p:last-child{margin-bottom:0}

/* ================= READ MORE BUTTON ================= */
.rv-card__toggle{appearance:none;background:none;border:0;padding:8px clamp(16px,3vw,20px) 10px;font:inherit;font-size:.82rem;font-weight:700;color:var(--accent);cursor:pointer;text-align:left;transition:opacity .2s ease}
.rv-card__toggle:hover{opacity:.8}

/* ================= CARD FOOTER ================= */
.rv-card__foot{display:flex;align-items:center;gap:12px;padding:12px clamp(16px,3vw,20px);border-top:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.02);margin-top:auto}
.rv-card__stars{font-size:.88rem;line-height:1;color:var(--accent);letter-spacing:1px;flex-shrink:0}
.rv-card__cite{display:flex;flex-direction:column;gap:2px;font-style:normal;min-width:0}
.rv-card__name{font-size:.82rem;line-height:1.25;font-weight:800;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rv-card__meta{font-size:.68rem;line-height:1.3;color:var(--muted);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ================= FEATURED CARD ================= */
.rv-card--featured{border-color:rgba(255,77,77,.22)}
.rv-card--featured:hover{border-color:rgba(255,77,77,.4);box-shadow:0 12px 40px rgba(255,77,77,.1),inset 0 1px 0 rgba(255,255,255,.1)}

/* ================= GRID ================= */
.rv-grid{display:grid;grid-template-columns:1fr;gap:14px}

/* ================= FILTER VISIBILITY ================= */
.rv-card.is-hidden{display:none !important}

/* ================= SCROLL REVEAL ================= */
.rv-reveal--pending{opacity:0;transform:translateY(24px);transition:opacity .5s ease,transform .5s ease}
.rv-reveal--pending.is-visible{opacity:1;transform:translateY(0)}

/* ================= RESPONSIVE BREAKPOINTS ================= */

@media(min-width:360px){
	/* ================= GRID ================= */
	.rv-grid{gap:16px}
}

@media(min-width:700px){
	/* ================= GRID ================= */
	.rv-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
	/* ================= TRUST BADGE ================= */
	.rv-trust__stars{font-size:1.4rem}
	.rv-trust__score{font-size:1.25rem}
	.rv-trust__source{font-size:.74rem}
}

@media(min-width:1024px){
	/* ================= GRID ================= */
	.rv-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
}

@media(prefers-reduced-motion:reduce){
	/* ================= SCROLL REVEAL ================= */
	.rv-reveal--pending{opacity:1;transform:none;transition:none}
	/* ================= CARD ================= */
	.rv-card{transition:none}
	/* ================= TRUST BADGE ================= */
	.rv-trust{transition:none}
}
