/* ============================================
   🎄 CREWCORE - CHRISTMAS THEME 2025
   Efeitos e decorações natalinas
   Versão melhorada para conforto do usuário
   ============================================ */

/* Variáveis de Natal - Cores mais suaves */
:root {
    --christmas-red: #c41e3a;
    --christmas-red-glow: rgba(196, 30, 58, 0.3);
    --christmas-green: #228b22;
    --christmas-green-glow: rgba(34, 139, 34, 0.3);
    --christmas-gold: #ffd700;
    --christmas-gold-glow: rgba(255, 215, 0, 0.25);
    --christmas-snow: #f0f8ff;
    --christmas-light-red: #ff6b6b;
    --christmas-light-green: #90ee90;
    --christmas-warm-bg: rgba(139, 69, 19, 0.05);
}

/* ============================================
   EFEITO DE NEVE ANIMADA - MAIS SUTIL
   ============================================ */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: var(--christmas-snow);
    font-size: 0.9em;
    opacity: 0.5;
    animation: snowfall linear infinite;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
    filter: blur(0.3px);
}

/* Neve com posições variadas e animações mais lentas */
.snowflake:nth-child(1) {
    left: 5%;
    animation-duration: 15s;
    animation-delay: 0s;
    font-size: 0.7em;
    opacity: 0.4;
}

.snowflake:nth-child(2) {
    left: 15%;
    animation-duration: 18s;
    animation-delay: 2s;
    font-size: 1em;
    opacity: 0.5;
}

.snowflake:nth-child(3) {
    left: 25%;
    animation-duration: 12s;
    animation-delay: 4s;
    font-size: 0.5em;
    opacity: 0.35;
}

.snowflake:nth-child(4) {
    left: 35%;
    animation-duration: 20s;
    animation-delay: 1s;
    font-size: 0.8em;
    opacity: 0.45;
}

.snowflake:nth-child(5) {
    left: 45%;
    animation-duration: 16s;
    animation-delay: 5s;
    font-size: 0.75em;
    opacity: 0.4;
}

.snowflake:nth-child(6) {
    left: 55%;
    animation-duration: 14s;
    animation-delay: 3s;
    font-size: 0.9em;
    opacity: 0.5;
}

.snowflake:nth-child(7) {
    left: 65%;
    animation-duration: 19s;
    animation-delay: 6s;
    font-size: 0.6em;
    opacity: 0.35;
}

.snowflake:nth-child(8) {
    left: 75%;
    animation-duration: 17s;
    animation-delay: 2.5s;
    font-size: 1.1em;
    opacity: 0.45;
}

.snowflake:nth-child(9) {
    left: 85%;
    animation-duration: 21s;
    animation-delay: 0.5s;
    font-size: 0.65em;
    opacity: 0.4;
}

.snowflake:nth-child(10) {
    left: 95%;
    animation-duration: 13s;
    animation-delay: 4.5s;
    font-size: 0.85em;
    opacity: 0.5;
}

@keyframes snowfall {
    0% {
        transform: translateY(-20px) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(100vh) translateX(20px) rotate(180deg);
        opacity: 0;
    }
}

/* ============================================
   DECORAÇÕES NO HEADER - MAIS SUTIS
   ============================================ */
.main-header {
    position: relative;
}

