/* --- Стили для интерактивного Рейтинга --- */

.star-rating {
    display: inline-block;
    font-size: 24px;
    color: gold;
    direction: rtl; /* Размещаем звезды справа налево для удобства CSS */
}

.star-rating i {
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.star-rating i:hover,
.star-rating i:hover ~ i {
    color: #ffcc00; /* Более яркое золото при наведении */
    transform: scale(1.1);
}

/* Стили для отображения рейтинга (уже опубликованные отзывы) */
.star-display i {
    color: gold;
    font-size: 16px;
    margin-right: 2px;
}

/* --- Кастомное модальное окно подтверждения --- */
#confirm-modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#confirm-modal.is-visible {
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-card, #1c1c1c);
    color: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-50px);
    transition: transform 0.3s ease-in-out;
    border: 1px solid #333;
}

#confirm-modal.is-visible .modal-content {
    transform: translateY(0);
}

#confirm-modal-text {
    margin-bottom: 25px;
    font-size: 1.1em;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-buttons .btn {
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
}

/* Настройка стилей для кнопок в модальном окне */
#modal-cancel {
    background: #333;
    border: 1px solid #444;
    color: #ccc;
}
#modal-cancel:hover {
    background: #444;
}
#modal-confirm-link {
    background: #ff5555;
    border: 1px solid #ff5555;
    color: white;
}
#modal-confirm-link:hover {
    background: #e64444;
}