/* ==========================================================================
   Grundinställning (Gäller för alla säsongsteman)
   ========================================================================== */
.seasonal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none; /* Släpper igenom alla klick */
    z-index: 99999;       /* Ligger absolut högst upp */
}

.seasonal-overlay::before,
.seasonal-overlay::after {
    content: "";
    position: absolute;
    display: block;
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* ==========================================================================
   🎄 JUL (CSS-Ljusslinga, Jultomte och Julgran)
   ========================================================================== */
.tema-jul {
    box-shadow: inset 0 0 30px rgba(215, 0, 0, 0.2);
}

/* Skapar den svarta kabeln i överkanten */
.tema-jul::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #222;
    background-image: repeating-linear-gradient(90deg, transparent, transparent 20px, #444 20px, #444 40px);
    z-index: 2;
}

/* Skapar de 4 jämnt fördelade och glödande 3D-lamporna */
.tema-jul .slinga-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    display: flex;
    justify-content: space-around;
    padding: 0 5%;
    box-sizing: border-box;
}

.tema-jul .lampa {
    width: 16px;
    height: 22px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    position: relative;
    box-shadow: inset 0px 2px 4px rgba(255,255,255,0.6);
}

/* Lampfästet (sockeln) */
.tema-jul .lampa::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 4px;
    width: 8px;
    height: 5px;
    background: #444;
    border-radius: 2px 2px 0 0;
}

/* Färg 1: Röd med glöd */
.tema-jul .lampa.rod {
    background: #ff4d4d;
    box-shadow: 0 4px 15px #ff0000, inset 0 2px 4px rgba(255,255,255,0.8);
}
/* Färg 2: Grön med glöd */
.tema-jul .lampa.gron {
    background: #6fff6f;
    box-shadow: 0 4px 15px #00ff00, inset 0 2px 4px rgba(255,255,255,0.8);
}
/* Färg 3: Gul med glöd */
.tema-jul .lampa.gul {
    background: #ffffac;
    box-shadow: 0 4px 15px #ffeb3b, inset 0 2px 4px rgba(255,255,255,0.8);
}
/* Färg 4: Blå med glöd */
.tema-jul .lampa.bla {
    background: #8ceffm;
    box-shadow: 0 4px 15px #00bcd4, inset 0 2px 4px rgba(255,255,255,0.8);
}

/* ==========================================================================
   🎅 NY, MODERN OCH PROFFSIG JULTOMTE (Byggd helt med ren CSS-grafik)
   ========================================================================== */
.jultomte { 
    position: absolute;
    bottom: 15px;
    left: 20px;
    width: 120px;
    height: 140px;
    z-index: 99999;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.25)); /* Ger tomten ett snyggt djup mot bakgrunden */
}

/* 1. Det stora, mjuka skägget som bas */
.jultomte::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 100px;
    height: 110px;
    background: #ffffff;
    border-radius: 50% 50% 50% 50% / 40% 40% 70% 70%;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.05);
}

/* 2. Tomtens ansikte och hudfärg */
.jultomte::after {
    content: "";
    position: absolute;
    top: 45px;
    left: 25px;
    width: 70px;
    height: 50px;
    background: #ffd1b3; /* Mjuk hudfärg */
    border-radius: 50%;
    box-shadow: inset 0 -5px 10px rgba(215, 120, 80, 0.2);
}

/* 3. Tomteluvan (Den röda tratten) */
.jultomte-luva {
    position: absolute;
    top: 5px;
    left: 20px;
    width: 80px;
    height: 55px;
    background: #e53935; /* Klassisk tomteröd */
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* 4. Den vita fluffiga bollen på luvan */
.jultomte-luva::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 32px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 5. Det vita pälsbandet längst ner på luvan */
.jultomte-luva::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: -5px;
    width: 90px;
    height: 14px;
    background: #ffffff;
    border-radius: 7px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    z-index: 3;
}

/* 6. Ansiktsdetaljer: Ögon, kinder och den glada munnen */
.jultomte-ansikte {
    position: absolute;
    top: 55px;
    left: 25px;
    width: 70px;
    height: 50px;
    z-index: 4;
}

/* Ögonen */
.jultomte-ansikte::before,
.jultomte-ansikte::after {
    content: "";
    position: absolute;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #2c3e50;
    border-radius: 50%;
}
.jultomte-ansikte::before { left: 18px; }
.jultomte-ansikte::after { right: 18px; }

