/*
Theme Name: ReviewHub
Theme URI: https://reviewhub.demo.sbarron.com
Description: Yelp for Self-Help — A review and rating platform for high-ticket seminars, retreats, and coaching programs.
Author: Pneuma
Version: 1.0.0
Text Domain: reviewhub
*/

:root {
    --indigo-deep: #1e1b4b;
    --indigo-900: #312e81;
    --indigo-800: #3730a3;
    --indigo-700: #4338ca;
    --indigo-600: #4f46e5;
    --indigo-500: #6366f1;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --amber-300: #fcd34d;
    --cream: #fef3c7;
    --cream-light: #fffbeb;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0; padding: 0;
    font-family: 'Inter', sans-serif;
    color: #e2e8f0;
    background: var(--slate-900);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.15;
}

/* STAR RATINGS */
.rh-stars { display: inline-flex; gap: 3px; align-items: center; }
.rh-stars .star { width: 22px; height: 22px; position: relative; display: inline-block; }
.rh-stars .star svg { width: 100%; height: 100%; filter: drop-shadow(0 1px 2px rgba(245,158,11,0.3)); transition: transform 0.2s ease; }
.rh-stars .star.filled svg { fill: var(--amber-500); stroke: var(--amber-400); stroke-width: 0.5; }
.rh-stars .star.half svg { fill: var(--amber-500); stroke: var(--amber-400); stroke-width: 0.5; clip-path: inset(0 50% 0 0); }
.rh-stars .star.empty svg { fill: #374151; stroke: #4b5563; stroke-width: 0.5; }
.rh-stars-lg .star { width: 28px; height: 28px; }
.rh-stars-xl .star { width: 36px; height: 36px; }

/* Interactive star input */
.rh-star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rh-star-input input[type="radio"] { display: none; }
.rh-star-input label { cursor: pointer; width: 36px; height: 36px; transition: transform 0.15s ease; }
.rh-star-input label svg { width: 100%; height: 100%; fill: #374151; stroke: #4b5563; stroke-width: 0.5; transition: fill 0.15s ease; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3)); }
.rh-star-input label:hover svg,
.rh-star-input label:hover ~ label svg,
.rh-star-input input[type="radio"]:checked ~ label svg { fill: var(--amber-500); stroke: var(--amber-400); }
.rh-star-input label:hover { transform: scale(1.2); }

/* HERO */
.rh-hero {
    position: relative; min-height: 85vh;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    background: linear-gradient(135deg, var(--indigo-deep) 0%, #0c0a2a 40%, #1a0f3a 70%, var(--slate-900) 100%);
}
.rh-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 800px 600px at 20% 50%, rgba(79,70,229,0.15), transparent),
                radial-gradient(ellipse 600px 400px at 80% 30%, rgba(245,158,11,0.08), transparent),
                radial-gradient(ellipse 400px 300px at 50% 80%, rgba(99,102,241,0.1), transparent);
    pointer-events: none;
}
.rh-hero::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.1), transparent),
        radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.12), transparent),
        radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.08), transparent),
        radial-gradient(1px 1px at 90% 70%, rgba(255,255,255,0.1), transparent),
        radial-gradient(1.5px 1.5px at 15% 80%, rgba(245,158,11,0.2), transparent),
        radial-gradient(1.5px 1.5px at 85% 15%, rgba(99,102,241,0.2), transparent);
    pointer-events: none; animation: starTwinkle 8s ease-in-out infinite alternate;
}
@keyframes starTwinkle { 0% { opacity: 0.6; } 100% { opacity: 1; } }
.rh-hero-content { position: relative; z-index: 2; text-align: center; max-width: 860px; padding: 2rem; }

