/* --- SEASONAL & HOLIDAY THEME OVERRIDES --- */

/* 1. Halloween (Custom Palette: Blood Red, Fiery Orange, Burnt Brown & Deep Black) */
html.theme-halloween, body.theme-halloween {
    background-color: #080605 !important;
    background-image: none !important;
    color: #FFFFFF !important;
}
body.theme-halloween .card, body.theme-halloween nav, body.theme-halloween .navbar {
    background-color: #301309 !important;
    border-color: #8B0A08 !important;
    color: #FFC247 !important;
}
body.theme-halloween h1, body.theme-halloween h2, body.theme-halloween h3, body.theme-halloween h4 {
    color: #FF4500 !important;
}

/* 2. Christmas Theme Colors Restored (Pine Forest & Deep Green Accents) */
html.theme-christmas, body.theme-christmas {
    background-color: #021a14 !important;
    background-image: none !important;
    color: #f0fdf4 !important;
}
body.theme-christmas .card, body.theme-christmas nav, body.theme-christmas .navbar {
    background-color: #052e22 !important;
    border-color: #065f46 !important;
}
body.theme-christmas h1, body.theme-christmas h2, body.theme-christmas h3, body.theme-christmas h4 {
    color: #f0fdf4 !important;
}

/* 3. Easter (Soft Pastels: Mint, Pink, Sky Blue) */
html.theme-easter, body.theme-easter {
    background-color: #f4f8f6 !important;
    background-image: none !important;
    color: #2d3748 !important;
}
body.theme-easter .card, body.theme-easter nav, body.theme-easter .navbar {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #2d3748 !important;
}
body.theme-easter h1, body.theme-easter h2, body.theme-easter h3, body.theme-easter h4 {
    color: #9f7aea !important; /* Soft pastel lavender */
}

/* 4. Valentine's Day (Crimson & Soft Rose) */
html.theme-valentines, body.theme-valentines {
    background-color: #1a050d !important;
    background-image: none !important;
    color: #ffe4e6 !important;
}
body.theme-valentines .card, body.theme-valentines nav, body.theme-valentines .navbar {
    background-color: #2c0b18 !important;
    border-color: #9f1239 !important;
}

/* 5. St. Patrick's Day (Emerald & Irish Gold) */
html.theme-stpatricks, body.theme-stpatricks {
    background-color: #021c0f !important;
    background-image: none !important;
    color: #ecfdf5 !important;
}
body.theme-stpatricks .card, body.theme-stpatricks nav, body.theme-stpatricks .navbar {
    background-color: #064e3b !important;
    border-color: #059669 !important;
}

/* 6. Pride Month (Vibrant Rainbow Accent Dark Mode) */
html.theme-pride, body.theme-pride {
    background-color: #0f0a1a !important;
    background-image: none !important;
    color: #f3e8ff !important;
}
body.theme-pride .card, body.theme-pride nav, body.theme-pride .navbar {
    background-color: #1e1335 !important;
    border-color: #ec4899 !important;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.15) !important;
}

/* 7. Bonfire Night (Deep Night Sky & Fiery Sparks) */
html.theme-bonfire, body.theme-bonfire {
    background-color: #080711 !important;
    background-image: none !important;
    color: #ffedd5 !important;
}
body.theme-bonfire .card, body.theme-bonfire nav, body.theme-bonfire .navbar {
    background-color: #141124 !important;
    border-color: #f97316 !important;
}

/* 8. Veterans Day (Military Navy & Gold) */
html.theme-veterans, body.theme-veterans {
    background-color: #090e17 !important;
    background-image: none !important;
    color: #f8fafc !important;
}
body.theme-veterans .card, body.theme-veterans nav, body.theme-veterans .navbar {
    background-color: #131c2e !important;
    border-color: #d97706 !important;
}

/* 9. New Year's (Midnight Black & Champagne Gold) */
html.theme-newyears, body.theme-newyears {
    background-color: #050505 !important;
    background-image: none !important;
    color: #fef08a !important;
}
body.theme-newyears .card, body.theme-newyears nav, body.theme-newyears .navbar {
    background-color: #121212 !important;
    border-color: #eab308 !important;
}


/* --- BACKGROUND VIDEO THEME ADAPTATIONS --- */

#bgVideo {
    filter: brightness(0.4);
    transition: filter 0.5s ease;
}

/* Halloween video filter dialed to match your logo's fiery orange and deep contrast */
body.theme-halloween #bgVideo {
    filter: sepia(80%) hue-rotate(-15deg) saturate(160%) brightness(0.3) contrast(120%) !important;
}

/* Christmas video filter completely removed so the video plays crystal clear */
body.theme-christmas #bgVideo {
    filter: none !important;
}

body.theme-easter #bgVideo {
    filter: brightness(0.5) saturate(110%) hue-rotate(180deg) !important;
}

body.theme-valentines #bgVideo {
    filter: sepia(70%) hue-rotate(300deg) saturate(150%) brightness(0.35) !important;
}

body.theme-stpatricks #bgVideo {
    filter: sepia(50%) hue-rotate(70deg) saturate(160%) brightness(0.35) !important;
}

body.theme-newyears #bgVideo {
    filter: sepia(30%) hue-rotate(20deg) saturate(150%) brightness(0.4) !important;
}


/* --- FULL PAGE THEME ATMOSPHERE OVERLAYS --- */

body.theme-halloween::before,
body.theme-christmas::before,
body.theme-easter::before,
body.theme-valentines::before,
body.theme-stpatricks::before,
body.theme-newyears::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: overlay;
    transition: background 0.5s ease;
}

/* Halloween: Fiery Orange (#FF4500) & Golden Orange (#FF8C00) atmosphere wash */
body.theme-halloween::before {
    background: rgba(255, 69, 0, 0.3);
}

/* Christmas atmosphere overlay removed so it doesn't tint the background video */
body.theme-christmas::before {
    background: transparent !important;
}

body.theme-easter::before {
    background: rgba(159, 122, 234, 0.2);
}

body.theme-valentines::before {
    background: rgba(225, 29, 72, 0.25);
}

body.theme-stpatricks::before {
    background: rgba(5, 150, 105, 0.25);
}

body.theme-newyears::before {
    background: rgba(234, 179, 8, 0.2);
}