/* ===== REVIEWS PAGE STYLES ===== */
/* Uses CSS variables from style.css */

.reviews-page {
    padding: 120px 0 var(--section-padding);
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
    min-height: 100vh;
}

.reviews-header {
    text-align: center;
    margin-bottom: 50px;
}

.reviews-header h1 {
    margin-bottom: 16px;
}

.reviews-intro {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Rating Overview Card */
.rating-overview {
    margin-bottom: 60px;
}

.rating-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    max-width: 650px;
    margin: 0 auto;
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.rating-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
}

.rating-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-100);
}

.google-logo img {
    max-width: 100px;
    height: auto;
}

.rating-overall {
    text-align: center;
}

.rating-stars {
    color: #FBBC05;
    font-size: 2rem;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.rating-average {
    font-size: 3rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.rating-count {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.rating-breakdown {
    margin-bottom: 32px;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.star-label {
    width: 50px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-bar {
    flex-grow: 1;
    height: 10px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    margin: 0 16px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #FBBC05 0%, #F9AB00 100%);
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

.percent {
    width: 50px;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: right;
}

.rating-cta {
    text-align: center;
}

.rating-cta .btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 14px 32px;
}

.rating-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(8, 145, 178, 0.3);
}

/* Reviews Filter */
.reviews-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-label {
    font-weight: 600;
    margin-right: 16px;
    color: var(--text-primary);
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.2);
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin-bottom: 50px;
}

.review-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 28px;
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    position: relative;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    transition: var(--transition);
}

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

.review-card:hover::before {
    height: 100%;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.reviewer-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 16px;
    border: 3px solid var(--primary-light);
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.review-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.review-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.stars {
    color: #FBBC05;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.source img {
    border-radius: 4px;
}

.review-content {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.review-content p {
    margin: 0;
}

.review-response {
    background: var(--gray-50);
    padding: 16px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-left: 3px solid var(--primary);
}

.response-header {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.response-header strong {
    font-weight: 600;
}

.review-response p {
    margin: 0;
    line-height: 1.6;
}

/* Pagination */
.reviews-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
    gap: 8px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    background: var(--white);
    border: 2px solid var(--gray-200);
    transition: var(--transition);
}

.pagination-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.pagination-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.2);
}

.pagination-btn.next {
    width: auto;
    padding: 0 20px;
}

.pagination-dots {
    padding: 0 8px;
    color: var(--text-muted);
}

/* No Reviews Section */
.no-reviews-section {
    margin-bottom: 60px;
}

.no-reviews-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 60px 40px;
    max-width: 650px;
    margin: 0 auto;
    border: 1px solid var(--gray-100);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.no-reviews-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
}

.no-reviews-card .google-logo {
    margin-bottom: 24px;
}

.no-reviews-card .google-logo img {
    max-width: 100px;
    height: auto;
}

.no-reviews-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--gray-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-reviews-icon i {
    font-size: 2.5rem;
    color: var(--primary);
}

.no-reviews-card h2 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.no-reviews-card p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.7;
}

.no-reviews-card p:last-of-type {
    margin-bottom: 32px;
}

.no-reviews-card .rating-cta {
    margin-top: 24px;
}

/* Reviews CTA Section */
.reviews-cta {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 48px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--gray-100);
}

.reviews-cta h2 {
    margin-top: 0;
    margin-bottom: 16px;
}

.reviews-cta p {
    margin-bottom: 32px;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.reviews-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.reviews-cta .btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
}

.reviews-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(8, 145, 178, 0.3);
}

.reviews-cta .btn-secondary {
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    color: var(--text-primary);
}

.reviews-cta .btn-secondary:hover {
    background: var(--gray-200);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .reviews-page {
        padding: 100px 0 60px;
    }

    .rating-card {
        padding: 28px;
    }

    .rating-header {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .rating-average {
        font-size: 2.5rem;
    }

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

    .reviews-cta {
        padding: 32px 24px;
    }

    .reviews-cta .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .reviews-cta .btn {
        width: 100%;
    }

    .filter-options {
        width: 100%;
        justify-content: center;
    }

    .filter-label {
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 8px;
    }

    .no-reviews-card {
        padding: 40px 24px;
    }

    .no-reviews-icon {
        width: 60px;
        height: 60px;
    }

    .no-reviews-icon i {
        font-size: 1.8rem;
    }
}
