/* =============================================
   REVIEWS PAGE STYLES
   ============================================= */

/* ── HERO ── */
.rvp-hero {
    background: linear-gradient(135deg, #0f1922 0%, #1d2330 50%, #243047 100%);
    padding: 64px 0 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rvp-hero-decor {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
    pointer-events: none;
}

.rvp-decor-1 { width: 400px; height: 400px; background: #d4af37; top: -160px; left: -100px; }
.rvp-decor-2 { width: 300px; height: 300px; background: #4285F4; bottom: -120px; right: -80px; }
.rvp-decor-3 { width: 160px; height: 160px; background: #34A853; top: 30px; right: 20%; }

.rvp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.rvp-hero-title {
    font-family: var(--font-heading, 'DM Sans', sans-serif);
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.15;
}

@media (min-width: 768px) { .rvp-hero-title { font-size: 52px; } }

.rvp-hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.68);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.rvp-hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 16px 28px;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.rvp-score {
    font-size: 56px;
    font-weight: 800;
    color: #d4af37;
    line-height: 1;
}

.rvp-hero-stars           { display: flex; gap: 4px; margin-bottom: 4px; align-items: center; }
.rvp-hero-stars .rvp-star-gold { font-size: 20px; }

/* Partial star fill — 10 segments per star for 1-decimal ratings */
.rvp-partial-star {
    position: relative;
    display: inline-block;
    line-height: 1;
    font-size: 20px;
}

.rvp-partial-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
}

.rvp-score-label { font-size: 13px; color: rgba(255, 255, 255, 0.65); }

.rvp-star-gold { color: #f5c518; }
.rvp-star-dim  { color: rgba(255, 255, 255, 0.22); }

.rvp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.rvp-btn-write {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #1d2330;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.rvp-btn-write:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    color: #1d2330;
}

.rvp-btn-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
    transition: all 0.2s;
}

.rvp-btn-view:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* ── STATS STRIP ── */
.rvp-stats-strip {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.rvp-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 20px 0;
}

.rvp-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 32px;
}

.rvp-stat-icon  { font-size: 22px; color: #d4af37; }
.rvp-stat-value { font-size: 20px; font-weight: 800; color: #1d2330; line-height: 1.1; }
.rvp-stat-label { font-size: 12px; color: #6b7280; margin-top: 2px; }

.rvp-stat-divider {
    width: 1px;
    height: 44px;
    background: #e9ecef;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .rvp-stat-divider { display: none; }
    .rvp-stat         { padding: 10px 20px; }
    .rvp-stats-row    { gap: 0; justify-content: flex-start; }
}

/* ── BODY ── */
.rvp-body {
    background: #f4f5f7;
    padding: 48px 0 72px;
    min-height: 500px;
}

/* Section heading + distribution */
.rvp-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 36px;
}

.rvp-grid-title {
    font-family: var(--font-heading, 'DM Sans', sans-serif);
    font-size: 26px;
    font-weight: 700;
    color: #1d2330;
    margin: 0 0 4px;
}

.rvp-grid-sub { font-size: 13px; color: #6b7280; margin: 0; }

/* Star distribution bars */
.rvp-distribution { display: flex; flex-direction: column; gap: 6px; min-width: 200px; }

.rvp-dist-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.rvp-dist-label {
    width: 28px;
    text-align: right;
    color: #4b5563;
    font-weight: 600;
    white-space: nowrap;
}

.rvp-dist-bar-wrap {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 50px;
    overflow: hidden;
}

.rvp-dist-bar {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f5c518);
    border-radius: 50px;
    transition: width 0.6s ease;
}

.rvp-dist-count { width: 20px; font-size: 12px; color: #6b7280; text-align: right; }

/* ── 3-COLUMN GRID ── */
.rvp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) { .rvp-grid { grid-template-columns: repeat(2, 1fr); } }

@media (min-width: 992px) { .rvp-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── CARD ── */
.rvp-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #ebebeb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.rvp-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    transform: translateY(-3px);
}

/* Subtle top accent bar on hover */
.rvp-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f5c518, #d4af37);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.rvp-card:hover::before { opacity: 1; }

/* Quote decoration */
.rvp-card-quote-icon {
    position: absolute;
    top: 14px;
    right: 56px;
    font-size: 32px;
    color: #f5c518;
    opacity: 0.12;
    line-height: 1;
    pointer-events: none;
}

/* Card top row */
.rvp-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rvp-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    letter-spacing: 0;
}

.rvp-card-identity { flex: 1; min-width: 0; }

.rvp-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rvp-card-date  { font-size: 12px; color: #70757a; margin-top: 2px; }
.rvp-card-glogo { flex-shrink: 0; line-height: 0; }

/* Stars */
.rvp-card-stars                { display: flex; gap: 3px; }
.rvp-card-stars .rvp-star-gold { font-size: 15px; }
.rvp-card-stars .rvp-star-dim  { font-size: 15px; color: #dadce0; }

/* Review text */
.rvp-card-text {
    font-size: 14px;
    color: #3c4043;
    line-height: 1.8;
    margin: 0;
    flex: 1;
}

.rvp-card-text-empty { font-style: italic; color: #9ca3af; }

/* Card footer */
.rvp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}

.rvp-card-google-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: #5f6368;
    text-decoration: none;
    transition: color 0.15s;
}

.rvp-card-google-link:hover { color: #1a73e8; }

.rvp-share-btn {
    background: none;
    border: none;
    padding: 6px 8px;
    cursor: pointer;
    color: #9ca3af;
    font-size: 15px;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.rvp-share-btn:hover { background: #f1f3f4; color: #1a73e8; }

/* ── EMPTY STATE ── */
.rvp-empty { text-align: center; padding: 80px 20px; }

.rvp-empty-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fffbf0, #fef3c7);
    border: 2px solid #fde68a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #d4af37;
}

.rvp-empty h3 { font-size: 22px; font-weight: 700; color: #1d2330; margin-bottom: 8px; }
.rvp-empty p  { color: #6b7280; margin-bottom: 24px; }

/* ── CTA BANNER ── */
.rvp-cta-banner {
    background: linear-gradient(135deg, #1d2330 0%, #2a3b55 100%);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rvp-cta-decor-left,
.rvp-cta-decor-right {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
}

.rvp-cta-decor-left  { background: #d4af37; left: -80px; top: -80px; }
.rvp-cta-decor-right { background: #4285F4; right: -80px; bottom: -80px; }

.rvp-cta-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.rvp-cta-stars { display: flex; gap: 6px; color: #f5c518; font-size: 22px; margin-bottom: 4px; }

.rvp-cta-title {
    font-family: var(--font-heading, 'DM Sans', sans-serif);
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

@media (min-width: 768px) { .rvp-cta-title { font-size: 40px; } }

.rvp-cta-sub {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 8px;
    max-width: 440px;
    line-height: 1.6;
}

.rvp-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #1d2330;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

.rvp-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
    color: #1d2330;
}
