/**
 * VÁNOČNÍ TÉMA - Giga Shop
 * Luxusní vánoční design s animacemi
 * Aktivuje se automaticky v prosinci
 */

/* ============================================
   VÁNOČNÍ BAREVNÉ SCHÉMA
   ============================================ */
:root {
    --xmas-red: #c41e3a;
    --xmas-red-dark: #8b0000;
    --xmas-green: #228b22;
    --xmas-green-dark: #006400;
    --xmas-gold: #ffd700;
    --xmas-gold-light: #ffe55c;
    --xmas-silver: #c0c0c0;
    --xmas-white: #fffafa;
    --xmas-cream: #fffef0;
}

/* ============================================
   SNĚHOVÉ VLOČKY - PADAJÍCÍ ANIMACE
   ============================================ */
.snowflakes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99997;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: #fff;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
    animation: snowfall linear infinite;
    opacity: 0.9;
    user-select: none;
}

@keyframes snowfall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Různé velikosti a pozice sněhových vloček */
.snowflake:nth-child(1) { left: 5%; animation-duration: 15s; animation-delay: 0s; font-size: 1rem; }
.snowflake:nth-child(2) { left: 10%; animation-duration: 12s; animation-delay: 1s; font-size: 1.5rem; }
.snowflake:nth-child(3) { left: 15%; animation-duration: 18s; animation-delay: 2s; font-size: 0.8rem; }
.snowflake:nth-child(4) { left: 20%; animation-duration: 14s; animation-delay: 0.5s; font-size: 1.2rem; }
.snowflake:nth-child(5) { left: 25%; animation-duration: 16s; animation-delay: 3s; font-size: 1rem; }
.snowflake:nth-child(6) { left: 30%; animation-duration: 13s; animation-delay: 1.5s; font-size: 1.8rem; }
.snowflake:nth-child(7) { left: 35%; animation-duration: 17s; animation-delay: 4s; font-size: 0.9rem; }
.snowflake:nth-child(8) { left: 40%; animation-duration: 11s; animation-delay: 2.5s; font-size: 1.3rem; }
.snowflake:nth-child(9) { left: 45%; animation-duration: 19s; animation-delay: 5s; font-size: 1.1rem; }
.snowflake:nth-child(10) { left: 50%; animation-duration: 14s; animation-delay: 0.8s; font-size: 1.6rem; }
.snowflake:nth-child(11) { left: 55%; animation-duration: 16s; animation-delay: 3.5s; font-size: 1rem; }
.snowflake:nth-child(12) { left: 60%; animation-duration: 12s; animation-delay: 1.2s; font-size: 1.4rem; }
.snowflake:nth-child(13) { left: 65%; animation-duration: 18s; animation-delay: 4.5s; font-size: 0.7rem; }
.snowflake:nth-child(14) { left: 70%; animation-duration: 15s; animation-delay: 2s; font-size: 1.2rem; }
.snowflake:nth-child(15) { left: 75%; animation-duration: 13s; animation-delay: 5.5s; font-size: 1.5rem; }
.snowflake:nth-child(16) { left: 80%; animation-duration: 17s; animation-delay: 0.3s; font-size: 1rem; }
.snowflake:nth-child(17) { left: 85%; animation-duration: 14s; animation-delay: 3.8s; font-size: 1.7rem; }
.snowflake:nth-child(18) { left: 90%; animation-duration: 16s; animation-delay: 1.8s; font-size: 0.9rem; }
.snowflake:nth-child(19) { left: 95%; animation-duration: 12s; animation-delay: 4.2s; font-size: 1.3rem; }
.snowflake:nth-child(20) { left: 3%; animation-duration: 19s; animation-delay: 2.8s; font-size: 1.1rem; }

/* ============================================
   VÁNOČNÍ SVĚTÝLKA - HORNÍ LIŠTA
   ============================================ */
