/* 
 * Fileify Mod: Christmas Theme (Ultimate Winter Edition)
 * Type: CSS
 * Description: Icy blue text, candy apple red accents, frosted window edges, and parallax CSS snowfall. 
 */
/* --- GPU WARNING BANNER --- */
@keyframes slide-warning-xmas {
    0%   { transform: translate(-50%, -100%); opacity: 0; }
    10%  { transform: translate(-50%, 20px); opacity: 1; }
    85%  { transform: translate(-50%, 20px); opacity: 1; }
    100% { transform: translate(-50%, -150%); opacity: 0; visibility: hidden; }
}

html::before {
    content: "❄️ WARNING: Intensive CSS snowfall active. High GPU usage expected.";
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    background-color: #0f3b21 !important; /* Pine green background */
    color: #f0f6fc !important; /* Snowy white text */
    padding: 12px 24px;
    border: 1px solid #d42426 !important; /* Candy apple red border */
    border-radius: 8px;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(212, 36, 38, 0.4);
    z-index: 10000 !important;
    pointer-events: none !important;
    
    /* Slides in, holds for 7 seconds, then permanently vanishes */
    animation: slide-warning-xmas 10s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

:root {
    /* Icy dark blue hues */
    --bg-base: #0b1014 !important;
    --bg-surface: #131b22 !important;
    --bg-element: #1d2833 !important;
    --bg-hover: #263645 !important;
    
    /* Icy blue text */
    --text-main: #a3d8ff !important;
    --text-sub: #7ab4e3 !important;
    
    /* Candy apple red accent */
    --spotify-green: #d42426 !important; 
    
    /* Pine green gradient start */
    --header-gradient-start: #0f3b21 !important; 
}

/* Force EVERY element to use the icy blue text color */
* {
    color: var(--text-main) !important;
}

/* Base Gradient */
.main-content {
    background-image: linear-gradient(to bottom, var(--header-gradient-start) 0%, rgba(19, 27, 34, 0.8) 300px, var(--bg-surface) 500px) !important;
}

/* --- ANIMATED FALLING SNOW --- */
@keyframes snowfall {
    0% {
        background-position: 
            0 0, 0 0, 0 0, 0 0,
            0 0, 0 0, 0 0, 0 0,
            0 0, 0 0, 0 0, 0 0;
    }
    100% {
        /* Moves the layers down at different speeds to create a 3D parallax effect */
        background-position: 
            100px 1000px, 100px 1000px, 100px 1000px, 100px 1000px, /* Large flakes (Fast) */
            75px  700px,  75px  700px,  75px  700px,  75px  700px,  /* Medium flakes (Medium) */
            50px  400px,  50px  400px,  50px  400px,  50px  400px;  /* Small flakes (Slow) */
    }
}

/* The Snow Layer */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none !important;
    z-index: 9998 !important; /* Kept just behind the frost overlay */
    background-image: 
        /* Layer 1 (Large flakes) */
        radial-gradient(circle at 15% 20%, white 2px, transparent 3px),
        radial-gradient(circle at 75% 10%, white 2px, transparent 3px),
        radial-gradient(circle at 45% 60%, white 2px, transparent 3px),
        radial-gradient(circle at 90% 80%, white 2px, transparent 3px),
        /* Layer 2 (Medium flakes) */
        radial-gradient(circle at 30% 40%, rgba(255,255,255,0.8) 1.5px, transparent 2px),
        radial-gradient(circle at 85% 30%, rgba(255,255,255,0.8) 1.5px, transparent 2px),
        radial-gradient(circle at 10% 90%, rgba(255,255,255,0.8) 1.5px, transparent 2px),
        radial-gradient(circle at 60% 70%, rgba(255,255,255,0.8) 1.5px, transparent 2px),
        /* Layer 3 (Small, distant flakes) */
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.5) 1px, transparent 1.5px),
        radial-gradient(circle at 25% 15%, rgba(255,255,255,0.5) 1px, transparent 1.5px),
        radial-gradient(circle at 80% 85%, rgba(255,255,255,0.5) 1px, transparent 1.5px),
        radial-gradient(circle at 5%  55%, rgba(255,255,255,0.5) 1px, transparent 1.5px);
    background-size: 
        500px 500px, 500px 500px, 500px 500px, 500px 500px, /* Layer 1 size */
        350px 350px, 350px 350px, 350px 350px, 350px 350px, /* Layer 2 size */
        200px 200px, 200px 200px, 200px 200px, 200px 200px; /* Layer 3 size */
    animation: snowfall 20s linear infinite;
}

/* --- FROSTED EDGES OVERLAY --- */
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none !important;
    z-index: 9999 !important; /* Stays on top of everything, including snow */
    box-shadow: 
        inset 0 0 150px rgba(163, 216, 255, 0.15),
        inset 0 0 50px rgba(163, 216, 255, 0.2),
        inset 0 0 15px rgba(255, 255, 255, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* UI Interactions */
.music-card:hover, .rec-card:hover {
    background-color: var(--bg-hover) !important;
    box-shadow: 0 4px 15px rgba(163, 216, 255, 0.15) !important;
}

/* App Accents */
.progress-fill, .volume-fill {
    background-color: var(--spotify-green) !important;
}
.player-bar {
    border-top: 1px solid var(--bg-hover) !important;
}
.control-btn.play-pause, .fs-btn.fs-play-pause {
    background-color: var(--spotify-green) !important;
    color: #ffffff !important;
}

/* Full Screen Player */
.now-playing-fullscreen .fs-gradient {
    background: linear-gradient(to top, rgba(11, 16, 20, 1) 0%, rgba(11, 16, 20, 0.85) 45%, transparent 100%) !important;
}
.lyric-line.active-lyric {
    color: #ffd700 !important;
    text-shadow: 0 4px 20px rgba(255, 215, 0, 0.5) !important;
}