/* Birthday Theme - Active during birthday week (Nov 17-24) */
/* This file applies festive birthday styling when the body has class "birthday-theme" */

/* Birthday Color Palette - Party time! */
body.birthday-theme {
    --birthday-pink: #ff6b9d;
    --birthday-purple: #c44569;
    --birthday-blue: #4a90e2;
    --birthday-yellow: #ffd93d;
    --birthday-orange: #ff9a3c;
    --birthday-green: #6bcf7f;
    --birthday-gold: #ffd700;
}

/* Party Accent Bar - Rainbow gradient */
body.birthday-theme .accent-bar {
    background: linear-gradient(90deg,
        var(--birthday-pink) 0%,
        var(--birthday-purple) 20%,
        var(--birthday-blue) 40%,
        var(--birthday-green) 60%,
        var(--birthday-yellow) 80%,
        var(--birthday-orange) 100%
    );
    background-size: 200% 100%;
    animation: rainbowSlide 5s linear infinite;
}

@keyframes rainbowSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Party Navigation Bar */
body.birthday-theme .topbar {
    background: linear-gradient(135deg,
        rgba(255, 107, 157, 0.1) 0%,
        rgba(74, 144, 226, 0.1) 50%,
        rgba(255, 217, 61, 0.08) 100%
    );
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

body.birthday-theme .topbar-title {
    color: var(--birthday-yellow);
    text-shadow: 0 0 10px rgba(255, 217, 61, 0.5);
    animation: partyPulse 2s ease-in-out infinite;
}

@keyframes partyPulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 217, 61, 0.5);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 217, 61, 0.8), 0 0 30px rgba(255, 107, 157, 0.5);
        transform: scale(1.02);
    }
}

body.birthday-theme .topbar-links a:hover {
    color: var(--birthday-pink);
    text-shadow: 0 0 8px rgba(255, 107, 157, 0.6);
}

/* Festive Links and Buttons */
body.birthday-theme a {
    color: var(--birthday-blue);
}

body.birthday-theme a:hover {
    color: var(--birthday-pink);
    text-shadow: 0 0 5px rgba(255, 107, 157, 0.4);
}

/* Update gradient elements with birthday colors */
body.birthday-theme .back-to-blog-button,
body.birthday-theme .card-gradient {
    background: linear-gradient(135deg,
        rgba(255, 107, 157, 0.2) 0%,
        rgba(74, 144, 226, 0.2) 100%
    );
    border-color: rgba(255, 217, 61, 0.4);
}

body.birthday-theme .back-to-blog-button:hover {
    background: linear-gradient(135deg,
        rgba(255, 107, 157, 0.3) 0%,
        rgba(74, 144, 226, 0.3) 100%
    );
    border-color: rgba(255, 217, 61, 0.7);
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.3);
}

/* Scroll to Top Button - Birthday themed */
body.birthday-theme .scroll-to-top {
    background: linear-gradient(135deg, var(--birthday-pink), var(--birthday-purple));
    border: 2px solid var(--birthday-gold);
}

body.birthday-theme .scroll-to-top:hover {
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.5);
    transform: translateY(-3px) rotate(5deg);
}

/* Reading Progress Bar - Party colors */
body.birthday-theme .reading-progress {
    background: linear-gradient(90deg,
        var(--birthday-pink),
        var(--birthday-purple),
        var(--birthday-blue),
        var(--birthday-yellow),
        var(--birthday-orange)
    );
    background-size: 200% 100%;
    animation: progressRainbow 3s linear infinite;
}

@keyframes progressRainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Confetti Effect */
body.birthday-theme::before,
body.birthday-theme::after {
    content: "🎉";
    position: fixed;
    top: -10%;
    z-index: 9999;
    font-size: 2rem;
    pointer-events: none;
    animation: confettiFall 6s linear infinite;
}

body.birthday-theme::before {
    left: 15%;
    animation-delay: 0s;
    animation-duration: 5s;
}

body.birthday-theme::after {
    left: 75%;
    animation-delay: 2s;
    animation-duration: 6s;
}

@keyframes confettiFall {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        top: 110%;
        transform: translateX(80px) rotate(720deg);
        opacity: 0;
    }
}

/* More confetti and balloons! */
body.birthday-theme .container::before,
body.birthday-theme .container::after,
body.birthday-theme nav::before,
body.birthday-theme nav::after {
    position: fixed;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 9999;
    animation: confettiFall 6s linear infinite;
}

body.birthday-theme .container::before {
    content: "🎈";
    left: 25%;
    top: -10%;
    animation-delay: 0.5s;
    animation-duration: 5.5s;
}

body.birthday-theme .container::after {
    content: "🎊";
    left: 85%;
    top: -10%;
    animation-delay: 2.5s;
    animation-duration: 6.5s;
    font-size: 2rem;
}

body.birthday-theme nav::before {
    content: "🎂";
    left: 50%;
    top: -10%;
    animation-delay: 3.5s;
    animation-duration: 7s;
}

body.birthday-theme nav::after {
    content: "🎁";
    left: 40%;
    top: -10%;
    animation-delay: 1s;
    animation-duration: 5s;
    font-size: 1.8rem;
}

