/**
 * Star Rating Component Styles
 * Reusable star rating styles for game ratings across the site
 */

/* Base star rating container */
.starrate {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: #6c757d;
}

.starrate span.ctrl { 
    position: absolute; 
    z-index: 2;
    width: 100%;
    height: 100%;
}

.starrate.saved { 
    color: #495057;
}

.starrate:hover { 
    color: #007bff;
} 

.starrate.saved:hover { 
    color: #fd7e14;
}

/* Individual star styling */
.starrate .star {
    color: inherit;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
    margin-right: 1px;
    position: relative;
    font-size: 24px;
}

.starrate .cont {
    white-space: nowrap;
    display: inline-block;
}

/* Star states */
.starrate .star.half-star {
    background: linear-gradient(90deg, #fbbf24 50%, #d1d5db 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.starrate .star.full-star {
    color: #fbbf24;
}

.starrate .star.empty-star {
    color: #d1d5db;
}

/* Animations */
@keyframes starShimmer {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(251, 191, 36, 0));
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(251, 191, 36, 0));
    }
}

@keyframes starPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.starrate.rating-animation .star.full-star,
.starrate.rating-animation .star.half-star {
    animation: starShimmer 0.6s ease-out;
}

.starrate.unrating-animation .star {
    animation: starPulse 0.4s ease-out;
}

