/* Christmas Theme Styles */

/* Default state: hidden/inactive unless the class is present */
body.christmas-theme {
    --christmas-red: #d42426;
    --christmas-green: #165b33;
    --christmas-gold: #f8b229;
    --snow-color: #ffffff;
}

/* Floating Toggle Button */
.theme-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.theme-btn:hover {
    transform: scale(1.1) rotate(15deg);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* Only apply these when .christmas-theme is on body */

body.christmas-theme .navbar {
    border-bottom: 3px solid var(--christmas-red);
    background: rgba(20, 40, 20, 0.95);
    /* Dark Greenish tint */
}

body.christmas-theme .btn-primary {
    background: var(--christmas-red);
    border-color: #8b0000;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 4px 0 #8b0000;
}

body.christmas-theme .btn-primary:hover {
    background: #ff3333;
}

body.christmas-theme .btn-primary:active {
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 0 0 #8b0000;
}

body.christmas-theme .ip-box {
    color: var(--christmas-gold);
    text-shadow: 0 0 5px rgba(248, 178, 41, 0.5);
}

body.christmas-theme .server-ip-container {
    border-color: var(--christmas-red);
    background: rgba(212, 36, 38, 0.2);
}

body.christmas-theme .highlight {
    color: var(--christmas-red);
}

/* Santa Hat on Logo */

body.christmas-theme .logo-wrapper::after {
    content: '';
    position: absolute;
    top: -40px;
    left: -30px;
    width: 120px;
    height: 120px;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/4/49/Santa_hat.svg/500px-Santa_hat.svg.png');
    /* Simple Santa Hat PNG */
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 10;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.5));
}

/* Snow Effect Container */
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
    display: none;
    /* Hidden by default */
}

body.christmas-theme #snow-container {
    display: block;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px #000;
    user-select: none;
    z-index: 10000;
    animation-name: fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

/* Festive Scrollbar */
body.christmas-theme ::-webkit-scrollbar-thumb {
    background: var(--christmas-red);
    border-radius: 10px;
}

body.christmas-theme ::-webkit-scrollbar-track {
    background: #1a1a1a;
}

/* Footer festive touch */
body.christmas-theme .footer {
    border-top: 4px solid var(--christmas-red);
    background: linear-gradient(to bottom, #262626, #1a0505);
}

/* About Section Festive Overrides */
body.christmas-theme .about-section {
    background: radial-gradient(circle at center, #1a0505 0%, #0d0d0d 100%);
}

body.christmas-theme .about-section::before {
    background: radial-gradient(circle, rgba(212, 36, 38, 0.1) 0%, transparent 70%);
}

body.christmas-theme .about-section::after {
    background: radial-gradient(circle, rgba(22, 91, 51, 0.1) 0%, transparent 70%);
}

body.christmas-theme .feature-card:hover {
    border-color: var(--christmas-red);
    box-shadow: 0 20px 40px rgba(212, 36, 38, 0.2);
}

body.christmas-theme .feature-card:hover .feature-icon {
    filter: drop-shadow(0 0 25px rgba(212, 36, 38, 0.6));
}

body.christmas-theme .feature-card strong {
    color: var(--christmas-gold);
}

/* Christmas Decorations */
.christmas-decorations {
    display: none;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    overflow: hidden;
}

body.christmas-theme .christmas-decorations {
    display: block;
}

.snow-drifts {
    display: none;
    /* Temporarily disabled by user */
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 200px;
    background-image: url('snow_drift.png');
    background-repeat: repeat-x;
    background-size: 800px auto;
    background-position: bottom center;
    filter: drop-shadow(0 -5px 10px rgba(255, 255, 255, 0.3));
    animation: driftWave 10s ease-in-out infinite alternate;
}

@keyframes driftWave {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(5px);
    }
}

.flying-santa {
    position: absolute;
    top: 15%;
    left: -400px;
    width: 400px;
    height: 200px;
    background-image: url('https://upanhnhanh.com/191a96d36cf5a71ee578448d08a0647c');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.9;
    animation: flySanta 25s linear infinite;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.3));
}

@keyframes flySanta {
    0% {
        left: -400px;
        transform: translateY(0) rotate(5deg);
    }

    25% {
        transform: translateY(-30px) rotate(0deg);
    }

    50% {
        transform: translateY(0) rotate(-5deg);
    }

    75% {
        transform: translateY(30px) rotate(0deg);
    }

    100% {
        left: 100vw;
        transform: translateY(0) rotate(5deg);
    }
}