/* Christmas Theme for Arcane Ink Productions */

/* ================ HANGING CHRISTMAS LIGHTS ================ */
.christmas-lights {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 99;
    pointer-events: none;
    background-image: 
        radial-gradient(circle at 2% 35px, #ff0000 0%, transparent 3%),
        radial-gradient(circle at 7% 40px, #00ff00 0%, transparent 3%),
        radial-gradient(circle at 12% 35px, #ffd700 0%, transparent 3%),
        radial-gradient(circle at 17% 40px, #ff69b4 0%, transparent 3%),
        radial-gradient(circle at 22% 35px, #00bfff 0%, transparent 3%),
        radial-gradient(circle at 27% 40px, #ff0000 0%, transparent 3%),
        radial-gradient(circle at 32% 35px, #00ff00 0%, transparent 3%),
        radial-gradient(circle at 37% 40px, #ffd700 0%, transparent 3%),
        radial-gradient(circle at 42% 35px, #ff69b4 0%, transparent 3%),
        radial-gradient(circle at 47% 40px, #00bfff 0%, transparent 3%),
        radial-gradient(circle at 52% 35px, #ff0000 0%, transparent 3%),
        radial-gradient(circle at 57% 40px, #00ff00 0%, transparent 3%),
        radial-gradient(circle at 62% 35px, #ffd700 0%, transparent 3%),
        radial-gradient(circle at 67% 40px, #ff69b4 0%, transparent 3%),
        radial-gradient(circle at 72% 35px, #00bfff 0%, transparent 3%),
        radial-gradient(circle at 77% 40px, #ff0000 0%, transparent 3%),
        radial-gradient(circle at 82% 35px, #00ff00 0%, transparent 3%),
        radial-gradient(circle at 87% 40px, #ffd700 0%, transparent 3%),
        radial-gradient(circle at 92% 35px, #ff69b4 0%, transparent 3%),
        radial-gradient(circle at 97% 40px, #00bfff 0%, transparent 3%);
    animation: twinkleLights 2s ease-in-out infinite;
}

.christmas-lights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 5%,
        rgba(50, 50, 50, 0.5) 5%,
        rgba(50, 50, 50, 0.5) 5.5%
    );
    transform: translateY(20px);
}

@keyframes twinkleLights {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    }
    50% {
        filter: brightness(1.3) drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
    }
}

/* ================ SNOW PARTICLES ================ */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 999;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    font-size: 1em;
    animation: fall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

@keyframes fall {
    from {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.3;
    }
}

/* Different sizes and speeds for variety */
.snowflake:nth-child(odd) {
    animation-duration: 15s;
    font-size: 0.8em;
    opacity: 0.8;
}

.snowflake:nth-child(even) {
    animation-duration: 20s;
    font-size: 1.2em;
    opacity: 0.6;
}

.snowflake:nth-child(3n) {
    animation-duration: 25s;
    font-size: 0.6em;
    animation-delay: 0s;
}

.snowflake:nth-child(3n+1) {
    animation-duration: 18s;
    font-size: 1em;
    animation-delay: 0.5s;
}

.snowflake:nth-child(3n+2) {
    animation-duration: 22s;
    font-size: 0.9em;
    animation-delay: 0.2s;
}

/* ================ CHRISTMAS TREE BUTTON ================ */
.christmas-tree-btn {
    position: fixed;
    right: 20px;
    bottom: 100px;
    width: 60px;
    height: 70px;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
    animation: treeGlow 2s ease-in-out infinite;
}

.christmas-tree-btn:hover {
    transform: scale(1.1) translateY(-5px);
}

.tree-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
}

@keyframes treeGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6))
               drop-shadow(0 0 30px rgba(255, 0, 0, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.9))
               drop-shadow(0 0 40px rgba(0, 255, 0, 0.5))
               drop-shadow(0 0 20px rgba(255, 0, 0, 0.6));
    }
}

/* Tree Lights Animation */
.tree-light {
    animation: twinkle 1.5s ease-in-out infinite;
}

.tree-light:nth-child(odd) {
    animation-delay: 0.5s;
}

.tree-light:nth-child(even) {
    animation-delay: 1s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.4;
        fill: #ffeb3b;
    }
    50% {
        opacity: 1;
        fill: #fff;
        filter: drop-shadow(0 0 5px currentColor);
    }
}

/* ================ CHRISTMAS COLOR OVERRIDES ================ */
.christmas-theme {
    --clr-primary: #c41e3a; /* Christmas red */
    --clr-primary-glow: #ff6b6b;
    --clr-accent: #228b22; /* Christmas green */
}

/* Add candy cane striped border to header */
.christmas-theme .header {
    position: relative;
    overflow: visible;
    z-index: 1000 !important;
}

.christmas-theme .header::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(
        -45deg,
        #c41e3a,
        #c41e3a 10px,
        white 10px,
        white 20px
    );
    animation: candyCaneSlide 20s linear infinite;
}

@keyframes candyCaneSlide {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 0;
    }
}

/* Add festive glow to header during December */
.christmas-theme .header {
    border-image: linear-gradient(90deg, 
        rgba(196, 30, 58, 0.5) 0%, 
        rgba(34, 139, 34, 0.5) 25%, 
        rgba(255, 215, 0, 0.5) 50%, 
        rgba(34, 139, 34, 0.5) 75%, 
        rgba(196, 30, 58, 0.5) 100%) 1;
    animation: christmasHeaderGlow 3s ease-in-out infinite;
}

@keyframes christmasHeaderGlow {
    0%, 100% {
        box-shadow: 0 2px 20px rgba(196, 30, 58, 0.2);
    }
    50% {
        box-shadow: 0 2px 30px rgba(34, 139, 34, 0.3);
    }
}

/* Festive hero section */
.christmas-theme .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(196, 30, 58, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(34, 139, 34, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Christmas button styles */
.christmas-theme .btn-primary {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0020 100%);
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.3);
}

.christmas-theme .btn-primary:hover {
    box-shadow: 0 6px 30px rgba(196, 30, 58, 0.5);
}

/* Festive card borders */
.christmas-theme .game-card,
.christmas-theme .news-card,
.christmas-theme .shop-card {
    border: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.christmas-theme .game-card::before,
.christmas-theme .news-card::before,
.christmas-theme .shop-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(196, 30, 58, 0.3),
        rgba(34, 139, 34, 0.3),
        rgba(255, 215, 0, 0.3),
        rgba(196, 30, 58, 0.3));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.christmas-theme .game-card:hover::before,
.christmas-theme .news-card:hover::before,
.christmas-theme .shop-card:hover::before {
    opacity: 1;
}

/* Holly decoration for section titles */
.christmas-theme .section__title::before,
.christmas-theme .section__title::after {
    content: '🎄';
    display: inline-block;
    margin: 0 10px;
    animation: sway 3s ease-in-out infinite;
}

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

/* Festive stats */
.christmas-theme .stats__item {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1) 0%, rgba(34, 139, 34, 0.1) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Christmas tooltip */
.christmas-tooltip {
    position: fixed;
    background: linear-gradient(135deg, #1a0f0f 0%, #0f1a0f 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 10px 15px;
    color: #fff;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1002;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 100px;
    text-align: center;
    white-space: nowrap;
}

.christmas-tooltip.show {
    opacity: 1;
}

.christmas-tooltip::before {
    content: '🎅';
    margin-right: 5px;
}

/* ================ CORNER DECORATIONS ================ */
.christmas-corner-top-left,
.christmas-corner-top-right {
    position: absolute;
    width: 150px;
    height: 150px;
    z-index: 98;
    pointer-events: none;
    font-size: 60px;
    animation: gentleSway 4s ease-in-out infinite;
}

.christmas-corner-top-left {
    top: 80px;
    left: 10px;
    transform: rotate(-15deg);
}

.christmas-corner-top-left::before {
    content: '🎄';
    position: absolute;
    filter: drop-shadow(0 0 20px rgba(34, 139, 34, 0.6));
}

.christmas-corner-top-right {
    top: 80px;
    right: 10px;
    transform: rotate(15deg);
}

.christmas-corner-top-right::before {
    content: '🎅';
    position: absolute;
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.6));
}

@keyframes gentleSway {
    0%, 100% {
        transform: translateY(0) rotate(-15deg);
    }
    50% {
        transform: translateY(-10px) rotate(-10deg);
    }
}

/* ================ FESTIVE CARD ENHANCEMENTS ================ */
.christmas-theme .game-card,
.christmas-theme .news-card,
.christmas-theme .shop-card,
.christmas-theme .section {
    position: relative;
}

.christmas-theme .game-card::after,
.christmas-theme .news-card::after,
.christmas-theme .shop-card::after {
    content: '❄';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 24px;
    color: #fff;
    opacity: 0.7;
    animation: sparkle 3s ease-in-out infinite;
    pointer-events: none;
}

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

/* ================ FESTIVE BUTTONS ================ */
.christmas-theme .btn:not(.christmas-tree-btn) {
    position: relative;
    overflow: visible;
}

.christmas-theme .btn:not(.christmas-tree-btn)::before {
    content: '✨';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 12px;
    animation: twinkle 1.5s ease-in-out infinite;
    pointer-events: none;
}

/* ================ FESTIVE FOOTER ================ */
.christmas-theme .footer {
    border-top: 3px solid;
    border-image: repeating-linear-gradient(
        90deg,
        #228b22,
        #228b22 20px,
        #c41e3a 20px,
        #c41e3a 40px
    ) 1;
    position: relative;
}

.christmas-theme .footer::before {
    content: '🎁 Happy Holidays! 🎁';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1a0f0f 0%, #0f1a0f 100%);
    padding: 5px 20px;
    border-radius: 20px;
    border: 1px solid #ffd700;
    font-size: 14px;
    color: #ffd700;
    font-family: 'Marcellus SC', serif;
    animation: pulse 2s ease-in-out infinite;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .christmas-tree-btn {
        width: 50px;
        height: 60px;
        right: 10px;
        bottom: 80px;
    }
    
    .snow-container {
        /* Reduce snow particles on mobile for performance */
        opacity: 0.7;
    }
    
    .christmas-corner-top-left,
    .christmas-corner-top-right {
        display: none; /* Hide corner decorations on mobile */
    }
    
    .christmas-lights {
        height: 50px; /* Smaller lights on mobile */
    }
}

/* ================ FESTIVE TEXT GLOW ================ */
.christmas-theme h1,
.christmas-theme h2,
.christmas-theme .section__title {
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.3),
        0 0 40px rgba(196, 30, 58, 0.2);
}

/* ================ GIFT BOX ANIMATION ================ */
.christmas-theme .stats__item {
    position: relative;
    overflow: visible;
}

.christmas-theme .stats__item::after {
    content: '🎁';
    position: absolute;
    top: -15px;
    right: -10px;
    font-size: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}
