/**
 * Unified Promo Banner Styles
 * Used on both main landing page and app pages
 */

.promo-banner {
  padding: 14px 50px 14px 20px;
  text-align: center;
  position: relative;
  display: none;
}

.promo-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.promo-banner-text {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.promo-title {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.promo-subtitle {
  font-size: 14px;
  opacity: 0.95;
}

/* Countdown timer */
.promo-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
}

.promo-timer-icon {
  font-size: 14px;
}

.promo-timer-value {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  letter-spacing: 0.5px;
}

.promo-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.promo-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.promo-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.7;
  padding: 8px;
  line-height: 1;
  border-radius: 50%;
  transition: all 0.2s;
  z-index: 3;
}

.promo-close:hover {
  opacity: 1;
  background: rgba(255,255,255,0.2);
}

/* =====================================================
   New Year Theme
   ===================================================== */
.promo-banner.newyear {
  background: linear-gradient(135deg, #0d5c36 0%, #166534 30%, #14532d 70%, #052e16 100%);
  border-bottom: 3px solid #dc2626;
  color: white;
  overflow: hidden;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Falling snow effect */
.promo-banner.newyear::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.4) 1px, transparent 1px),
    radial-gradient(circle at 30% 60%, rgba(255,255,255,0.3) 1px, transparent 1px),
    radial-gradient(circle at 50% 10%, rgba(255,255,255,0.5) 1px, transparent 1px),
    radial-gradient(circle at 70% 40%, rgba(255,255,255,0.3) 1px, transparent 1px),
    radial-gradient(circle at 90% 80%, rgba(255,255,255,0.4) 1px, transparent 1px),
    radial-gradient(circle at 20% 90%, rgba(255,255,255,0.3) 1px, transparent 1px),
    radial-gradient(circle at 60% 75%, rgba(255,255,255,0.4) 1px, transparent 1px),
    radial-gradient(circle at 80% 15%, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 100px 50px;
  animation: snow-fall 8s linear infinite;
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}

@keyframes snow-fall {
  0% { background-position: 0 0; }
  100% { background-position: 0 50px; }
}

/* Christmas decorations - left side */
.promo-banner.newyear .promo-banner-content::before {
  content: '🎄';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  opacity: 0.9;
}

/* Christmas decorations - right side */
.promo-banner.newyear .promo-banner-content::after {
  content: '🎅';
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  opacity: 0.9;
}

/* Garland effect at top */
.promo-banner.newyear::after {
  content: '✨ ✨ ✨ ✨ ✨';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  letter-spacing: 30px;
  opacity: 0.6;
}

.promo-banner.newyear .promo-title {
  color: #fef2f2;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 255, 255, 0.1);
}

/* Ornament balls before title */
.promo-banner.newyear .promo-title::before {
  content: '🔴';
  font-size: 14px;
  margin-right: 8px;
}

.promo-banner.newyear .promo-title::after {
  content: '🟡';
  font-size: 14px;
  margin-left: 8px;
}

/* Present box animation */
@keyframes gift-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.promo-banner.newyear .promo-subtitle {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.promo-banner.newyear .promo-timer {
  background: rgba(220, 38, 38, 0.25);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.promo-banner.newyear .promo-timer-icon::before {
  content: '🎁 ';
  animation: gift-bounce 1s ease-in-out infinite;
  display: inline-block;
}

.promo-banner.newyear .promo-btn {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
  color: white;
  box-shadow:
    0 4px 15px rgba(220, 38, 38, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-banner.newyear .promo-btn:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  box-shadow:
    0 6px 20px rgba(220, 38, 38, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.promo-banner.newyear .promo-close {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.promo-banner.newyear .promo-close:hover {
  background: rgba(220, 38, 38, 0.3);
}

/* =====================================================
   Mobile adjustments
   ===================================================== */
@media (max-width: 768px) {
  .promo-banner {
    padding: 12px 45px 12px 12px;
  }

  .promo-banner-content {
    gap: 10px;
  }

  .promo-banner-text {
    gap: 8px;
  }

  .promo-title {
    font-size: 14px;
  }

  .promo-subtitle {
    font-size: 12px;
  }

  .promo-timer {
    padding: 4px 8px;
    font-size: 11px;
  }

  .promo-btn {
    padding: 6px 14px;
    font-size: 12px;
  }

  /* Hide decorations on mobile */
  .promo-banner.newyear .promo-banner-content::before,
  .promo-banner.newyear .promo-banner-content::after {
    display: none;
  }

  /* Smaller ornaments around title on mobile */
  .promo-banner.newyear .promo-title::before,
  .promo-banner.newyear .promo-title::after {
    font-size: 10px;
    margin: 0 4px;
  }

  /* Keep snow but reduce opacity on mobile */
  .promo-banner.newyear::before {
    opacity: 0.25;
  }
}
