/**
 * Modern Score Circle Styles
 * File Purpose: Beautiful adaptive score circles with dynamic colors
 * Context: Studio hardware aesthetic with warm amber accents
 */

/* ======================
   MODERN SCORE CIRCLE
   ====================== */

.score-circle {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(
        hsl(var(--score-hue, 199), 60%, 50%) 0deg,
        hsl(var(--score-hue, 199), 60%, 50%) calc(var(--score, 0) * 3.6deg),
        rgba(255, 255, 255, 0.06) calc(var(--score, 0) * 3.6deg),
        rgba(255, 255, 255, 0.06) 360deg
    );
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0.7);
    box-shadow: 
        0 8px 32px hsla(var(--score-hue, 199), 50%, 45%, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.3);
    margin: 10px auto;
}

/* Inner circle */
.score-circle::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--card-bg);
    z-index: 1;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Score text styling */
.score-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: hsl(var(--score-hue, 199), 55%, 55%);
    z-index: 3;
    position: relative;
    transition: all 0.8s ease;
    text-shadow: 0 2px 8px hsla(var(--score-hue, 199), 50%, 45%, 0.2);
    letter-spacing: -0.02em;
}

/* ======================
   REVEAL ANIMATION
   ====================== */

.score-circle.score-revealed {
    opacity: 1;
    transform: scale(1);
}

/* Hover effects */
.score-circle:hover {
    transform: scale(1.05);
    box-shadow: 
        0 12px 40px hsla(var(--score-hue, 199), 50%, 45%, 0.3),
        0 6px 20px rgba(0, 0, 0, 0.2);
}

.score-circle:hover .score-value {
    transform: scale(1.1);
    text-shadow: 0 4px 12px hsla(var(--score-hue, 199), 50%, 45%, 0.35);
}

/* ======================
   RESPONSIVE DESIGN
   ====================== */

@media (max-width: 768px) {
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .score-circle {
        width: 80px;
        height: 80px;
    }
    
    .score-value {
        font-size: 1.2rem;
    }
}

/* ======================
   ACCESSIBILITY
   ====================== */

@media (prefers-reduced-motion: reduce) {
    .score-circle {
        transition: none !important;
    }
    
    .score-circle:hover {
        transform: none !important;
    }
}
