/* ========================================
   JEWELRY 86 - SYSTÈME D'AVIS CUSTOM
   Design Premium Gold/Black Optimisé Conversion
   ======================================== */

:root {
    --gold-primary: #D4AF37;
    --gold-dark: #B8941F;
    --gold-light: #F4E5C2;
    --black: #1a1a1a;
    --gray-dark: #2a2a2a;
    --gray-medium: #808080;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* ===== WRAPPER PRINCIPAL ===== */
.jewelry86-reviews-wrapper {
    background: var(--black);
    padding: 4rem 2rem;
    margin: 3rem 0;
}

/* ===== BOX STATISTIQUES ===== */
.reviews-stats-box {
    background: linear-gradient(135deg, var(--gray-dark) 0%, var(--black) 100%);
    border: 2px solid var(--gold-primary);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

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

.rating-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--gold-primary);
    line-height: 1;
    margin-bottom: 1rem;
}

.rating-stars {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.rating-text {
    color: var(--white);
    font-size: 1.1rem;
}

.stats-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-label {
    color: var(--white);
    font-weight: 600;
    min-width: 60px;
}

.stat-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-dark));
    transition: width 0.6s ease;
}

.stat-count {
    color: var(--gray-medium);
    min-width: 40px;
    text-align: right;
}

/* ===== FILTRES ===== */
.reviews-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.filter-btn {
    background: var(--gray-dark);
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--black);
    border-color: var(--gold-primary);
}

/* ===== LISTE DES AVIS ===== */
.reviews-list {
    display: grid;
    gap: 2rem;
}

.review-card {
    background: var(--gray-dark);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }
.review-card:nth-child(4) { animation-delay: 0.4s; }
.review-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
}

.review-card.hidden {
    display: none;
}

/* ===== EN-TÊTE AVIS ===== */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 3px solid var(--gold-dark);
}

.reviewer-details {
    flex: 1;
}

.reviewer-name {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.review-stars {
    display: flex;
    gap: 0.2rem;
}

.stars-rating {
    display: inline-flex;
    gap: 0.2rem;
}

.star {
    font-size: 1.2rem;
    line-height: 1;
}

.star.filled {
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.star.empty {
    color: rgba(212, 175, 55, 0.2);
}

.verified-badge {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--black);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ===== CONTENU AVIS ===== */
.review-title {
    color: var(--gold-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.review-content {
    color: var(--white);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.review-content p {
    margin-bottom: 0.8rem;
}

/* ===== GALERIE MÉDIAS ===== */
.review-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.review-media-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: var(--transition);
    background: var(--black);
}

.review-media-item:hover {
    border-color: var(--gold-primary);
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.review-media-item img,
.review-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.review-media-item:hover img,
.review-media-item:hover video {
    transform: scale(1.1);
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--black);
    pointer-events: none;
}

/* ===== FOOTER AVIS ===== */
.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.review-date {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* ===== LIGHTBOX ===== */
.jewelry86-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.jewelry86-lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 10000;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-media img,
.lightbox-media video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    border: 3px solid var(--gold-primary);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: var(--gold-primary);
    color: var(--black);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-weight: 300;
    line-height: 1;
}

.lightbox-close:hover {
    background: var(--gold-dark);
    transform: rotate(90deg);
}

/* ===== CARROUSEL HOMEPAGE ===== */
.jewelry86-reviews-carousel-section {
    background: var(--black);
    padding: 5rem 2rem;
    position: relative;
}

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

.section-title {
    font-size: 3rem;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
}

.gold-text {
    color: var(--gold-primary);
}

.section-subtitle {
    color: var(--gray-medium);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.carousel-rating-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: var(--gray-dark);
    padding: 1.5rem 2.5rem;
    border-radius: 12px;
    border: 2px solid var(--gold-primary);
    display: inline-flex;
    margin: 0 auto;
}

.carousel-rating-summary .rating-stars {
    font-size: 1.5rem;
}

.carousel-rating-summary .rating-text {
    color: var(--white);
    font-size: 1.1rem;
}

.carousel-rating-summary .rating-text strong {
    color: var(--gold-primary);
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.carousel-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    transition: transform 0.5s ease;
}

.carousel-card {
    background: var(--gray-dark);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.carousel-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.3);
}

.carousel-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.carousel-card .reviewer-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}

.carousel-card .card-content {
    color: var(--white);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    min-height: 80px;
}

.card-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.media-thumb {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-thumb:hover img {
    transform: scale(1.1);
}

.media-more {
    aspect-ratio: 1;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gray-dark);
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--gold-primary);
    color: var(--black);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-cta {
    text-align: center;
    margin-top: 3rem;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: transparent;
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.btn-view-all:hover {
    background: var(--gold-primary);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* ===== MESSAGE VIDE ===== */
.no-reviews {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-medium);
    font-size: 1.2rem;
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 968px) {
    .jewelry86-reviews-wrapper {
        padding: 3rem 1.5rem;
    }

    .reviews-stats-box {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .rating-number {
        font-size: 3rem;
    }

    .reviews-filters {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
        text-align: center;
    }

    .review-card {
        padding: 1.5rem;
    }

    .reviewer-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .review-media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

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

    .carousel-wrapper {
        padding: 0 50px;
    }

    .carousel-track {
        grid-template-columns: 1fr;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .card-media-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lightbox-content {
        max-width: 95%;
    }

    .lightbox-close {
        top: -40px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .review-header {
        flex-direction: column;
        gap: 1rem;
    }

    .verified-badge {
        align-self: flex-start;
    }

    .review-media-grid {
        grid-template-columns: 1fr;
    }
}
