/* Reset e Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #0f1419 0%, #1a252f 50%, #0d1117 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  color: #fff;
}

/* Neve Animada */
.snowfall {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -20px;
  color: #fff;
  font-size: 1rem;
  animation: fall linear infinite;
  opacity: 0.8;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0.3;
  }
}

/* Container Principal */
.main-container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

/* Header Natalino */
.christmas-header {
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
}

.christmas-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ffd700 0%, #ffec8b 25%, #ffd700 50%, #b8860b 75%, #ffd700 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

.christmas-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: #a8d5a8;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Decoração de Bolas de Natal */
.ornaments {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.ornament {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  animation: swing 2s ease-in-out infinite;
  box-shadow: 
    inset -5px -5px 15px rgba(0,0,0,0.3),
    inset 5px 5px 15px rgba(255,255,255,0.2),
    0 5px 20px rgba(0,0,0,0.3);
}

.ornament::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #ffd700;
  border-radius: 2px;
}

.ornament.red { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
.ornament.gold { background: linear-gradient(135deg, #f1c40f 0%, #d4a017 100%); }
.ornament.green { background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%); }
.ornament.blue { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }

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

/* Container do Player */
.player-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 1rem auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 0 0 4px rgba(255, 215, 0, 0.3),
    0 0 0 8px rgba(220, 20, 60, 0.2),
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(255, 215, 0, 0.1);
  background: linear-gradient(135deg, #c0392b 0%, #27ae60 100%);
  padding: 4px;
}

.player-inner {
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.player-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
}

/* Badge Live */
.live-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(220, 20, 60, 0.95);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
  z-index: 10;
}

.live-dot {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  animation: pulse-live 1.5s ease-in-out infinite;
}

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

/* Seção Info */
.info-section {
  text-align: center;
  padding: 2rem 1rem;
  max-width: 800px;
}

.info-title {
  font-size: 1.5rem;
  color: #ffd700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.info-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-size: 1rem;
}

/* Árvore de Natal CSS */
.christmas-tree {
  margin: 2rem auto;
  text-align: center;
}

.tree-star {
  font-size: 2rem;
  color: #ffd700;
  animation: twinkle 1s ease-in-out infinite;
  text-shadow: 0 0 20px #ffd700;
}

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

.tree-layer {
  margin: 0 auto;
  height: 0;
  border-left-style: solid;
  border-right-style: solid;
  border-bottom-style: solid;
  border-left-color: transparent;
  border-right-color: transparent;
}

.tree-layer-1 {
  border-left-width: 30px;
  border-right-width: 30px;
  border-bottom-width: 40px;
  border-bottom-color: #2d5a27;
}

.tree-layer-2 {
  border-left-width: 40px;
  border-right-width: 40px;
  border-bottom-width: 50px;
  border-bottom-color: #27ae60;
}

.tree-layer-3 {
  border-left-width: 50px;
  border-right-width: 50px;
  border-bottom-width: 60px;
  border-bottom-color: #2d5a27;
}

.tree-trunk {
  width: 20px;
  height: 25px;
  background: linear-gradient(135deg, #8B4513, #654321);
  margin: 0 auto;
  border-radius: 0 0 5px 5px;
}

/* Footer */
.christmas-footer {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin-top: auto;
}

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

.light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

.light:nth-child(1) { background: #e74c3c; animation-delay: 0s; }
.light:nth-child(2) { background: #f1c40f; animation-delay: 0.3s; }
.light:nth-child(3) { background: #27ae60; animation-delay: 0.6s; }
.light:nth-child(4) { background: #3498db; animation-delay: 0.9s; }
.light:nth-child(5) { background: #9b59b6; animation-delay: 1.2s; }
.light:nth-child(6) { background: #e74c3c; animation-delay: 1.5s; }
.light:nth-child(7) { background: #f1c40f; animation-delay: 1.8s; }

@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px currentColor; }
  50% { opacity: 0.4; box-shadow: none; }
}

/* Decorações de Canto */
.corner-decoration {
  position: fixed;
  z-index: 0;
  pointer-events: none;
}

.corner-decoration.top-left {
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(ellipse at top left, rgba(220, 20, 60, 0.15) 0%, transparent 70%);
}

.corner-decoration.top-right {
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(ellipse at top right, rgba(39, 174, 96, 0.15) 0%, transparent 70%);
}

.corner-decoration.bottom-left {
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(ellipse at bottom left, rgba(39, 174, 96, 0.15) 0%, transparent 70%);
}

.corner-decoration.bottom-right {
  bottom: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(ellipse at bottom right, rgba(220, 20, 60, 0.15) 0%, transparent 70%);
}

/* Guirlanda no topo */
.garland {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    #e74c3c 0px,
    #e74c3c 20px,
    #27ae60 20px,
    #27ae60 40px
  );
  z-index: 100;
}

/* Responsividade */
@media (max-width: 768px) {
  .christmas-header {
    padding: 1.5rem 1rem;
  }
  
  .player-container {
    margin: 0.5rem;
    border-radius: 15px;
  }
  
  .ornaments {
    gap: 0.5rem;
  }
  
  .ornament {
    width: 20px;
    height: 20px;
  }
  
  .live-badge {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}
