/* walls/static/walls/css/encyclopedia_rating.css - Encyclopedia Star Rating Styles */

/* Rating Container */
.encyclopedia-rating-container {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 8px;
    align-items: center;
}

.rating-star {
    font-size: 32px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.rating-star:hover {
    transform: scale(1.2);
}

.rating-star.active {
    color: #fbbf24;
    text-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

.rating-star.inactive {
    color: #e0e0e0;
}

/* Rating Info */
.rating-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rating-average {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.rating-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.rating-max {
    font-size: 1.2rem;
    color: #7f8c8d;
}

.rating-count {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Rating Distribution */
.rating-distribution {
    width: 100%;
    margin-top: 20px;
}

.rating-distribution-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.rating-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.rating-bar-label {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 80px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.rating-bar-label i {
    color: #fbbf24;
    font-size: 14px;
}

.rating-bar-wrapper {
    flex: 1;
    height: 24px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.rating-bar {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 12px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
}

.rating-bar-count {
    min-width: 40px;
    text-align: right;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Compact Rating Display (for cards) */
.rating-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff3cd;
    border-radius: 20px;
    font-size: 0.9rem;
}

.rating-compact i {
    color: #fbbf24;
    font-size: 16px;
}

.rating-compact-value {
    font-weight: 600;
    color: #2c3e50;
}

.rating-compact-count {
    color: #7f8c8d;
    font-size: 0.85rem;
}

/* Rating Prompt */
.rating-prompt {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 15px;
}

.rating-prompt-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.rating-prompt-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* User Rating Display */
.user-rating-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    border-radius: 8px;
    margin-top: 15px;
}

.user-rating-display i {
    color: #4caf50;
    font-size: 20px;
}

.user-rating-text {
    font-size: 0.95rem;
    color: #2c3e50;
}

.user-rating-stars {
    display: flex;
    gap: 4px;
}

.user-rating-stars i {
    color: #fbbf24;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .encyclopedia-rating-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rating-star {
        font-size: 28px;
    }
    
    .rating-value {
        font-size: 1.5rem;
    }
    
    .rating-bar-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .rating-bar-label {
        min-width: auto;
    }
    
    .rating-bar-wrapper {
        width: 100%;
    }
}

/* Animation for rating change */
@keyframes ratingPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.rating-star.just-rated {
    animation: ratingPulse 0.3s ease;
}

/* Hover effect for rating prompt */
.rating-prompt:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}
