/**
 * Buddhoom Ratings - Estilos del Sistema de Valoraciones
 * 
 * Este archivo contiene todos los estilos necesarios para el sistema de valoraciones
 * incluyendo secciones de valoraciones, formularios, y tarjetas de valoración.
 */

/* =========================================
 * Estilos para section-card y headers
 * ========================================= */

#valoraciones-section .section-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

#valoraciones-section .section-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
}

#valoraciones-section .section-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

#valoraciones-section .section-content {
    padding: 30px;
}

/* =========================================
 * Scrollbar personalizado
 * ========================================= */

.ratings-list-scroll::-webkit-scrollbar {
    width: 8px;
}

.ratings-list-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.ratings-list-scroll::-webkit-scrollbar-thumb {
    background: var(--buddhoom-primary);
    border-radius: 10px;
}

.ratings-list-scroll::-webkit-scrollbar-thumb:hover {
    background: #584A63;
}

/* =========================================
 * Sticky summary en desktop
 * ========================================= */

@media (min-width: 992px) {
    .rating-summary-sticky {
        position: sticky;
        top: 120px;
    }
}

/* =========================================
 * Responsive: Móvil
 * ========================================= */

@media (max-width: 991px) {
    .ratings-list-scroll {
        max-height: none !important;
    }
    
    .rating-summary-sticky {
        margin-bottom: 2rem;
    }
    
    #valoraciones-section .section-header {
        padding: 20px;
    }
    
    #valoraciones-section .section-title {
        font-size: 1.4rem;
    }
    
    #valoraciones-section .section-content {
        padding: 20px;
    }
}

/* =========================================
 * Funcionalidad de estrellas (Rating)
 * ========================================= */

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label.star {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating label.star:hover,
.star-rating label.star:hover ~ label.star,
.star-rating input[type="radio"]:checked ~ label.star {
    color: var(--buddhoom-primary);
}

/* =========================================
 * Cabecera de valoraciones (My Account)
 * ========================================= */

.ratings-manager {
    max-width: 100%;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
}

.ratings-header {
    background: linear-gradient(135deg, #9C8794 0%, #8a7682 100%);
    color: white;
    padding: 30px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(156, 135, 148, 0.3);
}

.ratings-header .header-info h2 {
    margin: 0 0 8px 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.ratings-header .header-info h2 i {
    margin-right: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.ratings-header .header-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.5;
}

/* =========================================
 * Estadísticas de valoraciones
 * ========================================= */

.valoraciones-recibidas-stats .stat-item {
    padding: 20px 10px;
}

.valoraciones-recibidas-stats .stat-number {
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.valoraciones-recibidas-stats .stat-label {
    font-size: 0.9rem;
    font-weight: 500;
}

/* =========================================
 * Responsive: Tablets y móviles
 * ========================================= */

@media (max-width: 768px) {
    .valoraciones-recibidas-stats .stat-number {
        font-size: 2rem !important;
    }
    
    .valoraciones-recibidas-stats .stat-item {
        padding: 15px 5px;
    }
    
    .ratings-header {
        padding: 20px;
    }
    
    .ratings-header .header-info h2 {
        font-size: 1.5rem;
    }
}

/* =========================================
 * Clases adicionales para elementos inline
 * ========================================= */

/* Scroll margin para la sección */
.rating-section-scroll {
    scroll-margin-top: 100px;
}

/* Número de rating grande */
.rating-number-large {
    font-size: 4rem;
    font-weight: 700;
    color: var(--buddhoom-primary);
    line-height: 1;
}

/* Responsive: Número más grande en mobile */
@media (max-width: 991px) {
    .rating-number-large {
        font-size: 5rem !important;
    }
}

@media (max-width: 576px) {
    .rating-number-large {
        font-size: 4.5rem !important;
    }
}

/* Estrellas de rating display */
.rating-stars-display {
    color: var(--buddhoom-primary);
    font-size: 1.8rem;
}

/* Texto de conteo */
.rating-count-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Lista de ratings con scroll */
.ratings-list-scroll {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 15px;
}

/* Título sticky de lista */
.ratings-list-title {
    z-index: 10;
}

/* Nombre de usuario en rating */
.rating-username {
    font-size: 1.1rem;
}

/* Estrellas pequeñas */
.rating-stars-small {
    color: var(--buddhoom-primary);
    font-size: 1.1rem;
}

/* Caja de comentario con borde */
.rating-comment-box {
    border-color: var(--buddhoom-primary) !important;
}

/* Texto de comentario */
.rating-comment-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Iconos con color primario */
.icon-primary {
    color: var(--buddhoom-primary);
}

/* Gap en header content */
.header-content-gap {
    gap: 30px;
}

/* Card con gradiente */
.card-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Título de card de ratings */
.card-title-ratings {
    color: #9C8794 !important;
}

/* Número de estadística grande */
.stat-number-large {
    color: var(--buddhoom-primary);
    font-weight: 700;
}

/* Etiqueta de estadística */
.stat-label-text {
    color: #6c757d;
    font-weight: 500;
}

/* Estrellas con color primario (inline) */
.rating-stars-primary {
    color: var(--buddhoom-primary);
}

/* Borde primario para comentarios */
.comment-border-primary {
    border-color: var(--buddhoom-primary) !important;
}

