/* ================================================
   🎄 DECORAÇÕES DE NATAL E ANO NOVO 🎆
   ================================================ */

/* Cores Temáticas de Natal */
:root {
    --christmas-red: #c41e3a;
    --christmas-green: #165b33;
    --christmas-gold: #ffd700;
    --christmas-white: #f8f8ff;
    --snow-white: #ffffff;
    --christmas-silver: #c0c0c0;
}

/* ================================================
   FLOCOS DE NEVE CAINDO
   ================================================ */
.snowflake {
    position: fixed;
    top: -10px;
    z-index: 9999;
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px #000;
    animation: snowfall linear infinite;
    pointer-events: none;
}

@keyframes snowfall {
    0% {
        top: -10%;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0.3;
    }
}

/* ================================================
   BANNER DE NATAL NO TOPO
   ================================================ */
.christmas-banner {
    background: linear-gradient(135deg, var(--christmas-red) 0%, var(--christmas-green) 100%);
    color: white;
    text-align: center;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.christmas-banner::before {
    content: '🎄';
    position: absolute;
    left: 20px;
    font-size: 24px;
    animation: swing 2s ease-in-out infinite;
}

.christmas-banner::after {
    content: '🎅';
    position: absolute;
    right: 20px;
    font-size: 24px;
    animation: swing 2s ease-in-out infinite;
}

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

.christmas-banner .sparkle {
    display: inline-block;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* ================================================
   DECORAÇÕES NO HEADER
   ================================================ */
#header {
    position: relative;
    border-bottom: 3px solid var(--christmas-gold);
}

#header::before {
    content: '🎄🎁🔔🎄🎁🔔🎄🎁🔔🎄🎁🔔🎄🎁🔔';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--christmas-green);
    color: var(--christmas-gold);
    text-align: center;
    font-size: 20px;
    padding: 5px;
    z-index: 1;
    animation: lights-blink 2s ease-in-out infinite;
}

@keyframes lights-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ================================================
   LOGO COM EFEITO NATALINO
   ================================================ */
.logo h1 {
    position: relative;
    text-shadow: 2px 2px 4px rgba(196, 30, 58, 0.3);
}

.logo h1::before {
    content: '🎅 ';
    animation: bounce 1s ease infinite;
}

.logo h1::after {
    content: ' 🎄';
    animation: bounce 1s ease infinite;
}

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

/* ================================================
   BOTÕES NATALINOS
   ================================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--christmas-red) 0%, var(--christmas-green) 100%);
    border: 2px solid var(--christmas-gold);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '✨';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    animation: slide-in 2s ease-in-out infinite;
}

@keyframes slide-in {
    0% { left: -20px; }
    50% { left: calc(100% + 20px); }
    100% { left: -20px; }
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--christmas-green) 0%, var(--christmas-red) 100%);
    box-shadow: 0 0 20px var(--christmas-gold);
}

/* ================================================
   CARDS DE PRODUTOS COM DECORAÇÃO
   ================================================ */
.product-card {
    position: relative;
    border: 2px solid var(--christmas-gold);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.2);
    transition: all 0.3s ease;
}

.product-card::before {
    content: '🎁';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    z-index: 2;
    animation: rotate-gift 3s ease-in-out infinite;
}

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

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
    border-color: var(--christmas-red);
}

/* ================================================
   LUZES DE NATAL PISCANDO
   ================================================ */
.christmas-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    z-index: 9998;
    display: flex;
    justify-content: space-around;
    background: var(--christmas-green);
    padding: 5px 0;
}

.christmas-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: bulb-glow 1.5s ease-in-out infinite;
}

