/**
 * themes.css
 *
 * Comprehensive theme styles for The Kindness Mob
 * All seasonal and holiday theme animations, backgrounds, and special elements.
 */

/* ============================================================================
   BASE STYLES
   ============================================================================ */

.seasonal-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.seasonal-emoji {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    pointer-events: none;
    will-change: transform;
    user-select: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .seasonal-emoji {
        font-size: 1.5rem;
        opacity: 0.12;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .seasonal-emoji,
    .seasonal-background::before,
    .seasonal-background::after,
    .special-element {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================================================
   SEASONAL THEME OVERLAYS
   ============================================================================ */

/* Spring overlay effects */
.theme-spring::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 40%, rgba(255, 182, 193, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(255, 192, 203, 0.12) 0%, transparent 50%);
    animation: spring-bloom 30s ease-in-out infinite;
}

/* Summer overlay effects */
.theme-summer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(255, 140, 0, 0.15) 0%, transparent 40%);
    animation: summer-shimmer 20s ease-in-out infinite;
}

/* Fall/Autumn overlay effects */
.theme-fall::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 30%, rgba(218, 165, 32, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(139, 69, 19, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 140, 0, 0.1) 0%, transparent 50%);
    animation: autumn-glow 25s ease-in-out infinite;
}

/* Winter overlay effects */
.theme-winter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(173, 216, 230, 0.05) 0%, transparent 50%);
    animation: winter-sparkle 35s ease-in-out infinite;
}

/* ============================================================================
   HOLIDAY THEME OVERLAYS
   ============================================================================ */

/* Halloween overlay */
.theme-halloween::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 50%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(75, 0, 130, 0.12) 0%, transparent 50%);
    animation: spooky-pulse 8s ease-in-out infinite;
}

/* Thanksgiving harvest scene */
.scene-harvest {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><rect fill="%238b4513" width="1920" height="1080"/></svg>');
    background-size: cover;
}

/* Christmas landscape scene */
.scene-christmas-landscape {
    background: linear-gradient(to bottom, #0d1b2a 0%, #1b263b 40%, #e0f7fa 100%);
}

.scene-christmas-landscape::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), white);
    border-radius: 50% 50% 0 0 / 20% 20% 0 0;
}