.main-header::before {
    content: '🎄';
    position: absolute;
    left: 10px;
    top: 10px;
    font-size: 1.3em;
    opacity: 0.9;
    animation: gentle-swing 4s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.main-header::after {
    content: '⭐';
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 1.1em;
    opacity: 0.9;
    animation: gentle-twinkle 3s ease-in-out infinite;
    filter: drop-shadow(0 0 6px var(--christmas-gold-glow));
}

@keyframes gentle-swing {

    0%,
    100% {
        transform: rotate(-3deg);
    }

    50% {
        transform: rotate(3deg);
    }
}

@keyframes gentle-twinkle {

    0%,
    100% {
        opacity: 0.9;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

/* ============================================
   TÍTULO COM CORES NATALINAS - ANIMAÇÃO SUAVE
   ============================================ */
header h1 {
    background: linear-gradient(90deg,
            var(--christmas-red),
            var(--christmas-gold),
            var(--christmas-green),
            var(--christmas-gold),
            var(--christmas-red));
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: christmas-gradient 8s linear infinite;
}

@keyframes christmas-gradient {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 300% center;
    }
}

/* ============================================
   CARDS DE PLANOS - ESTILO NATALINO ELEGANTE
   ============================================ */
.premium-plan {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
    background: linear-gradient(145deg,
            rgba(26, 36, 51, 0.95) 0%,
            rgba(15, 18, 25, 0.95) 100%);
}

.premium-plan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg,
            var(--christmas-red),
            var(--christmas-gold),
            var(--christmas-green));
    border-radius: 0 0 3px 3px;
    opacity: 0.8;
}

.premium-plan:hover {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow:
        0 0 25px var(--christmas-gold-glow),
        inset 0 0 30px rgba(255, 215, 0, 0.03);
    z-index: 10;
}

/* Badge "MELHOR VALOR" com estilo natalino */
.plan-best {
    background: linear-gradient(135deg, var(--christmas-red), #a01830) !important;
    box-shadow: 0 2px 12px var(--christmas-red-glow);
    animation: badge-glow 3s ease-in-out infinite alternate;
}

@keyframes badge-glow {
    0% {
        box-shadow: 0 2px 12px var(--christmas-red-glow);
    }

    100% {
        box-shadow: 0 2px 20px rgba(196, 30, 58, 0.5);
    }
}

/* Badge "LIFETIME" com presente de Natal */
.premium-plan[data-plan="lifetime"] .plan-name::after {
    content: ' 🎁';
    animation: gift-bounce 2s ease-in-out infinite;
}

@keyframes gift-bounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-2px) rotate(5deg);
    }
}

/* ❄️ Plano Featured (365 Dias) com destaque natalino especial */
.plan-featured {
    border: 2px solid rgba(255, 215, 0, 0.5) !important;
    box-shadow:
        0 0 25px rgba(255, 215, 0, 0.15),
        0 0 50px rgba(196, 30, 58, 0.05),
        inset 0 0 30px rgba(255, 215, 0, 0.02) !important;
}

.plan-featured::after {
    content: '⭐';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.9em;
    animation: star-twinkle 2s ease-in-out infinite;
    opacity: 0.9;
}

@keyframes star-twinkle {

    0%,
    100% {
        opacity: 0.9;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

/* 🎄 Plano Lifetime com coroa natalina */
.plan-lifetime {
    border: 2px solid rgba(155, 89, 182, 0.5) !important;
    background: linear-gradient(165deg,
            rgba(60, 35, 80, 0.9) 0%,
            rgba(35, 20, 50, 0.95) 100%) !important;
}

.plan-lifetime:hover {
    box-shadow:
        0 0 30px rgba(155, 89, 182, 0.25),
        0 0 60px rgba(155, 89, 182, 0.1),
        inset 0 0 30px rgba(155, 89, 182, 0.05) !important;
}

/* ============================================
   BOTÕES COM EFEITO FESTIVO - MAIS SUAVE
   ============================================ */
.plan-buy-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.plan-buy-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 35%,
            rgba(255, 255, 255, 0.15) 50%,
            transparent 65%);
    animation: btn-shine 4s ease-in-out infinite;
}

.plan-buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@keyframes btn-shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* ============================================
   LUZES DE NATAL - ANIMAÇÃO MAIS SUAVE
   ============================================ */
.container {
    position: relative;
}

.container::before {
    content: '✨🔴🟢🔵🟡✨🔴🟢🔵🟡✨';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6em;
    letter-spacing: 6px;
    animation: lights-gentle 3s ease-in-out infinite;
    filter: drop-shadow(0 0 4px currentColor);
    opacity: 0.85;
}

