/* =====================================================
   MARMOTTE WORLD - FEEDBACK & PLAYERS PAGES
   Styles dedies aux pages Avis et Joueurs
   ===================================================== */

/* =====================================================
   BOUTON JOUEURS DANS LE HEADER
   ===================================================== */
.header-btn-joueurs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 2px solid rgba(16, 185, 129, 0.5);
    border-radius: 14px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    position: relative;
    z-index: 100;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-touch-callout: none;
}

.header-btn-joueurs:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.header-btn-joueurs:active {
    transform: translateY(0) scale(0.98);
}

.header-btn-joueurs .joueurs-icon {
    font-size: 1.2rem;
}

.header-btn-joueurs .joueurs-text {
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

/* =====================================================
   BOUTON AVIS DANS LE HEADER
   ===================================================== */
.header-btn-avis {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 14px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    position: relative;
    z-index: 100;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-touch-callout: none;
}

.header-btn-avis:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, #a78bfa 0%, #818cf8 100%);
}

.header-btn-avis:active {
    transform: translateY(0) scale(0.98);
}

.header-btn-avis .avis-icon {
    font-size: 1.2rem;
    animation: avisIconPulse 2s ease-in-out infinite;
}

@keyframes avisIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.header-btn-avis .avis-text {
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

/* Mobile */
@media (max-width: 768px) {
    .header-btn-joueurs {
        padding: 0.5rem 0.8rem;
    }

    .header-btn-joueurs .joueurs-text {
        display: none;
    }

    .header-btn-joueurs .joueurs-icon {
        font-size: 1.3rem;
    }

    .header-btn-avis {
        padding: 0.5rem 0.8rem;
    }

    .header-btn-avis .avis-text {
        display: none;
    }

    .header-btn-avis .avis-icon {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .header-btn-joueurs {
        padding: 0.45rem 0.7rem;
        border-radius: 10px;
    }

    .header-btn-avis {
        padding: 0.45rem 0.7rem;
        border-radius: 10px;
    }
}

/* =====================================================
   BARRE STATS EN LIGNE - CLIQUABLE
   ===================================================== */
.online-stats-bar.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.online-stats-bar.clickable:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-2px);
}

.stat-arrow {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.online-stats-bar.clickable:hover .stat-arrow {
    color: #fbbf24;
    transform: translateX(5px);
}

/* =====================================================
   PAGE FEEDBACK / AVIS
   ===================================================== */
#screen-feedback {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f1a 100%);
}

.feedback-page {
    min-height: 100vh;
    padding: 1rem;
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.btn-back-feedback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back-feedback:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-3px);
}

.feedback-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.feedback-logo {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.feedback-title-text h1 {
    font-size: 1.5rem;
    color: white;
    margin: 0;
}

.feedback-title-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.feedback-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feedback-form-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.label-icon {
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1.5rem;
    padding-right: 2.5rem;
}

.form-group select option {
    background: #1a1a2e;
    color: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.char-count {
    text-align: right;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.3rem;
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 0.3rem;
    font-size: 1.8rem;
}

.star-rating .star {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: #fbbf24;
    transform: scale(1.15);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Bouton Submit */
.btn-submit-feedback {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-submit-feedback:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.btn-submit-feedback:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-submit-feedback .btn-icon {
    font-size: 1.3rem;
}

/* Feedback Success */
.feedback-success {
    text-align: center;
    padding: 3rem 2rem;
}

.feedback-success .success-icon {
    font-size: 5rem;
    display: block;
    margin-bottom: 1.5rem;
    animation: successBounce 0.6s ease;
}

@keyframes successBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.feedback-success h3 {
    color: #22c55e;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.feedback-success p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.btn-close-feedback {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    border-radius: 12px;
    padding: 0.8rem 2rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-feedback:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

/* Section Info */
.feedback-info-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-3px);
}

.info-card .info-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.info-card h3 {
    font-size: 1rem;
    color: white;
    margin: 0 0 0.3rem 0;
}

.info-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .feedback-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .feedback-info-section {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .info-card {
        flex: 1;
        min-width: 140px;
    }

    .feedback-header {
        flex-wrap: wrap;
    }

    .feedback-title-text h1 {
        font-size: 1.2rem;
    }

    .feedback-logo {
        font-size: 2rem;
    }
}

/* =====================================================
   PAGE JOUEURS / PLAYERS
   ===================================================== */
#screen-players {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f1a 100%);
}

.players-page {
    min-height: 100vh;
    padding: 1rem;
}

.players-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.btn-back-players {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back-players:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-3px);
}

.players-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.players-logo {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.5));
}

.players-title-text h1 {
    font-size: 1.5rem;
    color: white;
    margin: 0;
}

.players-title-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.players-stats-header {
    display: flex;
    gap: 0.8rem;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: white;
}

