/*
Theme Name: WhatsApp Redirect Top Descontos
Description: Tema para página de redirecionamento do WhatsApp com countdown
Version: 1.0
Author: Top Descontos
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 50%, #f0fdf4 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.redirect-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
}

/* Floating discount elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.discount-badge {
  position: absolute;
  background: #ef4444;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: bold;
  animation: bounce 2s infinite;
}

.discount-badge.green {
  background: #22c55e;
}
.discount-badge.yellow {
  background: #eab308;
}
.discount-badge.purple {
  background: #a855f7;
}

.discount-badge:nth-child(1) {
  top: 5rem;
  left: 2.5rem;
  transform: rotate(12deg);
  animation-delay: 0.1s;
}

.discount-badge:nth-child(2) {
  top: 8rem;
  right: 4rem;
  transform: rotate(-12deg);
  animation-delay: 0.3s;
}

.discount-badge:nth-child(3) {
  bottom: 8rem;
  left: 5rem;
  transform: rotate(6deg);
  animation-delay: 0.5s;
}

.discount-badge:nth-child(4) {
  bottom: 5rem;
  right: 2.5rem;
  transform: rotate(-6deg);
  animation-delay: 0.7s;
}

/* Floating icons */
.floating-icon {
  position: absolute;
  opacity: 0.3;
  animation: pulse 2s infinite;
}

.floating-icon:nth-child(5) {
  top: 4rem;
  right: 8rem;
  animation-delay: 0s;
}

.floating-icon:nth-child(6) {
  top: 10rem;
  left: 8rem;
  animation-delay: 0.2s;
}

.floating-icon:nth-child(7) {
  bottom: 10rem;
  right: 6rem;
  animation-delay: 0.4s;
}

.floating-icon:nth-child(8) {
  bottom: 4rem;
  left: 4rem;
  animation-delay: 0.6s;
}

/* Main content */
.main-content {
  max-width: 48rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.logo-container {
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  background: transparent;
}

.logo {
  width: 200px;
  height: 200px;
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
  animation: pulse 2s infinite;
  background: transparent;
  mix-blend-mode: normal;
}

.logo-glow {
  position: absolute;
  top: -1rem;
  left: -1rem;
  right: -1rem;
  bottom: -1rem;
  background: linear-gradient(45deg, #3b82f6, #22c55e);
  border-radius: 50%;
  opacity: 0.2;
  animation: ping 2s infinite;
}

.headline {
  font-size: 2rem;
  font-weight: bold;
  color: #1f2937;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.headline .attention {
  color: #dc2626;
}

.countdown-text {
  font-size: 1.5rem;
  color: #374151;
  margin-bottom: 2rem;
}

.countdown-number {
  color: #16a34a;
  font-weight: bold;
  font-size: 2rem;
}

/* Countdown circle */
.countdown-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.countdown-circle {
  position: relative;
  width: 8rem;
  height: 8rem;
}

.countdown-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.countdown-circle .bg-circle {
  stroke: #e5e7eb;
  stroke-width: 8;
  fill: transparent;
}

.countdown-circle .progress-circle {
  stroke: #22c55e;
  stroke-width: 8;
  fill: transparent;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}

.countdown-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  font-weight: bold;
  color: #16a34a;
}

/* Info card */
.info-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(229, 231, 235, 0.5);
  margin-bottom: 2rem;
}

.subheadline {
  font-size: 1.25rem;
  color: #374151;
  margin-bottom: 1.5rem;
}

.subheadline .highlight {
  font-weight: bold;
  color: #2563eb;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon.red {
  background: #fef2f2;
  color: #dc2626;
}
.feature-icon.blue {
  background: #eff6ff;
  color: #2563eb;
}
.feature-icon.green {
  background: #f0fdf4;
  color: #16a34a;
}
.feature-icon.yellow {
  background: #fefce8;
  color: #ca8a04;
}

.feature-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.loading-content {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
}

.loading-spinner {
  width: 3rem;
  height: 3rem;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #16a34a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.loading-text {
  font-size: 1.125rem;
  font-weight: 500;
  color: #374151;
}

/* WhatsApp info */
.whatsapp-info {
  text-align: center;
  opacity: 0.75;
  margin-top: 2rem;
}

.whatsapp-info p {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.whatsapp-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #16a34a;
}

.whatsapp-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.whatsapp-text {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Animations */
@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  40%,
  43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (min-width: 768px) {
  .headline {
    font-size: 2.5rem;
  }

  .countdown-text {
    font-size: 1.75rem;
  }

  .subheadline {
    font-size: 1.5rem;
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .discount-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
  }

  .logo {
    width: 150px;
    height: 150px;
  }

  .headline {
    font-size: 1.5rem;
  }

  .countdown-text {
    font-size: 1.25rem;
  }

  .countdown-number {
    font-size: 1.75rem;
  }
}
