/**
 * Featured Reviews WooCommerce - Styles
 * Version: 1.0.0
 */

.featured-reviews-container {
    margin: 10px 0 0;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.featured-reviews-title {
    font-size: 1.4em;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #333;
    text-align: center;
}

/* Style des avis individuels */
.featured-review-item {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.featured-review-author {
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

.featured-review-rating {
    display: flex;
    align-items: center;
}

.featured-review-stars {
    display: inline-flex;
    gap: 2px;
}

.featured-review-stars .star {
    font-size: 16px;
    line-height: 1;
}

.featured-review-stars .star.filled {
    color: #00b67a;
}

.featured-review-stars .star.empty {
    color: #ddd;
}

.featured-review-content {
    flex: 1;
}

.featured-review-content p {
    margin: 0;
    color: #111;
    line-height: 1.6;
    font-size: 0.9em;
}

.featured-review-more {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.featured-review-more:hover {
    color: #005177;
    text-decoration: underline;
}

/* Style pour un seul avis (sans slider) */
.featured-reviews-single {
    max-width: 600px;
    margin: 0 auto;
}

/* Styles du Swiper Slider */
.featured-reviews-swiper {
    position: relative;
    padding: 0 40px;
}

.featured-reviews-swiper .swiper-wrapper {
    align-items: stretch;
}

.featured-reviews-swiper .swiper-slide {
    height: auto;
}

/* Boutons de navigation */
.featured-reviews-swiper .swiper-button-prev,
.featured-reviews-swiper .swiper-button-next {
    color: #333;
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.featured-reviews-swiper .swiper-button-prev:hover,
.featured-reviews-swiper .swiper-button-next:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.featured-reviews-swiper .swiper-button-prev::after,
.featured-reviews-swiper .swiper-button-next::after {
    font-size: 16px;
    font-weight: bold;
}

.featured-reviews-swiper .swiper-button-prev {
    left: 0;
}

.featured-reviews-swiper .swiper-button-next {
    right: 0;
}

/* Pagination */
.featured-reviews-swiper .swiper-pagination {
    bottom: -2px !important;
}

.featured-reviews-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.featured-reviews-swiper .swiper-pagination-bullet-active {
    background: #712f1c;
    width: 8px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .featured-reviews-container {
        margin: 10px 0 0;
    }
    
    .featured-reviews-title {
        font-size: 1.2em;
        margin-bottom: 15px;
    }
    
    .featured-review-item {
        padding: 10px;
    }
    
    .featured-reviews-swiper {
        padding: 0 35px;
    }
    
    .featured-reviews-swiper .swiper-button-prev,
    .featured-reviews-swiper .swiper-button-next {
        width: 30px;
        height: 30px;
    }
    
    .featured-reviews-swiper .swiper-button-prev::after,
    .featured-reviews-swiper .swiper-button-next::after {
        font-size: 14px;
    }
    
    .featured-review-header {
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .featured-reviews-swiper {
        padding: 0 25px;
    }
    
    .featured-reviews-swiper .swiper-button-prev,
    .featured-reviews-swiper .swiper-button-next {
        width: 25px;
        height: 25px;
    }
    
    .featured-reviews-swiper .swiper-button-prev::after,
    .featured-reviews-swiper .swiper-button-next::after {
        font-size: 12px;
    }
}