.christmas-light:nth-child(1) { background: #ff0000; animation-delay: 0s; }
.christmas-light:nth-child(2) { background: #00ff00; animation-delay: 0.2s; }
.christmas-light:nth-child(3) { background: #0000ff; animation-delay: 0.4s; }
.christmas-light:nth-child(4) { background: #ffff00; animation-delay: 0.6s; }
.christmas-light:nth-child(5) { background: #ff00ff; animation-delay: 0.8s; }
.christmas-light:nth-child(6) { background: #00ffff; animation-delay: 1s; }
.christmas-light:nth-child(7) { background: #ff8800; animation-delay: 1.2s; }
.christmas-light:nth-child(8) { background: #ff0088; animation-delay: 1.4s; }

@keyframes bulb-glow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px currentColor;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        box-shadow: 0 0 5px currentColor;
        transform: scale(0.9);
    }
}

/* ================================================
   ÁRVORE DE NATAL NO CANTO
   ================================================ */
.christmas-tree {
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-size: 60px;
    z-index: 9997;
    animation: tree-shake 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

@keyframes tree-shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
}

/* ================================================
   PAPAI NOEL NO CANTO
   ================================================ */
.santa-claus {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 60px;
    z-index: 9997;
    animation: santa-wave 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

@keyframes santa-wave {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

/* ================================================
   FOOTER COM TEMA NATALINO
   ================================================ */
#footer {
    background: linear-gradient(135deg, var(--christmas-green) 0%, var(--christmas-red) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

#footer::before {
    content: '🎄 ❄️ 🎅 ❄️ 🎁 ❄️ 🔔 ❄️ ⭐ ❄️ 🎄';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 24px;
    animation: scroll-decoration 20s linear infinite;
}

@keyframes scroll-decoration {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ================================================
   BADGE DE PROMOÇÃO DE NATAL
   ================================================ */
.christmas-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    background: var(--christmas-red);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 10px rgba(196, 30, 58, 0.5);
    z-index: 3;
    animation: pulse-badge 1.5s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ================================================
   PREÇOS COM DESTAQUE NATALINO
   ================================================ */
.price-usd {
    color: var(--christmas-red);
    text-shadow: 1px 1px 2px rgba(196, 30, 58, 0.3);
    position: relative;
}

.price-usd::before {
    content: '🎁 ';
    font-size: 0.8em;
}

/* ================================================
   FOGOS DE ARTIFÍCIO (ANO NOVO)
   ================================================ */
.firework {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--christmas-gold);
    border-radius: 50%;
    animation: firework-explosion 2s ease-out infinite;
    pointer-events: none;
    z-index: 9996;
}

@keyframes firework-explosion {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--x), var(--y)) scale(0);
    }
}

/* ================================================
   MENSAGEM DE ANO NOVO
   ================================================ */
.new-year-message {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: var(--christmas-gold);
    text-align: center;
    padding: 20px;
    margin: 30px 0;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.new-year-message::before {
    content: '🎆';
    position: absolute;
    left: 20px;
    font-size: 40px;
    animation: firework-spin 3s linear infinite;
}

.new-year-message::after {
    content: '🎇';
    position: absolute;
    right: 20px;
    font-size: 40px;
    animation: firework-spin 3s linear infinite reverse;
}

@keyframes firework-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.new-year-message h2 {
    font-size: 32px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.new-year-message p {
    font-size: 18px;
    color: var(--christmas-white);
}

/* ================================================
   CONFETE CAINDO (ANO NOVO)
   ================================================ */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--christmas-gold);
    top: -10px;
    z-index: 9995;
    animation: confetti-fall 4s linear infinite;
    pointer-events: none;
}

@keyframes confetti-fall {
    0% {
        top: -10%;
        opacity: 1;
        transform: rotate(0deg);
    }
    100% {
        top: 110%;
        opacity: 0;
        transform: rotate(720deg);
    }
}

/* ================================================
   CONTADOR REGRESSIVO (ANO NOVO)
   ================================================ */
.countdown-container {
    position: fixed;
    top: 140px;
    right: 20px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #ffd700;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 999;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    text-align: center;
    border: 2px solid #ffd700;
}

/* ================================================
   RESPONSIVIDADE MOBILE
   ================================================ */
@media (max-width: 768px) {
    .christmas-banner {
        font-size: 14px;
        padding: 10px;
    }
    
    .christmas-tree,
    .santa-claus {
        font-size: 40px;
        bottom: 10px;
    }
    
    .christmas-tree {
        left: 10px;
    }
    
    .santa-claus {
        right: 10px;
    }
    
    .new-year-message h2 {
        font-size: 24px;
    }
    
    .new-year-message p {
        font-size: 14px;
    }
    
    /* Ajustar contador em mobile */
    .countdown-container {
        top: auto;
        bottom: 100px;
        right: 10px;
        padding: 10px 15px;
        font-size: 12px;
    }
}

/* ================================================
   MODO ESCURO OPCIONAL
   ================================================ */
@media (prefers-color-scheme: dark) {
    .snowflake {
        text-shadow: 0 0 5px #fff;
    }
}
