/* ===== Reviews Section Styles ===== */

.reviews-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--background-gradient-start) 0%, var(--background-gradient-end) 100%);
    position: relative;
    overflow: hidden;
}

.reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern-bg.png') repeat;
    opacity: 0.03;
    z-index: 0;
}

.reviews-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
}

.section-decoration {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.section-decoration svg {
    width: 100px;
    height: 10px;
    color: var(--accent-gold);
}

/* Reviews Carousel Wrapper */
.reviews-wrapper {
    display: flex;
    gap: 2rem;
    overflow-x: scroll;
    scroll-behavior: smooth;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 1rem 0;
    animation: infiniteScroll var(--scroll-duration, 40s) linear infinite;
}

.reviews-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.reviews-wrapper:active {
    cursor: grabbing;
}

/* Infinite Scroll Animation */
@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-1 * var(--total-original-set-width, 0px)));
    }
}

/* Review Card */
.review-card {
    min-width: 400px;
    max-width: 400px;
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 15px 50px rgba(139, 0, 0, 0.2);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(139, 0, 0, 0.25);
    border-color: var(--accent-gold);
}

/* Quote Icon */
.quote-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.quote-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-light);
}

/* Star Rating */
.review-stars {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 1.2rem;
}

.review-stars .star {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.review-stars .star.filled {
    color: var(--accent-gold);
}

.review-stars .star.empty {
    color: #e5e7eb;
    stroke: #d1d5db;
}

/* Review Text */
.review-text {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.7;
    text-align: center;
    margin-bottom: 1.5rem;
    font-style: italic;
    min-height: 80px;
}

/* Author Info */
.review-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 1.2rem;
    border-top: 2px solid var(--background-light);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.2);
}

.author-details {
    text-align: left;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-family: 'Playfair Display', serif;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-dark);
    opacity: 0.6;
    margin: 0;
}

/* Empty State */
.reviews-empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(245, 158, 11, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.empty-icon svg {
    width: 40px;
    height: 40px;
    color: var(--accent-gold);
}

.reviews-empty-state h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-family: 'Playfair Display', serif;
}

.reviews-empty-state p {
    font-size: 1.1rem;
    color: var(--text-dark);
    opacity: 0.7;
}

/* ===== Responsive Design ===== */

/* Tablet */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.5rem;
    }

    .review-card {
        min-width: 350px;
        max-width: 350px;
        padding: 1.8rem;
    }

    .reviews-wrapper {
        gap: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .reviews-section {
        padding: 4rem 1.5rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .review-card {
        min-width: 300px;
        max-width: 300px;
        padding: 1.5rem;
    }

    .reviews-wrapper {
        gap: 1.2rem;
    }

    .quote-icon {
        width: 45px;
        height: 45px;
    }

    .quote-icon svg {
        width: 20px;
        height: 20px;
    }

    .review-stars .star {
        width: 18px;
        height: 18px;
    }

    .review-text {
        font-size: 0.95rem;
        min-height: 70px;
    }

    .author-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .author-name {
        font-size: 1rem;
    }

    .review-date {
        font-size: 0.8rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .reviews-section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .review-card {
        min-width: 280px;
        max-width: 280px;
        padding: 1.2rem;
    }

    .reviews-wrapper {
        gap: 1rem;
    }

    .quote-icon {
        width: 40px;
        height: 40px;
    }

    .quote-icon svg {
        width: 18px;
        height: 18px;
    }

    .review-stars {
        gap: 0.2rem;
        margin-bottom: 1rem;
    }

    .review-stars .star {
        width: 16px;
        height: 16px;
    }

    .review-text {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        min-height: 60px;
    }

    .review-author {
        gap: 0.8rem;
        padding-top: 1rem;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .author-name {
        font-size: 0.95rem;
    }

    .review-date {
        font-size: 0.75rem;
    }
}