/* Even more party elements! */
body.birthday-theme footer::after {
    content: "🎉";
    position: fixed;
    left: 10%;
    top: -10%;
    font-size: 1.6rem;
    pointer-events: none;
    z-index: 9999;
    animation: confettiFall 6.5s linear infinite;
    animation-delay: 2s;
}

body.birthday-theme .topbar-links::before {
    content: "🎈";
    position: fixed;
    left: 65%;
    top: -10%;
    font-size: 1.4rem;
    pointer-events: none;
    z-index: 9999;
    animation: confettiFall 5.8s linear infinite;
    animation-delay: 3s;
}

body.birthday-theme .topbar-links::after {
    content: "🎊";
    position: fixed;
    left: 90%;
    top: -10%;
    font-size: 1.7rem;
    pointer-events: none;
    z-index: 9999;
    animation: confettiFall 6.2s linear infinite;
    animation-delay: 4s;
}

/* Footer Birthday theme */
body.birthday-theme footer {
    border-top: 1px solid rgba(255, 217, 61, 0.3);
}

/* Post cards with birthday flair */
body.birthday-theme .post-card {
    border: 2px solid rgba(255, 217, 61, 0.4);
    background: linear-gradient(135deg,
        rgba(255, 107, 157, 0.08) 0%,
        rgba(74, 144, 226, 0.08) 100%
    );
}

body.birthday-theme .post-card:hover {
    border-color: var(--birthday-yellow);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3), 0 0 20px rgba(255, 217, 61, 0.2);
    transform: translateY(-5px) scale(1.02);
}

/* Archive badge Birthday colors */
body.birthday-theme .archive-badge {
    background: linear-gradient(135deg, var(--birthday-pink), var(--birthday-purple));
    border: 1px solid var(--birthday-gold);
}

/* Add party glow to headings */
body.birthday-theme h1,
body.birthday-theme h2,
body.birthday-theme h3 {
    background: linear-gradient(90deg,
        var(--birthday-pink),
        var(--birthday-purple),
        var(--birthday-blue),
        var(--birthday-pink)
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
}

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

/* Code blocks - subtle birthday theme */
body.birthday-theme pre,
body.birthday-theme code {
    border-color: rgba(255, 217, 61, 0.3);
    background: rgba(255, 107, 157, 0.05);
}

/* Special Birthday message in footer */
body.birthday-theme footer::before {
    content: "🎂🎉 Happy birthday to me! 🎁🎈";
    display: block;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(90deg,
        var(--birthday-pink),
        var(--birthday-yellow),
        var(--birthday-blue),
        var(--birthday-pink)
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 1.2rem;
    animation: birthdayGlow 2s ease-in-out infinite, gradientShift 4s linear infinite;
    letter-spacing: 1px;
}

@keyframes birthdayGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 217, 61, 0.6));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(255, 107, 157, 0.9)) drop-shadow(0 0 40px rgba(74, 144, 226, 0.6));
        transform: scale(1.05);
    }
}

/* Add sparkles to headings */
body.birthday-theme h1::before,
body.birthday-theme h2::before {
    content: "✨ ";
    animation: sparkle 1.5s ease-in-out infinite;
    -webkit-text-fill-color: initial;
    background: none;
}

body.birthday-theme h1::after,
body.birthday-theme h2::after {
    content: " ✨";
    animation: sparkle 1.5s ease-in-out infinite;
    animation-delay: 0.75s;
    -webkit-text-fill-color: initial;
    background: none;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.2) rotate(180deg);
    }
}

/* Celebrate with button hover effects */
body.birthday-theme button:hover {
    animation: wiggle 0.5s ease-in-out;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* Birthday cake animation for special elements */
body.birthday-theme .profile-section h1::before {
    content: "🎂 ";
    display: inline-block;
    animation: cakeBounce 2s ease-in-out infinite;
}

@keyframes cakeBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

/* Birthday Theme Activation Notice */
body.birthday-theme .topbar::after {
    content: "🎈 Birthday Week Theme Active (November 17-24) 🎈";
    display: block;
    text-align: center;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg,
        rgba(255, 107, 157, 0.15) 0%,
        rgba(74, 144, 226, 0.15) 50%,
        rgba(255, 217, 61, 0.1) 100%
    );
    border: 2px solid rgba(255, 217, 61, 0.4);
    border-radius: 8px;
    color: var(--birthday-yellow);
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 0 8px rgba(255, 217, 61, 0.5);
    animation: noticeGlow 3s ease-in-out infinite;
    letter-spacing: 0.5px;
}

@keyframes noticeGlow {
    0%, 100% {
        border-color: rgba(255, 217, 61, 0.4);
        box-shadow: 0 2px 10px rgba(255, 217, 61, 0.2);
    }
    50% {
        border-color: rgba(255, 107, 157, 0.6);
        box-shadow: 0 2px 20px rgba(255, 107, 157, 0.3), 0 0 15px rgba(74, 144, 226, 0.2);
    }
}

/* Adjust for mobile */
@media (max-width: 768px) {
    body.birthday-theme .topbar::after {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}