.stat-badge.online {
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.stat-badge.total {
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Filtres */
.players-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.filter-btn.active {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: transparent;
    color: white;
}

/* Liste des joueurs */
.players-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.players-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.6);
}

.loading-spinner {
    font-size: 2rem;
    animation: spin 1s linear infinite;
    display: block;
    margin-bottom: 1rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Carte joueur */
.player-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.player-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-3px);
}

.player-card-avatar {
    position: relative;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.player-card-avatar .online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border: 2px solid #1a1a2e;
    border-radius: 50%;
}

.player-card-info {
    flex: 1;
}

.player-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.player-card-title {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.player-card-stats {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.3rem;
}

.player-card-stat {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.player-card-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
}

.player-card:hover .player-card-arrow {
    color: #fbbf24;
    transform: translateX(3px);
}

/* Modal profil joueur */
.player-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.player-profile-modal.active {
    display: flex;
}

.profile-modal-content {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 25px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 2px solid rgba(251, 191, 36, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.profile-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.profile-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
}

.profile-info h2 {
    font-size: 1.5rem;
    color: white;
    margin: 0 0 0.3rem 0;
}

.profile-title {
    display: block;
    font-size: 0.9rem;
    color: #fbbf24;
    margin-bottom: 0.3rem;
}

.profile-country {
    font-size: 1.2rem;
}

/* Score du jeu actuel */
.profile-current-game {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
    border: 2px solid rgba(251, 191, 36, 0.4);
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    text-align: center;
}

.profile-current-game .current-game-header {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.profile-current-game .current-game-score {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fbbf24;
    text-shadow: 0 2px 10px rgba(251, 191, 36, 0.5);
}

.profile-current-game .current-game-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.profile-stat-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.profile-stat-item .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fbbf24;
}

.profile-stat-item .stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.profile-games-section,
.profile-scores-section {
    margin-bottom: 1.5rem;
}

.profile-games-section h3,
.profile-scores-section h3 {
    font-size: 1rem;
    color: white;
    margin-bottom: 0.8rem;
}

.profile-games-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.game-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: white;
}

.profile-scores-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.score-game {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.9rem;
}

.score-value {
    font-weight: 700;
    color: #fbbf24;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .players-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .players-stats-header {
        width: 100%;
        justify-content: center;
    }

    .players-title-section {
        width: 100%;
    }

    .players-list {
        grid-template-columns: 1fr;
    }

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

    .profile-header {
        flex-direction: column;
        text-align: center;
    }
}

/* =====================================================
   SECTION AVIS DES JOUEURS
   ===================================================== */
.reviews-section {
    background: linear-gradient(145deg, rgba(30, 30, 60, 0.9), rgba(20, 20, 45, 0.95));
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-top: 1.5rem;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.reviews-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

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

.reviews-title h2 {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a78bfa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.reviews-filters {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.review-filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-filter-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    color: white;
}

.review-filter-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.4);
}

.reviews-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.reviews-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.reviews-stats .stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fbbf24;
}

.reviews-stats .stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.reviews-list::-webkit-scrollbar {
    width: 6px;
}

.reviews-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.reviews-list::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 3px;
}

.reviews-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.loading-spinner {
    font-size: 1.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.reviews-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.reviews-empty span {
    font-size: 2rem;
}

.reviews-empty.hidden {
    display: none;
}

/* Carte d'avis individuelle */
.review-card {
    background: linear-gradient(145deg, rgba(40, 40, 80, 0.8), rgba(30, 30, 60, 0.9));
    border-radius: 16px;
    padding: 1.2rem;
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: all 0.3s ease;
    animation: slideInReview 0.4s ease-out;
}

@keyframes slideInReview {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.review-card.new-review {
    animation: newReviewPulse 0.6s ease-out;
    border-color: rgba(34, 211, 238, 0.6);
}

@keyframes newReviewPulse {
    0% {
        opacity: 0;
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(34, 211, 238, 0.3);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
    }
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    font-weight: 700;
}

.review-author-info {
    display: flex;
    flex-direction: column;
}

.review-name {
    font-weight: 600;
    color: white;
    font-size: 1rem;
}

.review-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.review-rating {
    display: flex;
    gap: 0.15rem;
}

.review-star {
    font-size: 1rem;
    color: #fbbf24;
}

.review-star.empty {
    color: rgba(255, 255, 255, 0.2);
}

.review-content {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.6rem;
}

.review-category {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive mobile */
@media (max-width: 768px) {
    .reviews-section {
        padding: 1rem;
        margin-top: 1rem;
    }

    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .reviews-filters {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .review-filter-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .reviews-title h2 {
        font-size: 1.2rem;
    }

    .reviews-list {
        max-height: 400px;
    }

    .review-card {
        padding: 1rem;
    }

    .review-avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .review-name {
        font-size: 0.9rem;
    }

    .review-content {
        font-size: 0.9rem;
    }
}
