/**
 * Reviews Page — The Way Barbershop
 * Styles specific to page-reviews.php sections
 * Uses global design tokens from variables.css
 */


/* ═══════════════════════════════════════════════════════════════════════════
   PAGE HERO (duplicated from about.css for independent page loading)
   ═══════════════════════════════════════════════════════════════════════════ */

.page-hero {
    position: relative;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 var(--space-lg);
    overflow: hidden;
    background: var(--color-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 15, 15, 0.6),
        rgba(15, 15, 15, 0.8),
        var(--color-bg)
    );
    z-index: 1;
}

.page-hero__content {
    position: relative;
    z-index: 2;
}

.page-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: 0.02em;
    margin-bottom: var(--space-md);
}

.page-hero__subtitle {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 300;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-hero__breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.page-hero__breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.page-hero__breadcrumb a:hover {
    color: var(--color-accent);
}

.page-hero__breadcrumb-sep {
    color: var(--color-accent);
}


/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 2: STATS BAR
   ═══════════════════════════════════════════════════════════════════════════ */

.reviews-stats {
    background: var(--color-bg);
    padding: var(--space-2xl) 0;
}

.reviews-stats__bar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-3xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
}

.reviews-stats__rating {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.reviews-stats__number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, var(--text-6xl));
    color: var(--color-text);
    letter-spacing: 0.02em;
    line-height: 1;
}

.reviews-stats__stars {
    display: flex;
    gap: 4px;
    margin-top: var(--space-sm);
}

.reviews-stats__stars svg {
    color: var(--color-accent);
    fill: var(--color-accent);
}

.reviews-stats__label {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
}

.reviews-stats__divider {
    width: 1px;
    height: 80px;
    background: var(--color-border);
    flex-shrink: 0;
}

.reviews-stats__platforms {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.reviews-stats__platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.reviews-stats__platform-icon {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 50px;
}

.reviews-stats__platform-name {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 3: FILTER + REVIEWS GRID
   ═══════════════════════════════════════════════════════════════════════════ */

.reviews-grid-section {
    background: var(--color-bg);
    padding-bottom: var(--space-4xl);
}

/* ── Filter Buttons ── */

.reviews-filter {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
    position: sticky;
    top: 64px;
    z-index: 10;
    background: var(--color-bg);
}

.reviews-filter__label {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--color-accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-right: var(--space-sm);
}

.reviews-filter__btn {
    padding: 8px 28px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.reviews-filter__btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.reviews-filter__btn--active {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(200, 164, 94, 0.08);
}

/* ── Reviews Grid ── */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.reviews-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color var(--transition-fast);
}

.reviews-card:hover {
    border-color: rgba(200, 164, 94, 0.4);
}

.reviews-card.is-hidden {
    display: none;
}

.reviews-card__stars {
    display: flex;
    gap: 2px;
    margin-bottom: var(--space-lg);
}

.reviews-card__stars svg {
    color: var(--color-accent);
    fill: var(--color-accent);
}

.reviews-card__text {
    font-family: var(--font-body);
    font-size: 1rem;
    font-style: italic;
    color: var(--color-text-subtle);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    flex: 1;
}

.reviews-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reviews-card__author {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.05em;
}

.reviews-card__barber {
    font-size: var(--text-xs);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-top: 4px;
}

.reviews-card__source {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
}


/* ── Load More ── */

.reviews-load-more {
    text-align: center;
    margin-top: var(--space-3xl);
}

.reviews-load-more__btn {
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    padding: 14px var(--space-3xl);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: transparent;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.reviews-load-more__btn:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

.reviews-load-more__count {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: var(--space-md);
}


/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 4: LEAVE A REVIEW CTA
   ═══════════════════════════════════════════════════════════════════════════ */

.reviews-cta {
    background: var(--color-bg-alt);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Matte noise texture overlay (matches about page CTA) */
.reviews-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 180px;
    pointer-events: none;
}

.reviews-cta__card {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.reviews-cta__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, var(--text-5xl));
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

.reviews-cta__text {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
}


/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 5: BOOKING CTA (matches gallery/about pattern)
   ═══════════════════════════════════════════════════════════════════════════ */

.reviews-book {
    background: var(--color-bg);
    text-align: center;
    padding: var(--space-4xl) 0;
}

.reviews-book__inner {
    max-width: 640px;
    margin: 0 auto;
}

.reviews-book__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, var(--text-5xl));
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
}

.reviews-book__text {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 300;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-2xl);
}


/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-stats__bar {
        flex-direction: column;
        text-align: center;
    }

    .reviews-stats__rating {
        align-items: center;
    }

    .reviews-stats__divider {
        width: 100%;
        height: 1px;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .page-hero {
        height: 320px;
    }

    .page-hero__title {
        font-size: var(--text-4xl);
    }

    .page-hero__subtitle {
        font-size: var(--text-base);
    }

    .reviews-stats__bar {
        padding: var(--space-xl);
    }

    .reviews-stats__platforms {
        gap: var(--space-xl);
    }

    .reviews-filter {
        gap: var(--space-sm);
    }

    .reviews-filter__label {
        width: 100%;
        margin-bottom: var(--space-xs);
    }

    .reviews-filter__btn {
        padding: 6px 18px;
        font-size: var(--text-xs);
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .reviews-card {
        padding: var(--space-xl);
    }

    .reviews-cta__title {
        font-size: var(--text-3xl);
    }

    .reviews-book__title {
        font-size: var(--text-3xl);
    }
}
