/* styles/boosts.css */

/* Simplified Checkpoint System Styles with Green/Gold Color Scheme */

/* Timer Ring Styles with Green/Gold Theme */
.timer-ring {
    fill: none;
    stroke: var(--color-border);
    stroke-width: 3;
}

.timer-wedge {
    fill: none;
    stroke: var(--color-input);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke var(--transition-fast);
}

.timer-wedge.active {
    stroke: var(--color-primary-light); /* Green */
}

.timer-wedge.warning {
    stroke: var(--color-accent);
    /* Gold */
}

.timer-wedge.danger {
    stroke: var(--color-error);
}

/* Checkpoint Meter with Green/Gold Theme - updated for 0-100 scale */
.checkpoint-meter {
    height: 32px;
    background: var(--color-input);
    border-radius: 16px;
    position: relative;
    border: 2px solid var(--color-border);
    overflow: visible;
    flex: 1;
    max-width: 240px;
}

/* Checkpoint Buttons - updated positions for 30/60/100 */
.checkpoint {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-input);
    border: 3px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 11px;
    cursor: default;
    transition: all 0.3s ease;
    z-index: 2;
}

.checkpoint:nth-child(2) {
    left: calc(30% - 16px);
}

.checkpoint:nth-child(3) {
    left: calc(60% - 16px);
}

.checkpoint:nth-child(4) {
    right: -16px;
    left: auto;
}

/* Checkpoint States with Green/Gold Theme */
.checkpoint.reached {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
    /* Green to Gold */
    border-color: var(--color-primary-light);
    color: var(--color-text-inverse);
}

.checkpoint.clickable {
    cursor: pointer;
    transform: translateY(-50%) scale(1.1);
}

.checkpoint.clickable:hover {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 4px 12px rgba(30, 82, 51, 0.4);
    /* Green shadow */
}

.checkpoint.pulsing {
    animation: checkpointPulse 1.5s infinite;
}

.checkpoint.pulsing span {
    animation: textGlow 1.5s infinite;
}

@keyframes checkpointPulse {
    0%, 100% {
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 0 10px rgba(30, 82, 51, 0.4); /* Green glow */
    }
    50% {
        transform: translateY(-50%) scale(1.25);
        box-shadow: 0 0 20px rgba(30, 82, 51, 0.8); /* Stronger green glow */
    }
}

@keyframes textGlow {
    0%, 100% {
        opacity: 0.9;
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    }
}

/* Multiplier Active State with Green Theme */
body.multiplier-active .tile:not(.locked) {
    animation: subtleGlow 2s infinite;
}

@keyframes subtleGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(30, 82, 51, 0.2);
        /* Green glow */
    }
    50% {
        box-shadow: 0 0 10px rgba(30, 82, 51, 0.3);
        /* Stronger green glow */
    }
}

/* Multiplier indicator in score display with Green Theme */
.word-score-display .multiplier-active {
    color: var(--color-primary-light);
    /* Green */
    font-weight: 700;
    padding: 2px 6px;
    background: rgba(30, 82, 51, 0.1);
    /* Light green background */
    border-radius: 4px;
}

/* Queue sliding animations */
.preview-tile {
    transition: none;
    position: relative;
}

.preview-tile.sliding-out {
    animation: slideOut 0.15s ease-out forwards;
}

.preview-tile.sliding-in {
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideOut {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-10px);
        opacity: 0;
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(10px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Meter colors and Vext! animation */
.checkpoint-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%; /* Start at 0 */
    background: #1e5233;
    /* Solid dark green */
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 14px;
}

.checkpoint-fill.golden-flash {
    background: var(--color-accent) !important;
    animation: goldenFlash 0.8s ease-out;
}

body.multiplier-active .checkpoint-fill {
    background: var(--color-accent);
    /* Gold when multiplier active */
}

@keyframes goldenFlash {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
    100% { filter: brightness(1); }
}

/* Vext! celebration text */
.vext-celebration {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 72px;
    font-weight: 900;
    color: var(--color-accent);
    font-family: var(--font-family-display);
    font-style: italic;
    z-index: 10001;
    animation: vextPop 3s ease-out forwards;
    text-shadow: 
        3px 3px 0 rgba(0,0,0,0.2),
        0 0 30px rgba(193, 155, 0, 0.8);
    pointer-events: none;
}

@keyframes vextPop {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-10deg);
        opacity: 0;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.3) rotate(5deg);
        opacity: 1;
    }
    40% {
        transform: translate(-50%, -50%) scale(0.9) rotate(-2deg);
    }
    60% {
        transform: translate(-50%, -50%) scale(1.05) rotate(1deg);
    }
    80% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0;
    }
}

/* BUG FIX: REMOVED CONFLICTING .neglect-indicator STYLES FROM THIS FILE */

/* Updated locked tile styles */
.tile.locked .unlock-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.lock-icon {
    font-size: 20px;
}

.unlock-points {
    font-size: 11px;
    font-weight: bold;
    color: #fff;
}

/* Gold confetti for board reset */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(45deg, var(--color-accent), #f59e0b); /* Gold gradient */
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Board sliding animation */
.tile.sliding {
    transition: all 0.3s ease;
}

/* Spawning animation */
.tile.spawning {
    animation: tileSpawn 0.4s ease-out;
}

@keyframes tileSpawn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-20px);
    }
    50% {
        transform: scale(1.1) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .checkpoint-meter {
        max-width: 200px;
        height: 28px;
    }
    
    .checkpoint {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    
    .checkpoint:nth-child(2) { left: calc(50% - 14px); }
    .checkpoint:nth-child(3) { right: -14px; }
    
    .shuffle-btn {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    .checkpoint-meter {
        max-width: 180px;
    }
}

.meter-checkpoint {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.checkpoint-indicator {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-card);
    border: 2px solid var(--color-border);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: bold;
    color: transparent;
    transition: all 0.3s ease;
}

.checkpoint-indicator.unlocked {
    background: var(--color-accent); /* Gold background */
    border-color: var(--color-accent);
    color: var(--color-text);
}

/* Add this new animation for golden overlay */
@keyframes goldenOverlay {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(193, 155, 0, 0.4) 0%, 
        rgba(245, 158, 11, 0.3) 100%);
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    mix-blend-mode: overlay;
    box-shadow: inset 0 0 20px rgba(193, 155, 0, 0.5);
}

.tile.multiplier-glow::after {
    opacity: 1;
    animation: goldenOverlay 0.5s ease-out;
}