/* ============================================
   HALLOWEEN THEME STYLES (Active until Oct 31)
   ============================================ */

/* Halloween Container */
#halloween-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* Halloween Music Toggle Button */
#halloween-music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b00 0%, #8b00ff 100%);
    border: 3px solid rgba(255, 107, 0, 0.5);
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.6);
    transition: all 0.3s ease;
    animation: pulse-glow 2s ease-in-out infinite;
}

#halloween-music-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 30px rgba(255, 107, 0, 0.8);
}

#halloween-music-toggle.muted {
    opacity: 0.5;
    background: linear-gradient(135deg, #666 0%, #333 100%);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 20px rgba(255, 107, 0, 0.6); }
    50% { box-shadow: 0 4px 30px rgba(255, 107, 0, 1); }
}

/* Halloween Animated Elements */
.halloween-element {
    position: absolute;
    font-size: 40px;
    pointer-events: none;
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.5));
}

/* Pumpkin falling animation */
.pumpkin {
    animation: fall-spin 8s linear infinite;
}

@keyframes fall-spin {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(360deg);
        opacity: 0;
    }
}

/* Ghost swooping animation */
.ghost {
    animation: swoop 10s ease-in-out infinite;
}

@keyframes swoop {
    0%, 100% {
        transform: translate(-100px, -100px);
        opacity: 0;
    }
    25% {
        transform: translate(20vw, 20vh) rotate(10deg);
        opacity: 0.7;
    }
    50% {
        transform: translate(50vw, 30vh) rotate(-10deg);
        opacity: 0.9;
    }
    75% {
        transform: translate(80vw, 20vh) rotate(10deg);
        opacity: 0.7;
    }
}

/* Bat flying animation */
.bat {
    animation: fly-bat 7s ease-in-out infinite;
}

@keyframes fly-bat {
    0%, 100% {
        transform: translate(100vw, 10vh);
        opacity: 0;
    }
    25% {
        opacity: 0.8;
    }
    50% {
        transform: translate(20vw, 15vh) scaleX(-1);
        opacity: 0.9;
    }
    75% {
        opacity: 0.8;
    }
}

/* Spider crawling down */
.spider {
    animation: crawl-down 12s linear infinite;
}

@keyframes crawl-down {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    50% {
        transform: translateY(40vh) rotate(180deg);
    }
    90% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Thunder flash effect */
@keyframes thunder-flash {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
}

.thunder-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
}

/* Halloween Color Accents */
body.halloween-mode {
    --primary-cyan: #ff6b00;
    --primary-pink: #8b00ff;
}

body.halloween-mode nav,
body.halloween-mode #navbar {
    box-shadow: 0 2px 20px rgba(255, 107, 0, 0.3) !important;
}

body.halloween-mode .gradient-text {
    background: linear-gradient(135deg, #ff6b00 0%, #8b00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.halloween-mode .feature-card,
body.halloween-mode .card {
    border: 1px solid rgba(255, 107, 0, 0.2);
    box-shadow: 0 8px 32px rgba(255, 107, 0, 0.1);
}

body.halloween-mode .feature-card:hover,
body.halloween-mode .card:hover {
    box-shadow: 0 12px 48px rgba(255, 107, 0, 0.3);
    border-color: rgba(255, 107, 0, 0.4);
}
