/* 🎄 TEMA DE NATAL - ProAxis Video Downloader */
/* Criado: Novembro 2025 */

/* ========== BACKGROUND NATALINO ========== */

body {
    /* Degradê natalino VERTICAL: Vermelho (#c41e3a) em cima → Verde (#0f7d40) embaixo */
    background: linear-gradient(
        180deg,
        #c41e3a 0%,
        #a83a3a 20%,
        #8b4545 40%,
        #2d9a5d 60%,
        #1a8a4a 80%,
        #0f7d40 100%
    ) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    position: relative;
}

/* ========== FLOCOS DE NEVE ========== */

.snowflake {
    position: fixed;
    top: -10%;
    color: white;
    font-size: 1em;
    user-select: none;
    pointer-events: none;
    z-index: 9999;
    animation: snowfall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes snowfall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) translateX(var(--drift, 0)) rotate(360deg);
        opacity: 0.3;
    }
}

/* ========== DECORAÇÕES DE NATAL ========== */

/* Container principal das decorações */
.christmas-decorations {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
}

/* ========== PISCA-PISCAS NO TOPO ========== */
.christmas-lights {
    position: fixed;
    top: 10px;
    left: 0;
    right: 0;
    height: 30px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    pointer-events: none;
}

.light {
    width: 10px;
    height: 15px;
    border-radius: 0 0 50% 50%;
    position: relative;
    animation: lightBlink 1.5s ease-in-out infinite;
}

/* Fio do pisca-pisca */
.light::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 5px;
    background: #333;
}

/* Brilho embaixo da luz */
.light::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid currentColor;
    opacity: 0.3;
}

/* Cores individuais de cada luz com delays diferentes */
.light:nth-child(1) {
    background: #ff4444;
    color: #ff4444;
    animation-delay: 0s;
}

.light:nth-child(2) {
    background: #44ff44;
    color: #44ff44;
    animation-delay: 0.2s;
}

.light:nth-child(3) {
    background: #4444ff;
    color: #4444ff;
    animation-delay: 0.4s;
}

.light:nth-child(4) {
    background: #ffd700;
    color: #ffd700;
    animation-delay: 0.6s;
}

.light:nth-child(5) {
    background: #ff44ff;
    color: #ff44ff;
    animation-delay: 0.8s;
}

.light:nth-child(6) {
    background: #44ffff;
    color: #44ffff;
    animation-delay: 1s;
}

.light:nth-child(7) {
    background: #ff8844;
    color: #ff8844;
    animation-delay: 1.2s;
}

.light:nth-child(8) {
    background: #ff4444;
    color: #ff4444;
    animation-delay: 0.3s;
}

.light:nth-child(9) {
    background: #44ff44;
    color: #44ff44;
    animation-delay: 0.5s;
}

.light:nth-child(10) {
    background: #4444ff;
    color: #4444ff;
    animation-delay: 0.7s;
}

/* ========== ÁRVORE DE NATAL ========== */
.christmas-tree {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
    pointer-events: none;
}

/* Estrela no topo */
.tree-star {
    font-size: 28px;
    margin-bottom: 5px;
    animation: starTwinkle 1.5s ease-in-out infinite;
}

/* Container das camadas */
.tree-layers {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Camada base (triângulo com CSS borders) */
.tree-layer {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 60px solid #2d7a3e;
    position: relative;
    margin-top: -15px;
}

/* Camada 1 - Topo (menor) */
.tree-layer:nth-child(1) {
    border-left-width: 35px;
    border-right-width: 35px;
    border-bottom-width: 50px;
    border-bottom-color: #2d8a42;  /* Verde mais claro */
}

/* Camada 2 - Meio */
.tree-layer:nth-child(2) {
    border-bottom-color: #2d7a3e;  /* Verde médio */
}

/* Camada 3 - Base (maior) */
.tree-layer:nth-child(3) {
    border-left-width: 60px;
    border-right-width: 60px;
    border-bottom-width: 70px;
    border-bottom-color: #256b34;  /* Verde mais escuro */
}

/* Tronco da árvore */
.tree-trunk {
    width: 30px;
    height: 40px;
    background: linear-gradient(to right, #6b4423, #8b5a2b);
    border-radius: 4px;
    margin-top: -5px;
}

/* ========== BOLINHAS NAS PONTAS ========== */
.tree-ornament {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: ornamentGlow 2s ease-in-out infinite;
    z-index: 10;
}

/* Bolinhas na camada 1 (topo) */
.tree-layer:nth-child(1) .tip-left {
    bottom: -50px;
    left: -35px;
    color: #ff4444;
    background: #ff4444;
}

.tree-layer:nth-child(1) .tip-right {
    bottom: -50px;
    right: -35px;
    color: #ffd700;
    background: #ffd700;
}

/* Bolinhas na camada 2 (meio) */
.tree-layer:nth-child(2) .tip-left {
    bottom: -57px;
    left: -50px;
    color: #4444ff;
    background: #4444ff;
}

.tree-layer:nth-child(2) .tip-right {
    bottom: -57px;
    right: -50px;
    color: #ff44ff;
    background: #ff44ff;
}

/* Bolinhas na camada 3 (base) */
.tree-layer:nth-child(3) .tip-left {
    bottom: -66px;
    left: -60px;
    color: #ff4444;
    background: #ff4444;
}

.tree-layer:nth-child(3) .tip-right {
    bottom: -66px;
    right: -60px;
    color: #ffd700;
    background: #ffd700;
}

/* ========== ANIMAÇÕES ========== */

/* Animação da Estrela (Rotação e Brilho) */
@keyframes starTwinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1) rotate(180deg);
    }
}

/* Animação das Bolinhas (Brilho Pulsante) */
@keyframes ornamentGlow {
    0%, 100% {
        box-shadow: 0 0 8px currentColor;
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 15px currentColor, 0 0 25px currentColor;
        transform: scale(1.1);
    }
}

/* Animação dos Pisca-piscas (Intermitência) */
@keyframes lightBlink {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        opacity: 0.3;
        filter: brightness(0.5);
    }
}

/* ========== RESPONSIVIDADE ========== */

@media (max-width: 768px) {
    .christmas-tree {
        display: none;  /* Esconde a árvore em mobile */
    }

    .christmas-lights {
        top: 5px;
        height: 25px;
    }

    .light {
        width: 8px;
        height: 12px;
    }
    
    .snowflake {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .christmas-lights {
        display: none;  /* Esconde as luzes em telas muito pequenas */
    }
}