/* SEARCH BAR */
.rh-search-bar { position: relative; max-width: 640px; margin: 2.5rem auto 0; }
.rh-search-bar input {
    width: 100%; padding: 1.1rem 1.5rem 1.1rem 3.5rem; border-radius: 9999px;
    border: 2px solid rgba(99,102,241,0.3); background: rgba(15,23,42,0.7);
    backdrop-filter: blur(12px); color: #e2e8f0; font-size: 1.05rem;
    font-family: 'Inter', sans-serif; outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.rh-search-bar input::placeholder { color: #94a3b8; }
.rh-search-bar input:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245,158,11,0.15), 0 8px 32px rgba(0,0,0,0.3);
}
.rh-search-bar .search-icon { position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }

/* CARDS */
.rh-card {
    background: linear-gradient(145deg, rgba(30,27,75,0.6), rgba(15,23,42,0.8));
    border: 1px solid rgba(99,102,241,0.15); border-radius: 16px; overflow: hidden;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.rh-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 8px 24px rgba(99,102,241,0.1);
    border-color: rgba(99,102,241,0.3);
}
.rh-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--indigo-600), var(--amber-500), var(--indigo-600));
    opacity: 0; transition: opacity 0.35s ease;
}
.rh-card:hover::before { opacity: 1; }
.rh-card-image { position: relative; height: 220px; overflow: hidden; }
.rh-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.rh-card:hover .rh-card-image img { transform: scale(1.05); }
.rh-card-image::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(to top, rgba(15,23,42,0.9), transparent); pointer-events: none;
}
.rh-card-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    padding: 0.3rem 0.75rem; border-radius: 9999px; font-size: 0.75rem;
    font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
    background: rgba(30,27,75,0.85); backdrop-filter: blur(8px);
    border: 1px solid rgba(99,102,241,0.3); color: var(--amber-400);
}
.rh-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.rh-card-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: #f1f5f9; margin: 0 0 0.5rem; line-height: 1.3; }
.rh-card-title a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.rh-card-title a:hover { color: var(--amber-400); }
.rh-card-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.85rem; color: #94a3b8; margin-bottom: 0.75rem; flex-wrap: wrap; }
.rh-card-meta svg { width: 14px; height: 14px; flex-shrink: 0; }
.rh-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.rh-card-excerpt { font-size: 0.9rem; color: #94a3b8; line-height: 1.6; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rh-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 0.75rem; border-top: 1px solid rgba(99,102,241,0.1); }
.rh-card-price { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--amber-400); }
.rh-card-rating { display: flex; align-items: center; gap: 6px; }
.rh-card-rating .rating-number { font-weight: 700; font-size: 0.95rem; color: var(--amber-400); }
.rh-card-rating .review-count { font-size: 0.8rem; color: #64748b; }

/* REVIEW CARDS */
.rh-review-card {
    background: linear-gradient(145deg, rgba(30,27,75,0.4), rgba(15,23,42,0.6));
    border: 1px solid rgba(99,102,241,0.12); border-radius: 12px; padding: 1.5rem;
    position: relative; transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.rh-review-card:hover { border-color: rgba(99,102,241,0.25); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.rh-review-card .quote-mark { position: absolute; top: 12px; right: 16px; font-family: 'Playfair Display', serif; font-size: 4rem; line-height: 1; color: rgba(99,102,241,0.1); pointer-events: none; }
.rh-review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; gap: 1rem; }
.rh-review-author { font-weight: 600; color: #e2e8f0; font-size: 0.95rem; }
.rh-review-date { font-size: 0.8rem; color: #64748b; }
.rh-review-text { font-size: 0.95rem; line-height: 1.7; color: #cbd5e1; margin: 0.75rem 0; }
.rh-review-program-link { font-size: 0.85rem; color: var(--indigo-500); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: color 0.2s ease; }
.rh-review-program-link:hover { color: var(--amber-400); }

/* CATEGORY CARDS */
.rh-category-card {
    position: relative; border-radius: 16px; overflow: hidden;
    background: linear-gradient(145deg, var(--indigo-900), var(--indigo-deep));
    border: 1px solid rgba(99,102,241,0.2); padding: 2rem 1.5rem;
    text-align: center; cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.rh-category-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.3); border-color: rgba(245,158,11,0.3); }
.rh-category-card .cat-icon {
    width: 56px; height: 56px; margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px; background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.2); color: var(--amber-400);
    transition: background 0.3s ease, transform 0.3s ease;
}
.rh-category-card:hover .cat-icon { background: rgba(245,158,11,0.2); transform: scale(1.1); }
.rh-category-card .cat-icon svg { width: 28px; height: 28px; }
.rh-category-card .cat-name { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; color: #f1f5f9; margin-bottom: 0.25rem; }
.rh-category-card .cat-count { font-size: 0.85rem; color: #94a3b8; }
.rh-category-card a { position: absolute; inset: 0; z-index: 2; }

/* SECTIONS */
.rh-section { padding: 5rem 0; position: relative; }
.rh-section-dark { background: var(--slate-900); }
.rh-section-darker { background: linear-gradient(180deg, rgba(15,23,42,1), rgba(30,27,75,0.3), rgba(15,23,42,1)); }
.rh-section-title { font-size: 2.25rem; color: #f1f5f9; margin-bottom: 0.5rem; }
.rh-section-subtitle { font-size: 1.05rem; color: #94a3b8; max-width: 600px; }
.rh-section-divider { width: 60px; height: 3px; background: linear-gradient(90deg, var(--amber-500), var(--indigo-500)); border-radius: 2px; margin: 1rem 0 0; }

/* SINGLE PROGRAM */
.rh-program-hero { position: relative; min-height: 50vh; display: flex; align-items: flex-end; overflow: hidden; }
.rh-program-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.35); }
.rh-program-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--slate-900) 0%, rgba(15,23,42,0.6) 50%, rgba(30,27,75,0.4) 100%); }
.rh-program-hero-content { position: relative; z-index: 2; width: 100%; padding: 3rem 0; }
.rh-rating-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); border-radius: 9999px; padding: 0.4rem 1rem; font-weight: 600; color: var(--amber-400); font-size: 0.95rem; }

