﻿.rating-input {
    display: flex;
    align-items: center;
    gap: 7px;
}

.rating-input__stars {
    display: flex;
    gap: 5px;
}

.rating-star {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.15s ease;
}

.rating-star:focus {
    outline: 2px solid var(--color-indigo-300);
    border-radius: 4px;
}

.rating-icon {
    width: 16px;
    height: 16px;
    font-size: 16px;
    color: var(--color-slate-200);
    transition: color 0.2s ease;
}

.rating-star.active .rating-icon, 
.rating-star:hover .rating-icon,
.rating-star.hovering .rating-icon {
    color: var(--color-rose-500);
}

.rating-star:hover {
    transform: scale(1.15);
}

@media (min-width: 1280px) {
    .rating-icon {
        width: 24px;
        height: 24px;
        font-size: 24px;
    }

    .rating-input {
        gap: 8px;
    }

    .rating-input__stars {
        gap: 5px;
    }
}

.rating-value {
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    color: var(--color-slate-800);
}

@media (min-width: 1280px) {
    .rating-value {
        font-size: 16px;
    }
}

.rating-count {
    font-weight: 400;
    font-size: 12px;
    line-height: 30px;
    color: var(--color-slate-500);
}

@media (min-width: 1280px) {
    .rating-count {
        font-size: 14px;
    }
}

.my-rating .rating-icon {
    color: gold !important;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
}

.sparkle {
    position: relative;
}

    .sparkle::after {
        content: '';
        position: absolute;
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
        animation: sparkle 0.3s ease-out;
    }

@keyframes sparkle {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.rating-value__my {
    margin-left: 10px;
    padding: 2px 8px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    font-size: 0.9em;
    color: #d4a017;
    font-weight: 500;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease;
}