@keyframes lights-gentle {

    0%,
    100% {
        opacity: 0.85;
        filter: drop-shadow(0 0 4px currentColor);
    }

    50% {
        opacity: 0.65;
        filter: drop-shadow(0 0 8px currentColor);
    }
}

/* ============================================
   BORDA FESTIVA NO CONTAINER
   ============================================ */
.container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow:
        inset 0 0 0 1px rgba(255, 215, 0, 0.05),
        inset 0 0 50px rgba(196, 30, 58, 0.02);
}

/* ============================================
   MENSAGEM DE BOAS FESTAS (Banner)
   ============================================ */
.christmas-banner {
    background: linear-gradient(135deg,
            var(--christmas-red) 0%,
            #a01830 50%,
            #8b0000 100%);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9em;
    box-shadow:
        0 4px 15px var(--christmas-red-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: banner-glow 4s ease-in-out infinite alternate;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.christmas-banner::before {
    content: '🎅 ';
}

.christmas-banner::after {
    content: ' 🎄';
}

@keyframes banner-glow {
    0% {
        box-shadow:
            0 4px 15px var(--christmas-red-glow),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }

    100% {
        box-shadow:
            0 4px 25px rgba(196, 30, 58, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

/* ============================================
   FOOTER NATALINO - Via HTML element (traduzível)
   ============================================ */
.site-footer {
    position: relative;
}

.christmas-footer-msg {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--christmas-snow);
    font-size: 0.8em;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

/* ============================================
   EFEITO DE BRILHO SUTIL NOS PREÇOS
   ============================================ */
.plan-price-value {
    text-shadow: 0 0 10px var(--christmas-gold-glow);
}

/* ============================================
   DISCÓRDIA WIDGET COM ESTILO FESTIVO
   ============================================ */
.discord-widget-container {
    border: 1px solid rgba(196, 30, 58, 0.3) !important;
}

/* ============================================
   BOTÃO DE SUPORTE FESTIVO
   ============================================ */
.support-button {
    position: relative;
}

.support-button::before {
    content: '🎁';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.7em;
    animation: gift-float 3s ease-in-out infinite;
}

@keyframes gift-float {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-3px) rotate(5deg);
    }
}

/* ============================================
   KEY CONTAINER COM BORDA FESTIVA
   ============================================ */
.key-container {
    border: 1px solid rgba(255, 215, 0, 0.15) !important;
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.05),
        inset 0 0 30px rgba(196, 30, 58, 0.02);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
    .snowflake {
        font-size: 0.6em;
        opacity: 0.35;
    }

    .container::before {
        font-size: 0.5em;
        letter-spacing: 4px;
        top: -10px;
    }

    .support-button::before {
        display: none;
    }
}

@media (max-width: 480px) {

    .main-header::before,
    .main-header::after {
        font-size: 1em;
        top: 5px;
    }

    .main-header::before {
        left: 5px;
    }

    .main-header::after {
        right: 5px;
    }

    .container::before {
        content: '✨🔴🟢🔵🟡✨';
        font-size: 0.45em;
    }

    .site-footer::before {
        font-size: 0.7em;
    }
}

/* ============================================
   REDUZIR MOVIMENTO PARA ACESSIBILIDADE
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    .snowflake,
    header h1,
    .plan-buy-btn::after,
    .container::before,
    .plan-best,
    .premium-plan[data-plan="lifetime"] .plan-name::after,
    .support-button::before {
        animation: none !important;
    }

    .snowflakes {
        display: none;
    }

    .premium-plan:hover {
        transform: none;
    }

    .plan-buy-btn:hover {
        transform: none;
    }
}

/* ============================================
   MODO ESCURO APRIMORADO
   ============================================ */
@media (prefers-color-scheme: dark) {
    .christmas-banner {
        background: linear-gradient(135deg,
                rgba(196, 30, 58, 0.9) 0%,
                rgba(139, 0, 0, 0.9) 100%);
    }
}