/* ============================================
   ESTILOS MEJORADOS PARA RESEÑAS DE PRODUCTOS
   ============================================ */

/* Sección de reseñas */
#reviews {
    margin-top: 3rem;
    padding: 2rem 0;
}

#reviews h2 {
    color: #3f111c;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Comentarios individuales */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    background: #fff;
    border: 1px solid #e0d5e1;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.comment-list .comment:hover {
    box-shadow: 0 4px 15px rgba(63, 17, 28, 0.1);
    transform: translateY(-2px);
}

/* Avatar del usuario */
.comment-list .comment img.avatar {
    border-radius: 50%;
    border: 3px solid #3f111c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Información del comentario */
.comment-list .comment-text {
    margin-left: 0;
}

.comment-list .meta {
    margin-bottom: 0.75rem;
}

.comment-list .meta strong {
    color: #3f111c;
    font-size: 1.1rem;
}

.comment-list .meta .woocommerce-review__dash {
    color: #666;
    margin: 0 0.5rem;
}

.comment-list .meta time {
    color: #999;
    font-size: 0.9rem;
}

/* Estrellas de calificación */
.star-rating {
    color: #d4af37 !important;
    font-size: 1.1rem;
}

.star-rating::before {
    color: #e0d5e1;
}

.star-rating span::before {
    color: #d4af37;
}

/* Descripción del comentario */
.comment-list .description p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Formulario de reseña */
#review_form_wrapper {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#review_form_wrapper h3 {
    color: #3f111c;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Campos del formulario */
#review_form .comment-form-rating label,
#review_form .comment-form-author label,
#review_form .comment-form-email label,
#review_form .comment-form-comment label {
    color: #3f111c;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

#review_form input[type="text"],
#review_form input[type="email"],
#review_form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0d5e1;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

#review_form input[type="text"]:focus,
#review_form input[type="email"]:focus,
#review_form textarea:focus {
    border-color: #3f111c;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(63, 17, 28, 0.1);
}

#review_form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Selector de estrellas mejorado */
.comment-form-rating {
    margin-bottom: 1.5rem;
}

.comment-form-rating .stars {
    display: inline-block;
}

.comment-form-rating .stars a {
    color: #d4af37;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.comment-form-rating .stars a:hover,
.comment-form-rating .stars a.active {
    transform: scale(1.2);
}

.comment-form-rating .stars a:hover ~ a {
    color: #e0d5e1;
}

/* Botón de enviar */
#review_form input[type="submit"],
#review_form .submit button {
    background: linear-gradient(135deg, #3f111c 0%, #5a1a2e 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(63, 17, 28, 0.2);
}

#review_form input[type="submit"]:hover,
#review_form .submit button:hover {
    background: linear-gradient(135deg, #5a1a2e 0%, #3f111c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(63, 17, 28, 0.3);
}

/* Mensaje de login para reseñas */
.woocommerce-verification-required,
.comment-reply-title small {
    display: none;
}

/* Alerta personalizada para login */
.review-login-alert {
    background: linear-gradient(135deg, #f8f5f9 0%, #fff 100%);
    border: 2px solid #3f111c;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.review-login-alert i {
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 1rem;
}

.review-login-alert h4 {
    color: #3f111c;
    margin-bottom: 1rem;
}

.review-login-alert p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Contador de reseñas */
.woocommerce-Reviews-title {
    color: #3f111c;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.woocommerce-review__published-date {
    color: #999;
    font-size: 0.85rem;
}

/* Sin reseñas aún */
.woocommerce-noreviews {
    background: #f8f5f9;
    border-left: 4px solid #3f111c;
    padding: 1.5rem;
    border-radius: 8px;
    color: #666;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    #review_form_wrapper {
        padding: 1.5rem 1rem;
    }
    
    .comment-list .comment {
        padding: 1rem;
    }
    
    .comment-list .comment img.avatar {
        width: 50px !important;
        height: 50px !important;
    }
    
    #review_form input[type="submit"],
    #review_form .submit button {
        width: 100%;
    }
}

/* Animación de aparición */
@keyframes fadeInReview {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-list .comment {
    animation: fadeInReview 0.5s ease;
}

/* Verificado badge (opcional para futuro) */
.verified-buyer {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    text-transform: uppercase;
}

.verified-buyer i {
    margin-right: 0.25rem;
}
