/* ============================================ */
/* УЛУЧШЕННЫЕ СТИЛИ ДЛЯ РЕЙТИНГА (ЗВЁЗДЫ)      */
/* ============================================ */

/* Контейнер рейтинга */
.station-rating-container {
    margin: 15px 0 20px;
    text-align: center;
    position: relative;
}

/* Общие стили для звёзд */
.rating-stars-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 0; /* Убираем пробелы между inline-элементами */
    margin-bottom: 5px;
}

.rating-stars-display i {
    font-size: 24px;
    padding: 0 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    color: #e0e0e0; /* Цвет пустых звёзд */
}

/* Звёзды при наведении (превью оценки) */
.rating-stars-display i.hover-active {
    color: #FFD700;
    transform: scale(1.1);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* Полные звёзды (оценка пользователя) */
.rating-stars-display i.user-rated-permanent {
    color: #FFA500;
    text-shadow: 0 0 6px rgba(255, 165, 0, 0.3);
}

/* Полные звёзды (средний рейтинг) */
.rating-stars-display i.fa-star:not(.user-rated-permanent):not(.hover-active) {
    color: #FFC107;
}

/* Половинки звёзд (средний рейтинг) */
.rating-stars-display i.fa-star-half-alt {
    color: #FFC107;
    position: relative;
    overflow: hidden;
}

/* Анимация при клике */
@keyframes star-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.rating-stars-display i.clicked {
    animation: star-bounce 0.4s ease;
}

/* Информация о рейтинге (текст под звёздами) */
.rating-info {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 5px;
    font-weight: 500;
}

/* Уведомления о рейтинге */
#rating-notification-area.notification {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    margin: 5px auto 0;
    max-width: 280px;
}

#rating-notification-area.notification.success {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

#rating-notification-area.notification.error {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    color: #c0392b;
}

#rating-notification-area.notification.warning {
    background-color: rgba(241, 196, 15, 0.1);
    border: 1px solid rgba(241, 196, 15, 0.2);
    color: #d35400;
}

/* Адаптивность */
@media (max-width: 768px) {
    .rating-stars-display i {
        font-size: 22px;
        padding: 0 1px;
    }
    
    .rating-info {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .rating-stars-display i {
        font-size: 20px;
    }
    
    #rating-notification-area.notification {
        font-size: 13px;
        padding: 8px 12px;
    }
}