/* Christmas theme: loaded after style.css when private/theme.php returns 'christmas' */

:root {
    --xmas-red: #d6283a;
    --xmas-gold: #ffd27a;
    --xmas-ice: #bfe3ff;
}

/* Backgrounds */
.hero-section,
.page-cadastro, .page-download, .page-tutorial, .page-news, .page-info,
.page-rankings, .page-store, .page-panel, .page-rules {
    background-image: url('../../img/theme/christmas-bg.jpg');
    background-image: image-set(url('../../img/theme/christmas-bg.webp') type('image/webp'), url('../../img/theme/christmas-bg.jpg') type('image/jpeg'));
    background-position: center center;
}
.store-bg-overlay {
    background: linear-gradient(rgba(10, 14, 28, 0.86), rgba(10, 14, 28, 0.93)), url('../../img/theme/christmas-bg.jpg');
    background-size: cover;
    background-position: center;
}
@media (max-width: 900px) {
    .hero-section {
        background-image: url('../../img/theme/christmas-bg-mobile.jpg');
        background-image: image-set(url('../../img/theme/christmas-bg-mobile.webp') type('image/webp'), url('../../img/theme/christmas-bg-mobile.jpg') type('image/jpeg'));
        background-position: center top;
    }
}

/* Hero: cold night vignette that fades into the page below */
.hero-section { overflow: hidden; }
.hero-section .hero-overlay {
    background:
        radial-gradient(ellipse at 50% 38%, rgba(0,0,0,0) 0%, rgba(6,10,24,0.15) 50%, rgba(6,10,24,0.5) 100%),
        linear-gradient(180deg, rgba(6,10,24,0.28) 0%, rgba(6,10,24,0) 25%, rgba(6,10,24,0) 75%, #0f1115 100%);
}

/* Falling snow: two tiled layers (small/fast and big/slow) */
.hero-section::after,
.hero-section .hero-overlay::after {
    content: '';
    position: absolute; inset: -10% 0 0 0; pointer-events: none;
    background-repeat: repeat;
}
.hero-section::after {
    z-index: 1;
    background-image:
        radial-gradient(1.5px 1.5px at 20px 30px, rgba(255,255,255,0.95), transparent),
        radial-gradient(1.5px 1.5px at 80px 120px, rgba(255,255,255,0.85), transparent),
        radial-gradient(2px 2px at 150px 60px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1.5px 1.5px at 190px 170px, rgba(220,240,255,0.85), transparent),
        radial-gradient(1px 1px at 110px 200px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 50px 160px, rgba(255,255,255,0.75), transparent);
    background-size: 220px 220px;
    animation: xmasSnowSmall 14s linear infinite;
    opacity: 0.9;
}
.hero-section .hero-overlay::after {
    background-image:
        radial-gradient(3px 3px at 40px 50px, rgba(255,255,255,0.9), transparent),
        radial-gradient(4px 4px at 200px 140px, rgba(255,255,255,0.75), transparent),
        radial-gradient(3px 3px at 300px 260px, rgba(230,245,255,0.85), transparent),
        radial-gradient(3.5px 3.5px at 120px 300px, rgba(255,255,255,0.7), transparent);
    background-size: 360px 360px;
    filter: blur(0.6px);
    animation: xmasSnowBig 22s linear infinite;
}
@keyframes xmasSnowSmall { from { background-position: 0 0; } to { background-position: 60px 220px; } }
@keyframes xmasSnowBig { from { background-position: 0 0; } to { background-position: -90px 360px; } }

/* Logo: cool moonlight halo + gold rim + soft twinkle like tree lights */
.hero-section .logo-container { position: relative; }
.hero-section .logo-container::before {
    content: '';
    position: absolute; left: 50%; top: 52%; z-index: -1;
    width: 120%; height: 140%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(190,225,255,0.30) 0%, rgba(214,40,58,0.12) 40%, rgba(0,0,0,0) 68%);
    filter: blur(8px);
    animation: xmasHalo 5s ease-in-out infinite;
    pointer-events: none;
}
.hero-section .main-logo {
    filter:
        drop-shadow(0 0 2px rgba(255,236,190,0.9))
        drop-shadow(0 0 16px rgba(190,225,255,0.55))
        drop-shadow(0 0 40px rgba(214,40,58,0.3))
        drop-shadow(0 6px 14px rgba(0,0,0,0.9));
    animation: xmasTwinkle 6s ease-in-out infinite;
}
@keyframes xmasHalo {
    0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}
@keyframes xmasTwinkle {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(255,236,190,0.9)) drop-shadow(0 0 16px rgba(190,225,255,0.55)) drop-shadow(0 0 40px rgba(214,40,58,0.3)) drop-shadow(0 6px 14px rgba(0,0,0,0.9)); }
    30% { filter: drop-shadow(0 0 3px rgba(255,236,190,1)) drop-shadow(0 0 22px rgba(190,225,255,0.75)) drop-shadow(0 0 46px rgba(214,40,58,0.4)) drop-shadow(0 6px 14px rgba(0,0,0,0.9)); }
    34% { filter: drop-shadow(0 0 2px rgba(255,236,190,0.8)) drop-shadow(0 0 13px rgba(190,225,255,0.45)) drop-shadow(0 0 34px rgba(214,40,58,0.25)) drop-shadow(0 6px 14px rgba(0,0,0,0.9)); }
    70% { filter: drop-shadow(0 0 3px rgba(255,236,190,1)) drop-shadow(0 0 20px rgba(190,225,255,0.7)) drop-shadow(0 0 44px rgba(214,40,58,0.38)) drop-shadow(0 6px 14px rgba(0,0,0,0.9)); }
}

/* Hero texts stay readable over the bright image */
.hero-section .hero-subtitle { color: var(--xmas-gold) !important; text-shadow: 0 0 12px rgba(214,40,58,0.55), 2px 2px 4px #000 !important; }
.hero-section .hero-desc { color: #e8eef7 !important; }

/* Header logo with a frosty glow */
.nav-logo-img { filter: drop-shadow(0 0 8px rgba(190,225,255,0.5)); }

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    .hero-section::after, .hero-section .hero-overlay::after,
    .hero-section .logo-container::before, .hero-section .main-logo { animation: none; }
}

/* Inner pages: lighter overlay so the theme shows behind the content (still dark enough to read) */
.page-cadastro::before, .page-download::before, .page-tutorial::before, .page-news::before,
.page-info::before, .page-rankings::before, .page-store::before, .page-rules::before {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(190,225,255,0.10) 0%, rgba(0,0,0,0) 55%),
        linear-gradient(180deg, rgba(10,13,24,0.80) 0%, rgba(10,13,24,0.88) 35%, rgba(10,13,24,0.93) 100%);
}

/* Phones: no big logo; taller hero with texts and buttons at the bottom so the art shows on top */
@media (max-width: 768px) {
    .hero-section .logo-container { display: none; }
    .hero-section {
        min-height: 88vh; min-height: 88svh;
        align-items: flex-end;
        padding: 100px 0 40px 0;
    }
}
