/* ============================================================
   SPOTLIGHT MAGIC - God's Boon Animation (Enhanced)
   ============================================================ */

/* 🔥 Spotlight Overlay - Fullscreen Video Container */
#spotlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    display: none;
    transition: background 0.8s ease;
}

#spotlight-overlay.active {
    display: block;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.92);
}

/* 🎬 Video Container - Emerges from Button */
#spotlight-video-wrapper {
    position: fixed;
    z-index: 10000;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(230, 126, 34, 0);
    transition: all 1.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

#spotlight-video-wrapper.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    border-radius: 0;
    box-shadow: 0 0 80px rgba(230, 126, 34, 0.15);
}

/* 🎥 Video Element */
#spotlight-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ✨ Enhanced Glow Effect on Button - More Dramatic */
@keyframes spotlightGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(230, 126, 34, 0.2);
        transform: scale(1);
    }
    25% { 
        box-shadow: 0 0 80px rgba(230, 126, 34, 0.8), 0 0 160px rgba(230, 126, 34, 0.3);
        transform: scale(1.05);
    }
    50% { 
        box-shadow: 0 0 50px rgba(230, 126, 34, 0.5), 0 0 100px rgba(230, 126, 34, 0.15);
        transform: scale(1.02);
    }
    75% { 
        box-shadow: 0 0 70px rgba(230, 126, 34, 0.6), 0 0 140px rgba(230, 126, 34, 0.2);
        transform: scale(1.04);
    }
    100% { 
        box-shadow: 0 0 20px rgba(230, 126, 34, 0.2);
        transform: scale(1);
    }
}

.spotlight-glowing {
    animation: spotlightGlow 2.5s ease-in-out infinite;
}

/* ✨ SPARKLE EFFECT - Tiny magical particles */
@keyframes sparkle {
    0% { 
        opacity: 0; 
        transform: scale(0) rotate(0deg);
    }
    50% { 
        opacity: 1; 
        transform: scale(1) rotate(180deg);
    }
    100% { 
        opacity: 0; 
        transform: scale(0) rotate(360deg);
    }
}

.sparkle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    animation: sparkle 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(230, 126, 34, 0.6);
    background: radial-gradient(circle, #f4b942, #e67e22);
}

/* 👆 Tap Hint */
@keyframes pulseHint {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.9; transform: translateX(-50%) scale(1.05); }
}

/* 🎉 Welcome Message */
@keyframes welcomeFadeIn {
    0% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

#spotlight-welcome {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    z-index: 10001;
    display: none;
    text-align: center;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 30px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 90%;
    pointer-events: none;
}

#spotlight-welcome.show {
    display: block;
    animation: welcomeFadeIn 0.8s ease forwards;
}

/* 👆 Tap Hint */
#spotlight-tap-hint {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    z-index: 10001;
    display: none;
    pointer-events: none;
    animation: pulseHint 2s infinite;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 20px;
    border-radius: 40px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 🔊 Sound Hint */
#spotlight-sound-hint {
    position: fixed;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    z-index: 10001;
    display: none;
    cursor: pointer;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 16px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

#spotlight-sound-hint.show {
    display: block !important;
    animation: pulseHint 2s infinite;
}

#spotlight-sound-hint:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* 🎮 Controls Overlay */
#spotlight-controls {
    position: fixed;
    bottom: 40px;
    left: 0;
    right: 0;
    display: none;
    justify-content: center;
    gap: 16px;
    z-index: 10002;
    padding: 0 20px;
}

#spotlight-controls.active {
    display: flex !important;
}

#spotlight-controls .skip-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.3s;
    font-family: inherit;
}

#spotlight-controls .skip-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

#spotlight-controls .upload-btn {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.3s;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.4);
}

#spotlight-controls .upload-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(230, 126, 34, 0.6);
}

/* 📱 Mobile Responsive */
@media (max-width: 700px) {
    #spotlight-welcome {
        font-size: 1rem;
        padding: 10px 20px;
        top: 60px;
    }
    
    #spotlight-controls {
        bottom: 30px;
        gap: 12px;
    }
    
    #spotlight-controls .skip-btn,
    #spotlight-controls .upload-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    #spotlight-tap-hint {
        font-size: 0.65rem;
        bottom: 100px;
        padding: 6px 16px;
    }
    
    #spotlight-sound-hint {
        font-size: 0.65rem;
        bottom: 150px;
        padding: 5px 12px;
    }
}

/* 📱 Extra Small Screens */
@media (max-width: 480px) {
    #spotlight-welcome {
        font-size: 0.85rem;
        padding: 8px 16px;
        top: 50px;
    }
    
    #spotlight-controls {
        gap: 8px;
    }
    
    #spotlight-controls .skip-btn,
    #spotlight-controls .upload-btn {
        padding: 8px 16px;
        font-size: 0.7rem;
    }
}