/* Hanukkah fireplace scene */
.scene-hanukkah-fireplace {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Cozy winter fireplace */
.scene-cozy-fireplace {
    background: linear-gradient(135deg, #2c1810 0%, #4a2511 50%, #6b3619 100%);
}

/* ============================================================================
   BACKGROUND ANIMATIONS
   ============================================================================ */

@keyframes spring-bloom {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes summer-shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes autumn-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes winter-sparkle {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.9; filter: brightness(1.1); }
}

@keyframes spooky-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

@keyframes heart-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes diwali-glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

@keyframes fortune-shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

@keyframes birthday-celebration {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(30deg); }
}

/* ============================================================================
   FLOATING ELEMENT ANIMATIONS
   ============================================================================ */

/* Gentle floating */
@keyframes float-gentle {
    0% {
        transform: translateY(-100px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.2; }
    90% { opacity: 0.2; }
    100% {
        transform: translateY(calc(100vh + 100px)) translateX(20px) rotate(180deg);
        opacity: 0;
    }
}

/* Drift left */
@keyframes drift-left {
    0% {
        transform: translateY(-100px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.2; }
    90% { opacity: 0.2; }
    100% {
        transform: translateY(calc(100vh + 100px)) translateX(-100px) rotate(-180deg);
        opacity: 0;
    }
}

/* Drift right */
@keyframes drift-right {
    0% {
        transform: translateY(-100px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.2; }
    90% { opacity: 0.2; }
    100% {
        transform: translateY(calc(100vh + 100px)) translateX(100px) rotate(180deg);
        opacity: 0;
    }
}

/* Wave motion */
@keyframes float-wave {
    0% {
        transform: translateY(-100px) translateX(0);
        opacity: 0;
    }
    10% { opacity: 0.25; }
    25% { transform: translateY(25vh) translateX(30px); }
    50% { transform: translateY(50vh) translateX(-30px); }
    75% { transform: translateY(75vh) translateX(30px); }
    90% { opacity: 0.25; }
    100% {
        transform: translateY(calc(100vh + 100px)) translateX(-20px);
        opacity: 0;
    }
}

/* Lazy drift */
@keyframes drift-lazy {
    0% {
        transform: translateY(-100px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% {
        transform: translateY(calc(100vh + 100px)) translateX(50px) rotate(90deg);
        opacity: 0;
    }
}

/* Soft bounce */
@keyframes bounce-soft {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% { opacity: 0.2; }
    20%, 40%, 60%, 80% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    20% { transform: translateY(20vh); }
    40% { transform: translateY(30vh); }
    60% { transform: translateY(55vh); }
    80% { transform: translateY(70vh); }
    90% { opacity: 0.2; }
    100% {
        transform: translateY(calc(100vh + 100px));
        opacity: 0;
    }
}

/* Autumn falling animations (existing) */
@keyframes fall-left {
    0% {
        transform: translateY(-100px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.2; }
    90% { opacity: 0.2; }
    100% {
        transform: translateY(calc(100vh + 100px)) translateX(-80px) rotate(180deg);
        opacity: 0;
    }
}

@keyframes fall-right {
    0% {
        transform: translateY(-100px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.2; }
    90% { opacity: 0.2; }
    100% {
        transform: translateY(calc(100vh + 100px)) translateX(80px) rotate(-180deg);
        opacity: 0;
    }
}

@keyframes fall-zigzag {
    0% {
        transform: translateY(-100px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.2; }
    25% {
        transform: translateY(25vh) translateX(-40px) rotate(45deg);
    }
    50% {
        transform: translateY(50vh) translateX(40px) rotate(90deg);
    }
    75% {
        transform: translateY(75vh) translateX(-40px) rotate(135deg);
    }
    90% { opacity: 0.2; }
    100% {
        transform: translateY(calc(100vh + 100px)) translateX(20px) rotate(180deg);
        opacity: 0;
    }
}

/* Snow fall */
@keyframes snow-fall {
    0% {
        transform: translateY(-100px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% {
        transform: translateY(calc(100vh + 100px)) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* Diagonal float animations (Halloween) */
@keyframes float-diagonal-1 {
    0% {
        transform: translate(0, -100px) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.25; }
    90% { opacity: 0.25; }
    100% {
        transform: translate(-100px, calc(100vh + 100px)) rotate(-180deg);
        opacity: 0;
    }
}

@keyframes float-diagonal-2 {
    0% {
        transform: translate(0, -100px) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.25; }
    90% { opacity: 0.25; }
    100% {
        transform: translate(100px, calc(100vh + 100px)) rotate(180deg);
        opacity: 0;
    }
}

/* Valentine's hearts */
@keyframes heart-float {
    0% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
    10% { opacity: 0.6; }
    50% { transform: translateY(50vh) scale(1.2); }
    90% { opacity: 0.6; }
    100% {
        transform: translateY(calc(100vh + 100px)) scale(1);
        opacity: 0;
    }
}

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

@keyframes gentle-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

/* Easter */
@keyframes egg-wobble {
    0%, 100% {
        transform: translateY(calc(100vh + 100px)) rotate(0deg);
    }
    25% { transform: translateY(25vh) rotate(-5deg); }
    75% { transform: translateY(75vh) rotate(5deg); }
}

@keyframes bunny-hop {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

/* Fireworks */
@keyframes fireworks-burst {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(3) rotate(360deg);
        opacity: 0;
    }
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(1080deg);
        opacity: 0;
    }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

/* Diwali */
@keyframes lamp-glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
}

@keyframes sparkle-burst {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* Lunar New Year */
@keyframes lantern-rise {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

@keyframes dragon-dance {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* St. Patrick's Day */
@keyframes rainbow-arc {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: translateY(50vh) rotate(180deg);
        opacity: 0.4;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(360deg);
        opacity: 0;
    }
}

@keyframes coin-spin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(1080deg); }
}

/* Thanksgiving */
@keyframes turkey-walk {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(calc(100vw + 100px)); }
}

/* Birthday */
@keyframes balloon-float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% {
        transform: translateY(-100px) translateX(30px);
        opacity: 0;
    }
}

/* Hanukkah */
@keyframes candle-flicker {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.95; filter: brightness(1.2); }
}

@keyframes dreidel-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(1080deg); }
}

/* ============================================================================
   HOLIDAY TOGGLE BUTTON STYLES
   ============================================================================ */

.holiday-toggle {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.holiday-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.holiday-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.holiday-toggle-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* ============================================================================
   SPECIAL ELEMENTS (Placeholders for future implementation)
   ============================================================================ */

.special-element {
    position: absolute;
    pointer-events: none;
    z-index: 10;
}

.christmas-tree {
    /* TODO: Christmas tree styles */
}

.christmas-lights {
    /* TODO: Blinking lights styles */
}

.icicles {
    /* TODO: Icicle styles */
}

.presents {
    /* TODO: Present styles */
}

.menorah {
    /* TODO: Menorah styles */
}

.dreidel {
    /* TODO: Dreidel styles */
}

.firework {
    /* TODO: Firework styles */
}

.hidden-egg {
    /* TODO: Hidden egg styles */
}

.oil-lamp {
    /* TODO: Oil lamp styles */
}

.lantern {
    /* TODO: Lantern styles */
}

.dragon {
    /* TODO: Dragon styles */
}

.turkey {
    /* TODO: Turkey styles */
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .seasonal-emoji {
        opacity: 0.3;
    }

    .holiday-toggle-btn {
        border-width: 3px;
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .seasonal-emoji {
        opacity: 0.2;
    }
}

/* Light mode adjustments */
@media (prefers-color-scheme: light) {
    .seasonal-emoji {
        opacity: 0.12;
    }
}

/* ============================================================================
   CHRISTMAS ANIMATIONS
   ============================================================================ */

@keyframes tree-sway {
    0%, 100% {
        transform: translateX(-50%) rotate(0deg);
    }
    50% {
        transform: translateX(-50%) rotate(2deg);
    }
}

@keyframes light-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}
