/* ===== CHRISTMAS THEME ===== */
/* Festive holiday theme with snowfall animation */

[data-theme="christmas"] {
    /* ===== BACKGROUNDS ===== */
    --bg-primary: #0c1a12;
    --bg-secondary: #1a2f20;
    --bg-card: #1f3828;
    --bg-header: #0f2015;

    /* ===== TEXT ===== */
    --text-primary: #ffffff;
    --text-secondary: #c4e0cc;
    --text-muted: #6a9a78;

    /* ===== BORDERS & SHADOWS ===== */
    --border-color: #2a4a35;
    --shadow-color: rgba(10, 20, 15, 0.6);

    /* ===== ACCENTS ===== */
    --accent-primary: #c41e3a;
    --accent-secondary: #228b22;
    --accent-tertiary: #ffd700;
}

/* ===== CHRISTMAS SPECIFIC STYLES ===== */

[data-theme="christmas"] .game-card {
    border: 2px solid rgba(196, 30, 58, 0.4);
    box-shadow: 0 4px 20px rgba(10, 20, 15, 0.5);
    background: linear-gradient(180deg, var(--bg-card) 0%, #0c1a12 100%);
}

[data-theme="christmas"] .game-card:nth-child(even) {
    border-color: rgba(34, 139, 34, 0.4);
}

[data-theme="christmas"] .game-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 0 20px rgba(196, 30, 58, 0.4),
        0 0 20px rgba(34, 139, 34, 0.3),
        0 12px 30px rgba(10, 20, 15, 0.6);
}

[data-theme="christmas"] .game-card:nth-child(even):hover {
    border-color: rgba(34, 139, 34, 0.7);
}

[data-theme="christmas"] .game-card:nth-child(odd):hover {
    border-color: rgba(196, 30, 58, 0.7);
}

/* Golden star decoration on cards */
[data-theme="christmas"] .game-card::before {
    content: '★';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 20px;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: rotate(-15deg);
}

[data-theme="christmas"] .game-card:hover::before {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="christmas"] .search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(196, 30, 58, 0.4);
}

[data-theme="christmas"] .badge-slot {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: #ffffff;
}

[data-theme="christmas"] .badge-coming-soon {
    background: linear-gradient(135deg, #228b22 0%, #006400 100%);
    color: #ffd700;
}

[data-theme="christmas"] header {
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #c41e3a, #228b22, #c41e3a, #228b22) 1;
}

[data-theme="christmas"] #footer {
    border-top: 2px solid;
    border-image: linear-gradient(90deg, #228b22, #c41e3a, #228b22, #c41e3a) 1;
}

/* ===== SNOWFALL ANIMATION ===== */
[data-theme="christmas"] .snowfall {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

[data-theme="christmas"] .snowflake {
    position: absolute;
    top: -20px;
    color: #fff;
    font-size: 1em;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: snowfall linear infinite;
    opacity: 0.8;
}

@keyframes snowfall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0.8;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.2;
    }
}

/* Individual snowflake variations */
[data-theme="christmas"] .snowflake:nth-child(1) {
    left: 5%;
    animation-duration: 8s;
    animation-delay: 0s;
    font-size: 0.8em;
}

[data-theme="christmas"] .snowflake:nth-child(2) {
    left: 10%;
    animation-duration: 12s;
    animation-delay: 1s;
    font-size: 1.2em;
}

[data-theme="christmas"] .snowflake:nth-child(3) {
    left: 15%;
    animation-duration: 10s;
    animation-delay: 2s;
    font-size: 0.9em;
}

[data-theme="christmas"] .snowflake:nth-child(4) {
    left: 20%;
    animation-duration: 14s;
    animation-delay: 0.5s;
    font-size: 1.1em;
}

[data-theme="christmas"] .snowflake:nth-child(5) {
    left: 25%;
    animation-duration: 9s;
    animation-delay: 3s;
    font-size: 0.7em;
}

[data-theme="christmas"] .snowflake:nth-child(6) {
    left: 30%;
    animation-duration: 11s;
    animation-delay: 1.5s;
    font-size: 1em;
}

[data-theme="christmas"] .snowflake:nth-child(7) {
    left: 35%;
    animation-duration: 13s;
    animation-delay: 2.5s;
    font-size: 0.85em;
}

[data-theme="christmas"] .snowflake:nth-child(8) {
    left: 40%;
    animation-duration: 8s;
    animation-delay: 4s;
    font-size: 1.3em;
}

[data-theme="christmas"] .snowflake:nth-child(9) {
    left: 45%;
    animation-duration: 10s;
    animation-delay: 0.8s;
    font-size: 0.75em;
}

[data-theme="christmas"] .snowflake:nth-child(10) {
    left: 50%;
    animation-duration: 15s;
    animation-delay: 3.5s;
    font-size: 1.15em;
}

[data-theme="christmas"] .snowflake:nth-child(11) {
    left: 55%;
    animation-duration: 9s;
    animation-delay: 1.2s;
    font-size: 0.95em;
}

[data-theme="christmas"] .snowflake:nth-child(12) {
    left: 60%;
    animation-duration: 12s;
    animation-delay: 2.8s;
    font-size: 1.05em;
}

[data-theme="christmas"] .snowflake:nth-child(13) {
    left: 65%;
    animation-duration: 11s;
    animation-delay: 0.3s;
    font-size: 0.8em;
}

[data-theme="christmas"] .snowflake:nth-child(14) {
    left: 70%;
    animation-duration: 14s;
    animation-delay: 4.5s;
    font-size: 1.25em;
}

[data-theme="christmas"] .snowflake:nth-child(15) {
    left: 75%;
    animation-duration: 8s;
    animation-delay: 1.8s;
    font-size: 0.9em;
}

[data-theme="christmas"] .snowflake:nth-child(16) {
    left: 80%;
    animation-duration: 10s;
    animation-delay: 3.2s;
    font-size: 1.1em;
}

[data-theme="christmas"] .snowflake:nth-child(17) {
    left: 85%;
    animation-duration: 13s;
    animation-delay: 0.6s;
    font-size: 0.7em;
}

[data-theme="christmas"] .snowflake:nth-child(18) {
    left: 90%;
    animation-duration: 9s;
    animation-delay: 2.2s;
    font-size: 1em;
}

[data-theme="christmas"] .snowflake:nth-child(19) {
    left: 95%;
    animation-duration: 11s;
    animation-delay: 4.2s;
    font-size: 0.85em;
}

[data-theme="christmas"] .snowflake:nth-child(20) {
    left: 98%;
    animation-duration: 12s;
    animation-delay: 1.5s;
    font-size: 1.2em;
}