/* Стили для системы рейтингов */

.rating-widget {
    display: flex;
    align-items: center;
    gap: 15px;
    /* padding: 12px 0; */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rating-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.rating-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.rating-high {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    box-shadow: 0 2px 8px rgba(86, 171, 47, 0.3);
}

.rating-high:hover {
    box-shadow: 0 4px 12px rgba(86, 171, 47, 0.4);
}

.rating-medium {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

.rating-medium:hover {
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

.rating-low {
    background: linear-gradient(135deg, #757F9A 0%, #D7DDE8 100%);
    box-shadow: 0 2px 8px rgba(117, 127, 154, 0.3);
}

.rating-low:hover {
    box-shadow: 0 4px 12px rgba(117, 127, 154, 0.4);
}

.rating-value {
    font-size: 24px;
    line-height: 1;
}

.rating-max {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 500;
}

.rating-stars {
    font-size: 14px;
    opacity: 0.7;
    margin-left: 8px;
    letter-spacing: 2px;
}

.rating-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rating-votes {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.rating-votes::after {
    content: ' голосов';
    font-weight: 400;
    font-size: 12px;
    color: #999;
}

.rating-vote {
    display: flex;
    flex-direction: column;
    margin-left: auto;
}

.vote-title {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.vote-stars {
    display: flex;
    gap: 1px;
    cursor: pointer;
}

.vote-stars .star {
    font-size: 24px;
    color: #ddd;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

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

.vote-stars .star.active {
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.vote-feedback {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.vote-feedback.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.vote-feedback.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.rating-voted {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.voted-text {
    font-size: 13px;
    color: #56ab2f;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(86, 171, 47, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(86, 171, 47, 0.3);
}

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

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .rating-widget {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .rating-value {
        font-size: 20px;
    }
    
    .vote-stars .star {
        font-size: 20px;
    }
    
    .rating-vote {
        margin-left: 0;
        width: 100%;
    }
}

