/* ===================================================
   Reviews Page - Green Britain
   reviews.greenbritain.club
   =================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --green-primary: #2E7D32;
    --green-dark: #1B5E20;
    --green-light: #4CAF50;
    --green-accent: #66BB6A;
    --bg-body: #f5f7f5;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --text-muted: #888;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: 0.25s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--green-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

/* ---------- Page Container ---------- */
.reviews-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------- Header ---------- */
.reviews-header {
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
    color: #fff;
    padding: 48px 24px 40px;
    text-align: center;
}

.header-content h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.header-content h1 i {
    margin-right: 10px;
    color: #FFD54F;
}

.header-subtitle {
    font-size: 1.1rem;
    opacity: 0.92;
    margin-bottom: 6px;
}

.header-subtitle a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.header-subtitle a:hover {
    opacity: 0.85;
    color: #fff;
}

.header-count {
    font-size: 0.95rem;
    opacity: 0.75;
    margin-top: 4px;
}

/* ---------- Gallery ---------- */
.reviews-gallery-container {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px 48px;
}

.reviews-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ---------- Review Card ---------- */
.review-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Featured Review */
.featured-review {
    border: 3px solid #FFC107; /* Thicker, bolder gold border */
    position: relative;
    background: linear-gradient(to bottom, #fffbe6, #ffffff); /* Subtle gold tint background */
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.25); /* Golden glow shadow */
    transform: translateY(-2px); /* Slight lift by default */
}

.featured-label {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #FFC107;
    color: #000;
    font-size: 0.8rem;
    font-weight: 800; /* Bolder text */
    padding: 6px 12px;
    border-radius: 20px; /* Pill shape */
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 2;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,0.3);
}

.featured-label i {
    color: #000;
    font-size: 0.9rem;
}

/* Adjust hover effect for featured items */
.featured-review:hover {
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4);
    transform: translateY(-6px) scale(1.02); /* More pronounced lift and slight scale */
    border-color: #FFB300;
    z-index: 1; /* Bring to front on hover */
}

.review-image-wrapper {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #eee;
    aspect-ratio: 1 / 1; /* Enforce square aspect ratio */
}

.review-img {
    width: 100%;
    height: 100%; /* Force height to match wrapper */
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.review-card:hover .review-img {
    transform: scale(1.03);
}

.review-caption {
    padding: 14px 16px 4px;
}

.review-caption p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
    /* Clamp to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-date {
    padding: 6px 16px 14px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.review-date i {
    margin-right: 4px;
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    padding: 16px 0;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--green-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background var(--transition), transform var(--transition);
    text-decoration: none;
}

.page-btn:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.page-info {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ---------- Empty State ---------- */
.no-reviews {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-secondary);
}

.no-reviews i {
    font-size: 4rem;
    color: var(--green-accent);
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-reviews h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.no-reviews p {
    font-size: 1.05rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 60px rgba(0,0,0,0.4);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.25);
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

/* ---------- Footer ---------- */
.reviews-footer {
    background: var(--green-dark);
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 24px;
    font-size: 0.9rem;
}

.reviews-footer a {
    color: #fff;
    font-weight: 600;
}

.reviews-footer a:hover {
    text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .reviews-header {
        padding: 36px 16px 30px;
    }

    .header-content h1 {
        font-size: 1.8rem;
    }

    .header-subtitle {
        font-size: 0.98rem;
    }

    .reviews-gallery-container {
        padding: 20px 12px 36px;
    }

    .reviews-gallery {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }
}

@media (max-width: 480px) {
    .reviews-gallery {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .header-content h1 {
        font-size: 1.5rem;
    }

    .pagination {
        flex-direction: column;
        gap: 10px;
    }
}
