/* halloween.css */
/* This file overrides the default styles for the Halloween event page */

:root {
    --halloween-dark-purple: #1A0A1A;
    --halloween-orange: #FF8C00;
    --halloween-green: #5E6C5A; /* Using the woodland green for a touch of familiarity */
    --halloween-accent: #D4AD6A; /* Gold accent */
}

/* --- Page Body Override --- */
body.halloween-theme {
    background-color: var(--halloween-dark-purple);
    color: var(--light-text);
}

/* --- Splash Screen --- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/Assets/Images/haunted.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10005; /* Kept high to be on top */
    transition: opacity 1s ease-out;
    opacity: 1;
}

#splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-content-wrapper {
    position: relative; /* Ensures button is clickable above the wisps' old container */
    z-index: 10006;
}

.spooky-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--halloween-orange);
    text-shadow: 0 0 10px var(--halloween-dark-purple), 0 0 20px var(--halloween-dark-purple);
    margin-bottom: 20px;
    animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
    from { text-shadow: 0 0 5px var(--halloween-dark-purple), 0 0 10px var(--halloween-dark-purple); }
    to { text-shadow: 0 0 10px var(--halloween-dark-purple), 0 0 20px var(--halloween-dark-purple); }
}

#enter-button {
    padding: 15px 30px;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    background-color: var(--halloween-accent);
    color: var(--halloween-dark-purple);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: bounce-in 1s ease-in-out;
}

#enter-button:hover {
    transform: scale(1.05);
}

@keyframes bounce-in {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

/* --- REVISED: Ghostly Wisps --- */
#wisp-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allows clicks to go through to content below */
    z-index: 10001; /* Sits above page content but below modals/header */
    overflow: hidden;
}

.ghostly-wisp {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.7);
    animation: float linear infinite;
    opacity: 0;
    /* Mobile-specific adjustments */
    will-change: transform;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    50% { opacity: 0.7; }
    100% { transform: translateY(-110vh) translateX(20px); opacity: 0; }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .ghostly-wisp {
        width: 12px;
        height: 12px;
    }
}

.ghostly-wisp:nth-of-type(1) { left: 5%; animation-duration: 15s; animation-delay: -2s; }
.ghostly-wisp:nth-of-type(2) { left: 15%; animation-duration: 12s; animation-delay: -1s; }
.ghostly-wisp:nth-of-type(3) { left: 25%; animation-duration: 18s; animation-delay: -5s; }
.ghostly-wisp:nth-of-type(4) { left: 35%; animation-duration: 10s; animation-delay: -8s; }
.ghostly-wisp:nth-of-type(5) { left: 45%; animation-duration: 20s; animation-delay: -3s; }
.ghostly-wisp:nth-of-type(6) { left: 55%; animation-duration: 14s; animation-delay: -6s; }
.ghostly-wisp:nth-of-type(7) { left: 65%; animation-duration: 11s; animation-delay: -10s; }
.ghostly-wisp:nth-of-type(8) { left: 75%; animation-duration: 16s; animation-delay: -4s; }
.ghostly-wisp:nth-of-type(9) { left: 85%; animation-duration: 13s; animation-delay: -7s; }
.ghostly-wisp:nth-of-type(10) { left: 95%; animation-duration: 19s; animation-delay: -1s; }
.ghostly-wisp:nth-of-type(11) { left: 8%; animation-duration: 13s; animation-delay: -12s; }
.ghostly-wisp:nth-of-type(12) { left: 92%; animation-duration: 17s; animation-delay: -15s; }



/* --- Main Content Theming --- */
.halloween-theme .event-hero {
    min-height: 100vh;
    background: linear-gradient(rgba(26, 10, 26, 0.7), rgba(26, 10, 26, 0.7)), url('/Assets/Images/haunted.jpg') no-repeat center center/cover;
}

.halloween-theme #event-details {
    background-color: var(--halloween-dark-purple);
}

.halloween-theme #event-details .section-header h2 {
    color: var(--halloween-orange);
}

.halloween-theme .info-card.event-info {
    background-color: var(--halloween-green);
    color: var(--light-text);
    text-align: left;
}

.halloween-theme .info-card.event-info h3 {
    color: var(--halloween-accent);
}

.halloween-theme .features-list li::before {
     content: '\f1e2'; /* Font Awesome bat icon */
     font-family: 'Font Awesome 6 Free';
     font-weight: 900;
     color: var(--halloween-orange);
     margin-right: 10px;
}

.halloween-theme #halloween-booking-cta {
    background-color: var(--halloween-green);
}

.halloween-theme #halloween-booking-cta .section-header h2 {
    color: var(--halloween-orange);
}

.halloween-theme .cta-button {
    background-color: var(--halloween-orange);
    color: var(--halloween-dark-purple);
}

.halloween-theme .cta-button:hover {
    background-color: var(--halloween-accent);
}