.christmas-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    z-index: 99998;
    display: flex;
    justify-content: space-around;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 100%);
    padding: 0 10px;
}

.light-bulb {
    width: 12px;
    height: 16px;
    border-radius: 0 0 50% 50%;
    position: relative;
    top: -2px;
    animation: glow 1.5s ease-in-out infinite alternate;
}

.light-bulb::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: #333;
    border-radius: 2px 2px 0 0;
}

.light-bulb.red { background: #ff0000; box-shadow: 0 0 15px #ff0000, 0 0 30px #ff0000; }
.light-bulb.green { background: #00ff00; box-shadow: 0 0 15px #00ff00, 0 0 30px #00ff00; animation-delay: 0.3s; }
.light-bulb.blue { background: #0080ff; box-shadow: 0 0 15px #0080ff, 0 0 30px #0080ff; animation-delay: 0.6s; }
.light-bulb.gold { background: #ffd700; box-shadow: 0 0 15px #ffd700, 0 0 30px #ffd700; animation-delay: 0.9s; }
.light-bulb.pink { background: #ff69b4; box-shadow: 0 0 15px #ff69b4, 0 0 30px #ff69b4; animation-delay: 1.2s; }

@keyframes glow {
    0% { opacity: 0.4; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* ============================================
   VÁNOČNÍ DEKORACE - STROMEČKY
   ============================================ */
.christmas-tree-left,
.christmas-tree-right {
    position: fixed;
    bottom: 20px;
    font-size: 4rem;
    z-index: 99996;
    animation: treeGlow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 20px rgba(34, 139, 34, 0.5);
}

.christmas-tree-left {
    left: 20px;
}

.christmas-tree-right {
    right: 20px;
}

@keyframes treeGlow {
    0% { filter: brightness(1) drop-shadow(0 0 10px #228b22); }
    100% { filter: brightness(1.2) drop-shadow(0 0 20px #ffd700); }
}

/* ============================================
   TLAČÍTKO PRO VYPNUTÍ VÁNOČNÍHO TÉMATU
   ============================================ */
.christmas-toggle {
    position: fixed;
    bottom: 100px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--xmas-red), var(--xmas-red-dark));
    border: 3px solid var(--xmas-gold);
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 25px rgba(196, 30, 58, 0.5), 0 0 40px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    animation: pulseGold 2s ease-in-out infinite;
}

.christmas-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 35px rgba(196, 30, 58, 0.7), 0 0 60px rgba(255, 215, 0, 0.5);
}

.christmas-toggle.disabled {
    background: linear-gradient(145deg, #666, #444);
    border-color: #888;
    box-shadow: 0 3px 15px rgba(0,0,0,0.3);
    animation: none;
}

@keyframes pulseGold {
    0%, 100% { box-shadow: 0 5px 25px rgba(196, 30, 58, 0.5), 0 0 40px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 5px 25px rgba(196, 30, 58, 0.7), 0 0 60px rgba(255, 215, 0, 0.6); }
}

/* Tooltip pro tlačítko */
.christmas-toggle::after {
    content: 'Vánoční téma';
    position: absolute;
    left: 75px;
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.christmas-toggle:hover::after {
    opacity: 1;
}

/* ============================================
   VÁNOČNÍ BANNER NA HLAVNÍ STRÁNCE
   ============================================ */
.christmas-banner {
    background: linear-gradient(135deg, var(--xmas-red) 0%, var(--xmas-red-dark) 50%, var(--xmas-green-dark) 100%);
    color: #fff;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(196, 30, 58, 0.4);
}

.christmas-banner::before {
    content: '✨ 🎄 ✨';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    animation: sparkle 1.5s ease-in-out infinite;
}

.christmas-banner h2 {
    font-size: 2.5rem;
    margin: 20px 0 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.christmas-banner p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.95;
}

.christmas-banner .btn {
    background: var(--xmas-gold);
    color: var(--xmas-red-dark);
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.christmas-banner .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
    background: var(--xmas-gold-light);
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.7; transform: translateX(-50%) scale(1.1); }
}

/* ============================================
   VÁNOČNÍ ÚPRAVY HLAVIČKY
   ============================================ */
body.christmas-mode .main-header {
    background: linear-gradient(180deg, rgba(139, 0, 0, 0.1) 0%, transparent 100%);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

body.christmas-mode .top-bar {
    background: linear-gradient(135deg, var(--xmas-red-dark) 0%, var(--xmas-green-dark) 100%);
}

/* ============================================
   VÁNOČNÍ ÚPRAVY PATIČKY
   ============================================ */
body.christmas-mode footer {
    background: linear-gradient(180deg, #1a1a2e 0%, var(--xmas-red-dark) 100%);
    position: relative;
}

body.christmas-mode footer::before {
    content: '🎄 🎁 ⭐ 🎄 🎁 ⭐ 🎄 🎁 ⭐';
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 1.5rem;
    animation: slideDecor 20s linear infinite;
}

@keyframes slideDecor {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ============================================
   VÁNOČNÍ ŠTÍTEK NA PRODUKTECH
   ============================================ */
.christmas-sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--xmas-red) 0%, var(--xmas-red-dark) 100%);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 3px 15px rgba(196, 30, 58, 0.4);
    animation: pulseBadge 2s ease-in-out infinite;
    z-index: 10;
}

.christmas-sale-badge::before {
    content: '🎁 ';
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============================================
   VÁNOČNÍ KURZOR (VOLITELNÉ)
   ============================================ */
body.christmas-mode {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ctext y='24' font-size='24'%3E❄️%3C/text%3E%3C/svg%3E"), auto;
}

/* ============================================
   RESPONZIVITA PRO MOBILY
   ============================================ */
@media (max-width: 768px) {
    .christmas-tree-left,
    .christmas-tree-right {
        display: none;
    }
    
    .christmas-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        bottom: 80px;
        left: 10px;
    }
    
    .christmas-toggle::after {
        display: none;
    }
    
    .christmas-banner h2 {
        font-size: 1.8rem;
    }
    
    .christmas-banner p {
        font-size: 1rem;
    }
    
    .snowflake {
        font-size: 1rem !important;
    }
    
    .light-bulb {
        width: 8px;
        height: 12px;
    }
}

/* ============================================
   MOBILNÍ OPTIMALIZACE - SKRYTÍ NA MALÝCH ZAŘÍZENÍCH
   ============================================ */
@media (max-width: 480px) {
    .snowflakes-container {
        display: none; /* Úspora výkonu na mobilech */
    }
    
    .christmas-lights {
        height: 5px;
    }
    
    .christmas-banner {
        padding: 20px 15px;
        margin: 10px;
        border-radius: 15px;
    }
    
    .christmas-banner h2 {
        font-size: 1.5rem;
    }
}

/* ============================================
   VÁNOČNÍ EFEKT PRO TLAČÍTKA
   ============================================ */
body.christmas-mode .btn-primary {
    background: linear-gradient(135deg, var(--xmas-red) 0%, var(--xmas-red-dark) 100%) !important;
    border: none;
    position: relative;
    overflow: hidden;
}

body.christmas-mode .btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* ============================================
   SKRYTÍ VÁNOČNÍCH PRVKŮ KDYŽ JE TÉMA VYPNUTÉ
   ============================================ */
body:not(.christmas-mode) .snowflakes-container,
body:not(.christmas-mode) .christmas-lights,
body:not(.christmas-mode) .christmas-tree-left,
body:not(.christmas-mode) .christmas-tree-right,
body:not(.christmas-mode) .christmas-banner,
body:not(.christmas-mode) .christmas-sale-badge {
    display: none !important;
}

body:not(.christmas-mode) .christmas-toggle {
    background: linear-gradient(145deg, #666, #444);
    border-color: #888;
    animation: none;
}