/* 7. Den runda, mysiga tomtenäsan */
.jultomte-nasa {
    position: absolute;
    top: 70px;
    left: 48px;
    width: 24px;
    height: 18px;
    background: #ff8a80; /* Röd-rosa tomtenäsa */
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* 8. Den glada, leende munnen */
.jultomte-mun {
    position: absolute;
    top: 92px;
    left: 50px;
    width: 20px;
    height: 10px;
    border-bottom: 3px solid #e53935;
    border-radius: 0 0 10px 10px;
    z-index: 5;
}


/* ==========================================================================
   🎁 UPPDATERAD OCH SNYGG JULGRAN (Matchande stil i ren CSS)
   ========================================================================== */
.julgran { 
    position: absolute;
    bottom: 15px;
    right: 20px;
    width: 110px;
    height: 140px;
    z-index: 99999;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

/* Granens tre gröna lager */
.julgran::before {
    content: "";
    position: absolute;
    bottom: 20px;
    left: 5px;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 50px solid #2e7d32;
    filter: drop-shadow(0 -25px 0 #388e3c) drop-shadow(0 -50px 0 #4caf50);
}

/* Den bruna stammen (foten) */
.julgran::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 45px;
    width: 20px;
    height: 22px;
    background: #5d4037;
    border-radius: 4px 4px 0 0;
}


@media (max-width: 768px) {
    .jultomte, .julgran { display: none !important; }
}






/* ==========================================================================
   🐣 PÅSK (Fixade kaninöron för mörkt läge)
   ========================================================================== */
.tema-pask {
    box-shadow: inset 0 0 40px rgba(255, 215, 0, 0.25);
}

.paskhare {
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 100px;
    height: 140px;
    z-index: 99999;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
}

/* Huvudet */
.paskhare::before {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 10px;
    width: 80px;
    height: 80px;
    background: #f5f5f5;
    border-radius: 50%;
    box-shadow: inset 0 -5px 15px rgba(0,0,0,0.05);
    z-index: 2; /* Ligger ovanpå öronens nederkant för att dölja glipan */
}

/* 🛠️ FIXADE ÖRON: Flyttade ner 6px så de fäster djupt i huvudet */
.paskhare-oron {
    position: absolute;
    top: 11px; 
    left: 10px;
    width: 80px;
    height: 60px;
    z-index: 1; /* Ligger bakom huvudet */
}
.paskhare-oron::before,
.paskhare-oron::after {
    content: "";
    position: absolute;
    top: 0;
    width: 22px;
    height: 65px;
    background: #f5f5f5;
    border-radius: 50% 50% 0 0 / 70% 70% 0 0;
    box-shadow: inset 0 10px 0 #fff, inset 0 15px 10px #ffb3ba;
}
.paskhare-oron::before { left: 12px; transform: rotate(-5deg); }
.paskhare-oron::after { right: 12px; transform: rotate(5deg); }

.paskhare-ansikte {
    position: absolute;
    bottom: 15px;
    left: 10px;
    width: 80px;
    height: 40px;
    z-index: 3;
}
.paskhare-ansikte::before,
.paskhare-ansikte::after {
    content: "";
    position: absolute;
    top: 0;
    width: 6px;
    height: 8px;
    background: #2c3e50;
    border-radius: 50%;
}
.paskhare-ansikte::before { left: 22px; }
.paskhare-ansikte::after { right: 22px; }

.paskhare-nasa {
    position: absolute;
    bottom: 16px;
    left: 46px;
    width: 8px;
    height: 6px;
    background: #ffb3ba;
    border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
    z-index: 4;
}

.paskagg {
    position: absolute;
    bottom: 15px;
    right: 25px;
    width: 90px;
    height: 120px;
    z-index: 99999;
    background: #ffdf7a;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
    box-shadow: inset -5px -10px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}
.paskagg::before,
.paskagg::after {
    content: "";
    position: absolute;
    left: -10px;
    width: 110px;
    height: 12px;
    border-radius: 50%;
}
.paskagg::before { top: 35px; border-bottom: 6px dashed #ffb3ba; }
.paskagg::after { bottom: 40px; border-bottom: 6px solid #baffc9; }


/* ==========================================================================
   ☀️ SOMMAR (Helt utan bakgrundssken för att hålla menyer skarpa)
   ========================================================================== */
.tema-sommar {
    /* 🛠️ FIX: Bakgrundsskenet är borttaget så att inga menyer blir suddiga */
    background: transparent !important;
}

/* ☀️ SOLEN (Uppe till vänster) */
.sommarsol {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 90px;
    height: 90px;
    background: #ffd54f; /* Lysande solgul */
    border-radius: 50%;
    z-index: 99999;
    box-shadow: 0 0 30px #ffb300, inset 0 2px 4px #fff;
    animation: solPulsera 4s ease-in-out infinite alternate;
}

/* Solstrålarna bakom solkärnan */
.sommarsol::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: 110px;
    height: 110px;
    background: rgba(255, 213, 79, 0.3);
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    z-index: -1;
    animation: solRotera 12s linear infinite;
}

/* Animationer för att ge solen liv */
@keyframes solPulsera {
    0% { transform: scale(1); box-shadow: 0 0 25px #ffb300; }
    100% { transform: scale(1.05); box-shadow: 0 0 45px #ff8f00; }
}
@keyframes solRotera {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 🛟 BADRINGEN (Nere till höger) */
.badring {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 90px;
    height: 90px;
    z-index: 99999;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
    background-image: conic-gradient(
        #ff4d4d 0deg 45deg, #ffffff 45deg 135deg, 
        #ff4d4d 135deg 225deg, #ffffff 225deg 315deg, 
        #ff4d4d 315deg 360deg
    );
    border-radius: 50%;
    
    /* Denna mask klipper bort en cirkel i mitten så bakgrunden syns igenom */
    -webkit-mask: radial-gradient(circle, transparent 22px, #000 23px);
    mask: radial-gradient(circle, transparent 22px, #000 23px);
}



/* ==========================================================================
   ⛷️ SPORTLOV / VINTER (Kontrastjusterad snögubbe för ljusa sidor)
   ========================================================================== */
.tema-sportlov {
    box-shadow: inset 0 0 40px rgba(180, 230, 255, 0.4);
}

.snogubbe {
    position: absolute;
    bottom: 10px;
    left: 25px;
    width: 100px;
    height: 140px;
    z-index: 99999;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.1));
}

/* 🛠️ FIXAD SNÖGUBBE: Lagt till en supertunn ljusgrå kantlinje för kontrast på vit bakgrund */
.snogubbe::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 15px;
    width: 70px;
    height: 70px;
    background: #ffffff;
    border: 1px solid #e0e0e0; /* Tydlig kant på ljus bakgrund */
    border-radius: 50%;
    box-sizing: border-box;
    box-shadow: inset -4px -6px 12px rgba(0,0,0,0.03);
}

.snogubbe::after {
    content: "";
    position: absolute;
    bottom: 58px;
    left: 25px;
    width: 50px;
    height: 50px;
    background: #ffffff;
    border: 1px solid #e0e0e0; /* Tydlig kant på ljus bakgrund */
    border-radius: 50%;
    box-sizing: border-box;
    box-shadow: inset -3px -4px 8px rgba(0,0,0,0.03);
}

.snogubbe-hatt {
    position: absolute;
    bottom: 100px;
    left: 30px;
    width: 40px;
    height: 25px;
    background: #2c3e50;
    border-radius: 4px 4px 0 0;
    z-index: 3;
}
.snogubbe-hatt::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -8px;
    width: 56px;
    height: 4px;
    background: #2c3e50;
    border-radius: 2px;
}

.snogubbe-ansikte {
    position: absolute;
    bottom: 68px;
    left: 25px;
    width: 50px;
    height: 30px;
    z-index: 4;
}
.snogubbe-ansikte::before,
.snogubbe-ansikte::after {
    content: "";
    position: absolute;
    top: 8px;
    width: 5px;
    height: 5px;
    background: #333;
    border-radius: 50%;
}
.snogubbe-ansikte::before { left: 14px; }
.snogubbe-ansikte::after { right: 14px; }

.snogubbe-nasa {
    position: absolute;
    bottom: 78px;
    left: 46px;
    width: 14px;
    height: 6px;
    background: #ff9800;
    border-radius: 0 50% 50% 0;
    z-index: 5;
}

.isberg {
    position: absolute;
    bottom: 0;
    right: 15px;
    width: 130px;
    height: 100px;
    z-index: 99999;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.1));
}
.isberg::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 55px solid transparent;
    border-right: 55px solid transparent;
    border-bottom: 90px solid #b2ebf2;
}
.isberg::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: -10px;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 65px solid #80deea;
}

