/* Christmas Theme - Active only in December */
/* This file applies festive styling when the body has class "christmas-theme" */

/* Christmas Color Palette - More vibrant! */
body.christmas-theme {
    --christmas-red: #d42426;
    --christmas-green: #1a8040;
    --christmas-gold: #ffd700;
    --christmas-light-red: #ff4757;
    --christmas-light-green: #26de81;
    --christmas-white: #f8f9fa;
}

/* Festive Accent Bar - Simple and elegant */
body.christmas-theme .accent-bar {
    background: linear-gradient(90deg,
        var(--christmas-red) 0%,
        var(--christmas-green) 50%,
        var(--christmas-gold) 100%
    );
}

@keyframes christmasShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Festive Navigation Bar */
body.christmas-theme .topbar {
    background: linear-gradient(135deg,
        rgba(212, 36, 38, 0.08) 0%,
        rgba(26, 128, 64, 0.08) 50%,
        rgba(255, 215, 0, 0.05) 100%
    );
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

body.christmas-theme .topbar-title {
    color: var(--christmas-gold);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

body.christmas-theme .topbar-links a:hover {
    color: var(--christmas-gold);
}

/* Festive Links and Buttons */
body.christmas-theme a {
    color: var(--christmas-light-red);
}

body.christmas-theme a:hover {
    color: var(--christmas-gold);
}

/* Update gradient elements with Christmas colors */
body.christmas-theme .back-to-blog-button,
body.christmas-theme .card-gradient {
    background: linear-gradient(135deg,
        rgba(196, 30, 58, 0.2) 0%,
        rgba(22, 91, 51, 0.2) 100%
    );
    border-color: rgba(255, 215, 0, 0.3);
}

body.christmas-theme .back-to-blog-button:hover {
    background: linear-gradient(135deg,
        rgba(196, 30, 58, 0.3) 0%,
        rgba(22, 91, 51, 0.3) 100%
    );
    border-color: rgba(255, 215, 0, 0.5);
}

/* Scroll to Top Button - Christmas themed */
body.christmas-theme .scroll-to-top {
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-green));
    border: 2px solid var(--christmas-gold);
}

body.christmas-theme .scroll-to-top:hover {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transform: translateY(-3px);
}

/* Reading Progress Bar - Festive colors */
body.christmas-theme .reading-progress {
    background: linear-gradient(90deg,
        var(--christmas-red),
        var(--christmas-gold),
        var(--christmas-green)
    );
}

/* Snowfall Effect */
body.christmas-theme::before,
body.christmas-theme::after {
    content: "❄";
    position: fixed;
    top: -10%;
    z-index: 9999;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    pointer-events: none;
    animation: snowfall 15s linear infinite;
}

body.christmas-theme::before {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

body.christmas-theme::after {
    left: 70%;
    animation-delay: 5s;
    animation-duration: 18s;
}

@keyframes snowfall {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 110%;
        transform: translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* Additional snowflakes using CSS-only approach */
body.christmas-theme .container::before,
body.christmas-theme .container::after,
body.christmas-theme nav::before {
    content: "❄";
    position: fixed;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 9999;
    animation: snowfall 20s linear infinite;
}

body.christmas-theme .container::before {
    left: 30%;
    top: -10%;
    animation-delay: 2s;
    animation-duration: 16s;
}

body.christmas-theme .container::after {
    left: 85%;
    top: -10%;
    animation-delay: 7s;
    animation-duration: 14s;
    font-size: 1.8rem;
}

body.christmas-theme nav::before {
    left: 50%;
    top: -10%;
    animation-delay: 10s;
    animation-duration: 13s;
    font-size: 1rem;
}

/* Even more snowflakes! */
body.christmas-theme footer::after {
    content: "❄";
    position: fixed;
    left: 20%;
    top: -10%;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.4rem;
    pointer-events: none;
    z-index: 9999;
    animation: snowfall 17s linear infinite;
    animation-delay: 3s;
}

body.christmas-theme .topbar-links::before {
    content: "❄";
    position: fixed;
    left: 60%;
    top: -10%;
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 9999;
    animation: snowfall 19s linear infinite;
    animation-delay: 8s;
}

body.christmas-theme .topbar-links::after {
    content: "❄";
    position: fixed;
    left: 90%;
    top: -10%;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.6rem;
    pointer-events: none;
    z-index: 9999;
    animation: snowfall 15s linear infinite;
    animation-delay: 4s;
}

/* Footer Christmas theme */
body.christmas-theme footer {
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

/* Post cards with Christmas flair */
body.christmas-theme .post-card {
    border: 2px solid rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg,
        rgba(212, 36, 38, 0.05) 0%,
        rgba(26, 128, 64, 0.05) 100%
    );
}

body.christmas-theme .post-card:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 8px 25px rgba(212, 36, 38, 0.3), 0 0 20px rgba(255, 215, 0, 0.2);
    transform: translateY(-3px);
}

/* Archive badge Christmas colors */
body.christmas-theme .archive-badge {
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-green));
    border: 1px solid var(--christmas-gold);
}

/* Add subtle Christmas glow to headings */
body.christmas-theme h1,
body.christmas-theme h2,
body.christmas-theme h3 {
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

/* Code blocks - subtle Christmas theme */
body.christmas-theme pre,
body.christmas-theme code {
    border-color: rgba(255, 215, 0, 0.2);
}

/* Special Christmas message in footer */
body.christmas-theme footer::before {
    content: "🎄✨ Merry Christmas & Happy Holidays! ✨🎁";
    display: block;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--christmas-gold);
    font-weight: 700;
    font-size: 1.1rem;
    animation: festiveGlow 2s ease-in-out infinite;
    letter-spacing: 1px;
}

@keyframes festiveGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.6), 0 0 20px rgba(212, 36, 38, 0.3);
    }
    50% {
        text-shadow: 0 0 25px rgba(255, 215, 0, 0.9), 0 0 40px rgba(212, 36, 38, 0.6), 0 0 50px rgba(26, 128, 64, 0.4);
    }
}

/* Add twinkling stars */
body.christmas-theme h1::before,
body.christmas-theme h2::before {
    content: "✨ ";
    animation: twinkle 1.5s ease-in-out infinite;
}

body.christmas-theme h1::after,
body.christmas-theme h2::after {
    content: " ✨";
    animation: twinkle 1.5s ease-in-out infinite;
    animation-delay: 0.75s;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
