/* ========================================
   🎄 SANTA'S GIFT TRACKER - CHRISTMAS THEME 🎄
   Enhanced Christmas Edition
   ======================================== */

:root {
    /* Christmas Colors */
    --christmas-red: #c41e3a;
    --christmas-red-dark: #8b0000;
    --christmas-red-light: #e25555;
    --christmas-green: #165b33;
    --christmas-green-light: #1e7b46;
    --christmas-green-dark: #0d3d22;
    --christmas-gold: #ffd700;
    --christmas-gold-dark: #daa520;
    --christmas-cream: #fffef0;
    --christmas-white: #ffffff;
    --christmas-night: #0a0f2e;
    --christmas-night-light: #141e50;
    --christmas-pine: #2d5a27;
    
    /* Shadows */
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(255, 215, 0, 0.3);
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.3);
    
    /* Typography */
    --font-christmas: 'Mountains of Christmas', cursive;
    --font-body: 'Crimson Pro', Georgia, serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: 
        /* Northern lights effect */
        radial-gradient(ellipse at 20% 0%, rgba(30, 180, 100, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 0%, rgba(100, 30, 180, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(139, 69, 19, 0.3) 0%, transparent 30%),
        /* Main gradient */
        linear-gradient(180deg, 
            var(--christmas-night) 0%, 
            var(--christmas-night-light) 40%,
            #1a3a6c 70%,
            #2d4a8c 100%
        );
    min-height: 100vh;
    color: var(--christmas-cream);
    overflow-x: hidden;
    background-attachment: fixed;
}

/* ========================================
   SNOWFALL ANIMATION
   ======================================== */
.snowfall {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: white;
    animation: fall linear infinite, sway ease-in-out infinite;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    filter: blur(0.5px);
}

@keyframes fall {
    0% {
        transform: translateY(-20px) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

@keyframes sway {
    0%, 100% { margin-left: 0; }
    25% { margin-left: 20px; }
    75% { margin-left: -20px; }
}

/* ========================================
   APP LAYOUT
   ======================================== */
.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Pine tree silhouettes at bottom */
.app::before {
    content: '🌲🎄🌲🌲🎄🌲🎄🌲🌲🎄🌲🎄🌲🌲🎄';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 4rem;
    letter-spacing: -15px;
    text-align: center;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    filter: blur(1px);
}

/* Twinkling stars */
.app::after {
    content: '✦ ✧ ⭐ ✦ ✧ ★ ✦ ✧ ⭐ ✦ ✧ ★ ✦ ✧ ⭐';
    position: fixed;
    top: 30px;
    left: 0;
    right: 0;
    font-size: 0.7rem;
    letter-spacing: 50px;
    text-align: center;
    color: rgba(255, 215, 0, 0.4);
    animation: twinkle 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* ========================================
   HEADER
   ======================================== */
.header {
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.4) 0%, 
        transparent 100%
    );
}

.header-decorations {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.header-decorations .decoration {
    display: inline-block;
    margin: 0 0.8rem;
    animation: swing 3s ease-in-out infinite;
}

.header-decorations .decoration:nth-child(1) { animation-delay: 0s; }
.header-decorations .decoration:nth-child(2) { 
    animation: star-pulse 2s ease-in-out infinite;
    color: var(--christmas-gold);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}
.header-decorations .decoration:nth-child(3) { animation-delay: 0.5s; }

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

@keyframes star-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8)); }
    50% { transform: scale(1.2) rotate(180deg); filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1)); }
}

.header h1 {
    font-family: var(--font-christmas);
    font-size: 2.8rem;
    color: var(--christmas-cream);
    text-shadow: 
        2px 2px 0 var(--christmas-red),
        4px 4px 0 var(--christmas-red-dark),
        0 0 40px rgba(255, 215, 0, 0.6);
    margin-bottom: 0.3rem;
    letter-spacing: 2px;
}

