/* ===== STYLES POUR LE SYSTÈME D'AVIS ===== */

/* Section des avis */
.reviews {
    background: linear-gradient(135deg, var(--netflix-black) 0%, var(--netflix-dark-gray) 100%);
    padding: 80px 0;
}

.reviews-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.reviews-header {
    text-align: center;
    margin-bottom: 50px;
}

.reviews-header h2 {
    font-size: 2.5rem;
    color: var(--netflix-white);
    margin-bottom: 15px;
    font-weight: 700;
}

.reviews-header p {
    font-size: 1.1rem;
    color: var(--netflix-gray);
    margin-bottom: 30px;
}

.reviews-header .btn {
    background: linear-gradient(45deg, var(--netflix-red), #ff6b6b);
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.reviews-header .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.3);
}

/* Container des avis */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Message quand aucun avis */
.no-reviews {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--netflix-gray);
}

.no-reviews i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-reviews p {
    font-size: 1.2rem;
}

/* Carte d'avis */
.review-card {
    background: var(--netflix-dark-gray);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, var(--netflix-red), #ff6b6b);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: var(--netflix-red);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--netflix-red), #ff6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.review-user-info h4 {
    color: var(--netflix-white);
    font-size: 1rem;
    margin-bottom: 2px;
}

.review-date {
    color: var(--netflix-gray);
    font-size: 0.85rem;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating .star {
    font-size: 1.2rem;
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.review-rating .star.empty {
    color: #444;
}

.review-message {
    color: var(--netflix-light-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Modal d'avis */
.review-modal {
    max-width: 500px;
    width: 90%;
}

.review-form {
    padding: 20px 0;
}

.rating-section {
    margin-bottom: 25px;
}

.rating-section label {
    display: block;
    color: var(--netflix-white);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.star-rating {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.star-rating .star {
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    filter: grayscale(1);
    opacity: 0.5;
}

.star-rating .star:hover,
.star-rating .star.active {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

.star-rating .star:hover ~ .star {
    filter: grayscale(1);
    opacity: 0.5;
}

.rating-text {
    color: var(--netflix-gray);
    font-size: 0.9rem;
    font-style: italic;
}

.review-message-section {
    margin-bottom: 25px;
}

.review-message-section label {
    display: block;
    color: var(--netflix-white);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.review-message-section textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: var(--netflix-dark-gray);
    color: var(--netflix-white);
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease;
}

.review-message-section textarea:focus {
    outline: none;
    border-color: var(--netflix-red);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.review-message-section textarea::placeholder {
    color: var(--netflix-gray);
}

.char-count {
    text-align: right;
    color: var(--netflix-gray);
    font-size: 0.85rem;
    margin-top: 5px;
}

.review-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.review-actions .btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    font-size: 1rem;
}

.review-actions .btn-secondary {
    background: transparent;
    color: var(--netflix-gray);
    border: 2px solid var(--netflix-gray);
}

.review-actions .btn-secondary:hover {
    background: var(--netflix-gray);
    color: var(--netflix-white);
}

.review-actions .btn-primary {
    background: linear-gradient(45deg, var(--netflix-red), #ff6b6b);
    color: white;
}

.review-actions .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.3);
}

.review-actions .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive pour les avis */
@media (max-width: 768px) {
    .reviews-header h2 {
        font-size: 2rem;
    }
    
    .reviews-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .review-card {
        padding: 20px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .star-rating .star {
        font-size: 2rem;
    }
    
    .review-actions {
        flex-direction: column;
    }
    
    .review-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
