/* ============================================================
   Computer Security US — Reviews Page
   /css/reviews.css
   ============================================================ */

/* ── Layout container (scoped — doesn't clash with site .container) ── */
.rv-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ── Hero ────────────────────────────────────────────────────── */
.reviews-hero {
    background: #1a1a2e;
    color: #fff;
    padding: 3rem 0 2.5rem;
    text-align: center;
}

.reviews-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    color: #fff;
}

.reviews-subtitle {
    color: rgba(255,255,255,0.72);
    font-size: 1rem;
    margin: 0 0 2rem;
}

.no-reviews-yet {
    color: rgba(255,255,255,0.6);
    font-style: italic;
    margin: 0;
}

/* ── Aggregate rating summary ────────────────────────────────── */
.rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.rating-score-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.rating-big {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.rating-count {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.1rem;
}

/* ── Stars ───────────────────────────────────────────────────── */
.stars {
    display: inline-flex;
    gap: 2px;
}

.star {
    font-size: 1.25rem;
    line-height: 1;
}

.star.filled { color: #f5a623; }
.star.empty  { color: rgba(255,255,255,0.25); }

/* Inside cards, empty stars use a lighter grey */
.review-card .star.empty { color: #d1d5db; }

/* ── Rating breakdown bars ───────────────────────────────────── */
.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 220px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
}

.bar-label {
    color: rgba(255,255,255,0.75);
    width: 38px;
    text-align: right;
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.18);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #f5a623;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.bar-count {
    color: rgba(255,255,255,0.6);
    width: 24px;
    text-align: right;
    flex-shrink: 0;
}

/* ── Reviews list section ────────────────────────────────────── */
.reviews-list-section {
    background: #f5f7fa;
    padding: 2.5rem 0 4rem;
}

.reviews-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ── Review card ─────────────────────────────────────────────── */
.review-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s ease, opacity 0.35s ease, transform 0.35s ease;
}

.review-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Entrance animation for lazy-loaded cards */
.review-card--new {
    opacity: 0;
    transform: translateY(10px);
}

/* ── Card header ─────────────────────────────────────────────── */
.review-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
}

.review-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

/* ── Review body ─────────────────────────────────────────────── */
.review-text {
    font-size: 0.97rem;
    line-height: 1.7;
    color: #2d3748;
    margin: 0 0 1rem;
}

/* ── Byline ──────────────────────────────────────────────────── */
.review-byline {
    font-size: 0.83rem;
    color: #718096;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.1rem;
}

.reviewer-name { font-weight: 600; color: #2d3748; }
.reviewer-meta { color: #718096; }
.reviewer-date { color: #718096; }
.byline-sep    { color: #cbd5e0; margin: 0 0.1rem; }

/* ── Lazy-load spinner ───────────────────────────────────────── */
#load-sentinel {
    height: 1px;
    margin-top: 1rem;
}

.load-spinner {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 1.5rem 0;
}

.load-spinner.active { display: flex; }

.load-spinner span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #CC0000;
    animation: rv-bounce 0.9s ease-in-out infinite;
}

.load-spinner span:nth-child(2) { animation-delay: 0.15s; }
.load-spinner span:nth-child(3) { animation-delay: 0.30s; }

@keyframes rv-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40%            { transform: scale(1);   opacity: 1;   }
}

/* ── End messages ────────────────────────────────────────────── */
.all-loaded-msg,
.no-reviews-msg {
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
    padding: 2rem 0 0;
    font-style: italic;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
    .reviews-hero h1   { font-size: 1.6rem; }
    .rating-big        { font-size: 2.8rem; }
    .rating-summary    { gap: 1.5rem; }
    .rating-bars       { min-width: 180px; }
    .review-card       { padding: 1.25rem 1rem; }
}