.header h1 .santa {
    display: inline-block;
    margin: 0 0.8rem;
    animation: wave 1.5s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

@keyframes wave {
    from { transform: rotate(-15deg) scale(1); }
    to { transform: rotate(15deg) scale(1.1); }
}

.subtitle {
    font-size: 1rem;
    color: var(--christmas-gold);
    opacity: 0.9;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.header-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    font-family: var(--font-christmas);
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-add {
    background: linear-gradient(135deg, var(--christmas-green), var(--christmas-green-light));
    color: white;
    box-shadow: var(--shadow-soft), 0 0 15px rgba(30, 123, 70, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-add:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-soft), 0 0 25px rgba(30, 123, 70, 0.6);
}

.btn-reset {
    background: linear-gradient(135deg, #3a3a3a, #555);
    color: white;
    box-shadow: var(--shadow-soft);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-reset:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #4a4a4a, #666);
}

/* ========================================
   BOARD
   ======================================== */
.board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1rem 1.5rem;
    flex: 1;
    position: relative;
    z-index: 1;
    max-height: calc(100vh - 220px);
}

@media (max-width: 1200px) {
    .board {
        grid-template-columns: repeat(2, 1fr);
        max-height: none;
    }
}

@media (max-width: 600px) {
    .board {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
}

/* ========================================
   COLUMNS
   ======================================== */
.column {
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border-radius: 16px;
    padding: 0.8rem;
    height: 100%;
    max-height: calc(100vh - 240px);
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.2);
}

/* Hanging string decoration */
.column::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 15px;
    background: 
        repeating-linear-gradient(90deg,
            var(--christmas-green) 0px,
            var(--christmas-green) 8px,
            var(--christmas-red) 8px,
            var(--christmas-red) 16px
        );
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Ornament on string */
.column::after {
    content: '🔔';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    animation: ring 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes ring {
    0%, 100% { transform: translateX(-50%) rotate(-10deg); }
    50% { transform: translateX(-50%) rotate(10deg); }
}

.column[data-status="wunschzettel"]::after { content: '📜'; }
.column[data-status="verpackung"]::after { content: '🎀'; }
.column[data-status="schlitten"]::after { content: '🔔'; }
.column[data-status="ausgeliefert"]::after { content: '⭐'; }

.column-over {
    background: linear-gradient(180deg,
        rgba(255, 215, 0, 0.25) 0%,
        rgba(255, 215, 0, 0.1) 100%
    );
    border-color: var(--christmas-gold);
    box-shadow: 
        inset 0 0 30px rgba(255, 215, 0, 0.2),
        0 0 30px rgba(255, 215, 0, 0.4);
}

.column[data-status="wunschzettel"]::before {
    background: repeating-linear-gradient(90deg, #8b4513 0px, #8b4513 8px, #a0522d 8px, #a0522d 16px);
}

.column[data-status="verpackung"]::before {
    background: repeating-linear-gradient(90deg, var(--christmas-red) 0px, var(--christmas-red) 8px, var(--christmas-red-dark) 8px, var(--christmas-red-dark) 16px);
}

.column[data-status="schlitten"]::before {
    background: repeating-linear-gradient(90deg, var(--christmas-green) 0px, var(--christmas-green) 8px, var(--christmas-green-light) 8px, var(--christmas-green-light) 16px);
}

.column[data-status="ausgeliefert"]::before {
    background: repeating-linear-gradient(90deg, var(--christmas-gold-dark) 0px, var(--christmas-gold-dark) 8px, var(--christmas-gold) 8px, var(--christmas-gold) 16px);
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.4rem;
    margin-top: 0.3rem;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.2);
    margin-bottom: 0.6rem;
    flex-shrink: 0;
}

.column-header h2 {
    font-family: var(--font-christmas);
    font-size: 1.1rem;
    color: var(--christmas-cream);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.gift-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.column-content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0.6rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem;
    min-height: 100px;
}

/* Custom scrollbar for columns */
.column-content::-webkit-scrollbar {
    width: 6px;
}

.column-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.column-content::-webkit-scrollbar-thumb {
    background: var(--christmas-red);
    border-radius: 3px;
}

.column-content::-webkit-scrollbar-thumb:hover {
    background: var(--christmas-red-light);
}

.column-decoration {
    text-align: center;
    font-size: 1.5rem;
    opacity: 0.2;
    padding-top: 0.5rem;
    flex-shrink: 0;
}

.empty-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    opacity: 0.5;
    text-align: center;
    width: 100%;
    min-height: 150px;
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.empty-column p {
    font-size: 0.8rem;
    font-family: var(--font-christmas);
}

/* ========================================
   GIFT CARDS - 2:1 RATIO PRESENTS
   ======================================== */
.gift-card {
    background: linear-gradient(145deg, 
        var(--christmas-red) 0%, 
        var(--christmas-red-dark) 100%
    );
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    cursor: grab;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-card);
    border: 2px solid rgba(255, 255, 255, 0.25);
    overflow: hidden;
    user-select: none;
    /* 2:1 ratio - wider than tall */
    width: calc(50% - 0.3rem);
    min-width: 140px;
    aspect-ratio: 2 / 1;
    /* Random rotation via CSS variable, set by JS */
    transform: rotate(var(--rotation, 0deg));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

/* Different gift colors for variety */
.gift-card:nth-child(3n+1) {
    background: linear-gradient(145deg, var(--christmas-red) 0%, var(--christmas-red-dark) 100%);
}

.gift-card:nth-child(3n+2) {
    background: linear-gradient(145deg, var(--christmas-green) 0%, var(--christmas-green-dark) 100%);
}

.gift-card:nth-child(3n) {
    background: linear-gradient(145deg, #1a5276 0%, #154360 100%);
}

.gift-card:hover {
    transform: rotate(var(--rotation, 0deg)) translateY(-4px) scale(1.03);
    box-shadow: var(--shadow-card), 0 0 20px rgba(255, 215, 0, 0.5);
    border-color: var(--christmas-gold);
    z-index: 10;
}

.gift-card:active {
    cursor: grabbing;
}

.gift-card-dragging {
    opacity: 0.95;
    transform: rotate(0deg) scale(1.05) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000 !important;
}

.gift-card-ribbon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 100%;
    background: linear-gradient(180deg, 
        var(--christmas-gold) 0%,
        var(--christmas-gold-dark) 100%
    );
    opacity: 0.85;
}

/* Horizontal ribbon */
.gift-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 12px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, 
        var(--christmas-gold) 0%,
        var(--christmas-gold-dark) 100%
    );
    opacity: 0.85;
}

.gift-card-bow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    z-index: 2;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}