@media (max-width: 768px) {
    .snogubbe, .isberg, .sommarsol, .badring, .paskhare, .paskagg { display: none !important; }
}


/* ==========================================================================
   💡 EFFEKT: BLINKANDE OCH GLÖDANDE JUL-LAMPOR
   ========================================================================== */

/* Grupp 1 (Röd och Gul): Blinkar i en takt */
.tema-jul .lampa.rod,
.tema-jul .lampa.gul {
    animation: julBlinkGrupp1 2s infinite alternate ease-in-out;
}

/* Grupp 2 (Grön och Blå): Blinkar i otakt med Grupp 1 */
.tema-jul .lampa.gron,
.tema-jul .lampa.bla {
    animation: julBlinkGrupp2 2s infinite alternate ease-in-out;
}

/* Animation för Röd och Gul lampa (Glow och Pulsering) */
@keyframes julBlinkGrupp1 {
    0% {
        filter: brightness(1.3) drop-shadow(0 0 15px currentColor);
        opacity: 1;
    }
    100% {
        filter: brightness(0.6) drop-shadow(0 0 2px rgba(0,0,0,0.2));
        opacity: 0.8;
    }
}

/* Animation för Grön och Blå lampa (Motsatt flöde mot Grupp 1) */
@keyframes julBlinkGrupp2 {
    0% {
        filter: brightness(0.6) drop-shadow(0 0 2px rgba(0,0,0,0.2));
        opacity: 0.8;
    }
    100% {
        filter: brightness(1.3) drop-shadow(0 0 15px currentColor);
        opacity: 1;
    }
}