/* FORMS */
.rh-form-group { margin-bottom: 1.5rem; }
.rh-form-label { display: block; font-weight: 600; color: #e2e8f0; margin-bottom: 0.5rem; font-size: 0.95rem; }
.rh-form-input, .rh-form-textarea, .rh-form-select {
    width: 100%; padding: 0.85rem 1rem; border-radius: 10px;
    border: 1.5px solid rgba(99,102,241,0.2); background: rgba(15,23,42,0.6);
    color: #e2e8f0; font-family: 'Inter', sans-serif; font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease; outline: none;
}
.rh-form-input:focus, .rh-form-textarea:focus, .rh-form-select:focus { border-color: var(--amber-500); box-shadow: 0 0 0 3px rgba(245,158,11,0.1); }
.rh-form-textarea { min-height: 150px; resize: vertical; }
.rh-form-select option { background: var(--slate-900); color: #e2e8f0; }

/* BUTTONS */
.rh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0.8rem 1.75rem; border-radius: 10px; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.3s ease; border: none; text-decoration: none; line-height: 1; }
.rh-btn-primary { background: linear-gradient(135deg, var(--amber-500), #d97706); color: var(--slate-900); box-shadow: 0 4px 16px rgba(245,158,11,0.3); }
.rh-btn-primary:hover { background: linear-gradient(135deg, var(--amber-400), var(--amber-500)); box-shadow: 0 8px 24px rgba(245,158,11,0.4); transform: translateY(-2px); color: var(--slate-900); }
.rh-btn-secondary { background: rgba(99,102,241,0.15); color: #c7d2fe; border: 1.5px solid rgba(99,102,241,0.3); }
.rh-btn-secondary:hover { background: rgba(99,102,241,0.25); border-color: rgba(99,102,241,0.5); color: #e0e7ff; }
.rh-btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; border-radius: 12px; }

/* FILTERS */
.rh-filter-section { margin-bottom: 1.5rem; }
.rh-filter-title { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: #e2e8f0; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(99,102,241,0.15); }
.rh-filter-option { display: flex; align-items: center; gap: 8px; padding: 0.4rem 0; cursor: pointer; color: #94a3b8; font-size: 0.9rem; transition: color 0.2s ease; }
.rh-filter-option:hover { color: #e2e8f0; }
.rh-filter-option input[type="checkbox"], .rh-filter-option input[type="radio"] { accent-color: var(--amber-500); width: 16px; height: 16px; }

/* NAVIGATION */
.rh-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1rem 0; transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease; }
.rh-nav.scrolled { background: rgba(15,23,42,0.95); backdrop-filter: blur(16px); padding: 0.65rem 0; box-shadow: 0 4px 24px rgba(0,0,0,0.3); border-bottom: 1px solid rgba(99,102,241,0.1); }
.rh-nav-logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: #f1f5f9; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.rh-nav-logo .logo-accent { color: var(--amber-400); }
.rh-nav-link { color: #cbd5e1; text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 0.5rem 0; position: relative; transition: color 0.2s ease; }
.rh-nav-link:hover, .rh-nav-link.active { color: var(--amber-400); }
.rh-nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--amber-500); border-radius: 1px; transform: scaleX(0); transition: transform 0.3s ease; }
.rh-nav-link:hover::after, .rh-nav-link.active::after { transform: scaleX(1); }

/* FOOTER */
.rh-footer { background: linear-gradient(180deg, var(--slate-900), #0a0820); border-top: 1px solid rgba(99,102,241,0.1); padding: 4rem 0 2rem; }
.rh-footer a { color: #94a3b8; text-decoration: none; transition: color 0.2s ease; }
.rh-footer a:hover { color: var(--amber-400); }

/* PAGINATION */
.rh-pagination { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 3rem; }
.rh-pagination a, .rh-pagination span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: all 0.2s ease; }
.rh-pagination a { background: rgba(99,102,241,0.1); color: #94a3b8; border: 1px solid rgba(99,102,241,0.15); }
.rh-pagination a:hover { background: rgba(99,102,241,0.2); color: #e2e8f0; }
.rh-pagination .current { background: var(--amber-500); color: var(--slate-900); border: 1px solid var(--amber-500); }

/* ANIMATIONS */
.rh-reveal { visibility: hidden; }
body.gsap-ready .rh-reveal { visibility: hidden; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .rh-hero { min-height: 70vh; }
    .rh-section { padding: 3rem 0; }
    .rh-section-title { font-size: 1.75rem; }
    .rh-card-image { height: 180px; }
    .rh-program-hero { min-height: 40vh; }
}

/* MISC */
.rh-gradient-text { background: linear-gradient(135deg, #e0e7ff, var(--amber-400)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.rh-divider { border: none; height: 1px; background: linear-gradient(90deg, transparent, rgba(99,102,241,0.2), transparent); margin: 2rem 0; }
.rh-tag { display: inline-block; padding: 0.25rem 0.65rem; border-radius: 6px; font-size: 0.75rem; font-weight: 600; background: rgba(99,102,241,0.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.2); }
.rh-toast { position: fixed; top: 100px; right: 24px; z-index: 200; padding: 1rem 1.5rem; border-radius: 12px; font-weight: 600; font-size: 0.95rem; box-shadow: 0 8px 32px rgba(0,0,0,0.3); transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1); }
.rh-toast.show { transform: translateX(0); }
.rh-toast-success { background: rgba(16,185,129,0.9); color: white; border: 1px solid rgba(52,211,153,0.5); }
.rh-toast-error { background: rgba(239,68,68,0.9); color: white; border: 1px solid rgba(248,113,113,0.5); }