.gift-card-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    z-index: 1;
    width: 100%;
}

.gift-emoji {
    font-size: 1.8rem;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.4));
    flex-shrink: 0;
}

.gift-name {
    flex: 1;
    font-family: var(--font-christmas);
    font-size: 1.3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
}

.btn-delete {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    font-size: 0.6rem;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s;
    padding: 0.15rem 0.25rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.btn-delete:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.2);
}

.gift-card-body {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    margin-top: 0.3rem;
}

.gift-recipient {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.gift-description {
    display: none; /* Hide description to keep cards compact */
}

.label {
    font-weight: bold;
}

/* Single column on smaller screens */
@media (max-width: 1400px) {
    .gift-card {
        width: 100%;
    }
}

/* ========================================
   MODAL
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: linear-gradient(180deg,
        var(--christmas-night-light) 0%,
        var(--christmas-night) 100%
    );
    border-radius: 20px;
    padding: 1.5rem;
    width: 90%;
    max-width: 450px;
    position: relative;
    border: 3px solid var(--christmas-gold);
    box-shadow: 
        0 0 60px rgba(255, 215, 0, 0.4),
        inset 0 0 30px rgba(255, 215, 0, 0.1);
    transform: translateY(50px) scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px dashed var(--christmas-gold);
}

.modal-header h2 {
    font-family: var(--font-christmas);
    font-size: 1.4rem;
    color: var(--christmas-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.btn-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: all 0.3s;
}

.btn-close:hover {
    background: var(--christmas-red);
    transform: rotate(90deg);
}

#giftForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-family: var(--font-christmas);
    font-size: 1rem;
    color: var(--christmas-cream);
}

.form-group input,
.form-group textarea {
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--christmas-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.emoji-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.emoji-btn {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.emoji-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.emoji-btn.selected {
    border-color: var(--christmas-gold);
    background: rgba(255, 215, 0, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

.modal-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.btn-cancel {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-submit {
    background: linear-gradient(135deg, var(--christmas-green), var(--christmas-green-light));
    color: white;
}

.btn-submit:hover {
    box-shadow: 0 0 20px rgba(30, 123, 70, 0.6);
}

.modal-decoration {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.2rem;
}

.modal-decoration span {
    margin: 0 0.4rem;
    display: inline-block;
    animation: ornament-swing 2s ease-in-out infinite;
}

.modal-decoration span:nth-child(1) { animation-delay: 0s; }
.modal-decoration span:nth-child(2) { 
    animation-delay: 0.3s; 
    color: var(--christmas-gold);
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
}
.modal-decoration span:nth-child(3) { animation-delay: 0.6s; }

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

/* ========================================
   FOOTER
   ======================================== */
.footer {
    text-align: center;
    padding: 1rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(0deg, 
        rgba(0, 0, 0, 0.5) 0%, 
        transparent 100%
    );
}

.footer p {
    font-family: var(--font-christmas);
    font-size: 1.2rem;
    color: var(--christmas-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    margin-bottom: 0.6rem;
}

.footer-lights {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.light {
    font-size: 0.8rem;
    animation: christmas-blink 1s ease-in-out infinite;
}

.light-0 { color: #ff0000; animation-delay: 0s; }
.light-1 { color: #00ff00; animation-delay: 0.15s; }
.light-2 { color: #ffff00; animation-delay: 0.3s; }
.light-3 { color: #00aaff; animation-delay: 0.45s; }
.light-4 { color: #ff00ff; animation-delay: 0.6s; }

@keyframes christmas-blink {
    0%, 100% { 
        opacity: 1;
        text-shadow: 0 0 12px currentColor, 0 0 20px currentColor;
        transform: scale(1.1);
    }
    50% { 
        opacity: 0.3;
        text-shadow: none;
        transform: scale(0.9);
    }
}

/* ========================================
   SCROLLBAR (Global)
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--christmas-red), var(--christmas-red-dark));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--christmas-red-light), var(--christmas-red));
}

/* ========================================
   GARLAND LIGHTS (Header decoration)
   ======================================== */
.header::after {
    content: '💡🔴🟢🟡💡🔵🟣🔴💡🟢🟡🔵💡🟣🔴🟢💡';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 0.6rem;
    letter-spacing: 15px;
    text-align: center;
    opacity: 0.8;
    animation: garland-glow 1.5s ease-in-out infinite alternate;
}

@keyframes garland-glow {
    from { filter: brightness(0.7); }
    to { filter: brightness(1.3); }
}

/* ========================================
   DEMO MODE BANNER
   ======================================== */
.demo-banner {
    background: linear-gradient(90deg, 
        var(--christmas-gold-dark) 0%, 
        var(--christmas-gold) 50%, 
        var(--christmas-gold-dark) 100%
    );
    color: var(--christmas-night);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-top: 1rem;
    font-size: 0.85rem;
    animation: pulse-banner 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    display: inline-block;
}

@keyframes pulse-banner {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
        transform: scale(1.02);
    }
}

/* ========================================
   FLYING SANTA ANIMATION
   ======================================== */
.flying-santa-container {
    position: fixed;
    left: -100%; /* Start off-screen */
    z-index: 9999;
    pointer-events: none;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    will-change: left, transform;
    opacity: 0; /* Hidden by default until flying class is added */
    width: 500px; /* Default width for the image */
}

.flying-santa-container img {
    width: 100%;
    height: auto;
    display: block;
}

.flying-santa-container.flying {
    opacity: 1;
    animation: santa-fly-across 18s linear forwards;
}

/* Make it responsive */
@media (max-width: 768px) {
    .flying-santa-container {
        width: 300px;
    }
}

@keyframes santa-fly-across {
    0% {
        left: -50%;
        transform: translateY(0) rotate(-5deg);
    }
    20% {
        transform: translateY(-20px) rotate(0deg);
    }
    40% {
        transform: translateY(0) rotate(5deg);
    }
    60% {
        transform: translateY(-20px) rotate(0deg);
    }
    80% {
        transform: translateY(0) rotate(-5deg);
    }
    100% {
        left: 120%;
        transform: translateY(-40px) rotate(-10deg);
    }
}

/* ========================================
   SNOWBALL INTERACTION
   ======================================== */
.snowball {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #fff, #ddd);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    margin-left: -10px; /* Center anchor */
    margin-top: -10px;
}

.snowball-splat {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 60%, transparent 100%);
    border-radius: 50%;
    transform: scale(0);
    animation: splat 0.5s ease-out forwards;
    pointer-events: none;
    z-index: 10001;
    margin-left: -30px;
    margin-top: -30px;
}

@keyframes splat {
    0% { transform: scale(0.5); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}
