/* Modern Google Reviews Section - Black & White Theme - Carousel */
.reviews-section {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
}

/* Add hexagon pattern background */
.reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 50% 50%, transparent 40%, rgba(255,255,255,0.02) 41%, rgba(255,255,255,0.02) 42%, transparent 43%);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Add subtle wave overlay */
.reviews-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at top, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(255,255,255,0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.reviews-section > * {
    position: relative;
    z-index: 1;
}

/* Carousel Wrapper */
.reviews-carousel-wrapper {
    position: relative;
    padding: 0 50px;
    margin-top: 20px;
}

.reviews-swiper {
    padding-bottom: 60px;
}

/* Overall Rating Box */
.overall-rating-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.rating-number {
    font-size: 56px;
    font-weight: 800;
    color: #242424;
    line-height: 1;
    margin-bottom: 15px;
}

.stars-display {
    color: #242424;
    font-size: 32px;
    margin-bottom: 12px;
}

.stars-display i {
    margin: 0 3px;
}

.review-count {
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

/* Individual Review Cards */
.swiper-slide {
    height: auto;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    height: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: #242424;
}

/* Carousel Navigation - Black & White Theme */
.reviews-next,
.reviews-prev {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    color: #242424 !important;
    transition: all 0.3s ease;
}

.reviews-next:after,
.reviews-prev:after {
    font-size: 18px;
    font-weight: 700;
    color: #242424;
}

.reviews-next:hover,
.reviews-prev:hover {
    background: #f5f5f5;
    transform: scale(1.1);
}

.reviews-next.swiper-button-disabled,
.reviews-prev.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Carousel Pagination - Black & White Theme */
.reviews-pagination {
    bottom: 0 !important;
}

.reviews-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transition: all 0.3s ease;
}

.reviews-pagination .swiper-pagination-bullet-active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f5f5f5;
}

.review-header img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid #f0f0f0;
}

.review-author-info h5 {
    color: #242424;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.review-stars {
    color: #242424;
    font-size: 16px;
    margin-top: 5px;
}

.review-stars i {
    margin-right: 2px;
}

.review-body {
    flex-grow: 1;
    margin-bottom: 15px;
}

.review-body p {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.review-footer {
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
}

.review-footer small {
    color: #999;
    font-size: 13px;
    font-weight: 500;
}

/* Loading States */
#reviews-container p {
    padding: 40px 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card {
    animation: fadeIn 0.6s ease-out;
}

/* Staggered animation for review cards */
.col-lg-4:nth-child(1) .review-card { animation-delay: 0.1s; }
.col-lg-4:nth-child(2) .review-card { animation-delay: 0.2s; }
.col-lg-4:nth-child(3) .review-card { animation-delay: 0.3s; }
.col-lg-4:nth-child(4) .review-card { animation-delay: 0.4s; }
.col-lg-4:nth-child(5) .review-card { animation-delay: 0.5s; }
.col-lg-4:nth-child(6) .review-card { animation-delay: 0.6s; }

/* Responsive */
@media (max-width: 991px) {
    .reviews-carousel-wrapper {
        padding: 0 40px;
    }

    .overall-rating-box {
        padding: 30px;
    }

    .rating-number {
        font-size: 48px;
    }

    .stars-display {
        font-size: 28px;
    }

    .review-card {
        padding: 25px;
        min-height: 300px;
    }

    .reviews-next,
    .reviews-prev {
        width: 40px;
        height: 40px;
    }

    .reviews-next:after,
    .reviews-prev:after {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .reviews-carousel-wrapper {
        padding: 0 20px;
    }

    .overall-rating-box {
        padding: 25px;
    }

    .rating-number {
        font-size: 40px;
    }

    .stars-display {
        font-size: 24px;
    }

    .review-count {
        font-size: 14px;
    }

    .review-card {
        padding: 20px;
        min-height: 280px;
    }

    .review-header img {
        width: 45px;
        height: 45px;
    }

    .review-author-info h5 {
        font-size: 15px;
    }

    .review-stars {
        font-size: 14px;
    }

    .review-body p {
        font-size: 14px;
    }

    .reviews-next,
    .reviews-prev {
        width: 35px;
        height: 35px;
    }

    .reviews-next:after,
    .reviews-prev:after {
        font-size: 14px;
    }

    .reviews-swiper {
        padding-bottom: 50px;
    }

    /* Fix "View All Reviews" button for mobile */
    .reviews-section .theme-btn.one {
        padding: 12px 25px !important;
        font-size: 14px !important;
        white-space: normal !important;
        max-width: 90% !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    /* Smaller button for phones */
    .reviews-section .theme-btn.one {
        padding: 10px 20px !important;
        font-size: 13px !important;
        max-width: 100% !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 360px) {
    /* Even smaller for very small screens */
    .reviews-section .theme-btn.one {
        padding: 10px 15px !important;
        font-size: 12px !important;
    }
}

/* Error/Setup Message Styling */
.setup-message-box,
.error-message-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.setup-message-box h4,
.error-message-box h4 {
    color: #242424;
    margin-bottom: 20px;
}

.setup-message-box p,
.error-message-box p {
    color: #666;
    line-height: 1.7;
}

.setup-message-box code {
    background-color: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
    color: #242424;
    font-family: monospace;
}

.setup-message-box ol {
    text-align: left;
    max-width: 600px;
    margin: 20px auto;
    color: #555;
}

.setup-message-box ol li {
    margin-bottom: 10px;
}

.setup-message-box a {
    color: #242424;
    font-weight: 600;
    text-decoration: underline;
}
