/* Estilos personalizados para o funil gamificado */

:root {
  --font-sans: var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
  --font-serif: __fallback;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
}

.bg-gradient-to-br {
  background: linear-gradient(to bottom right, #4c1d95, #312e81);
}

.bg-slate-800\/50 {
  background-color: rgba(30, 41, 59, 0.5);
}

.backdrop-blur-md {
  backdrop-filter: blur(12px);
}

.text-purple-400 {
  color: #c084fc;
}

.text-green-400 {
  color: #4ade80;
}

.text-blue-400 {
  color: #60a5fa;
}

.text-yellow-400 {
  color: #facc15;
}

.border-green-500\/30 {
  border-color: rgba(34, 197, 94, 0.3);
}

.bg-green-500\/30 {
  background-color: rgba(34, 197, 94, 0.3);
}

.border-blue-500\/20 {
  border-color: rgba(59, 130, 246, 0.2);
}

.bg-blue-500\/10 {
  background-color: rgba(59, 130, 246, 0.1);
}

.border-purple-500\/20 {
  border-color: rgba(168, 85, 247, 0.2);
}

.bg-purple-500\/10 {
  background-color: rgba(168, 85, 247, 0.1);
}

.border-green-500\/20 {
  border-color: rgba(34, 197, 94, 0.2);
}

.bg-green-500\/10 {
  background-color: rgba(34, 197, 94, 0.1);
}

.border-yellow-500\/20 {
  border-color: rgba(234, 179, 8, 0.2);
}

.bg-yellow-500\/10 {
  background-color: rgba(234, 179, 8, 0.1);
}

.bg-gradient-to-r {
  background: linear-gradient(to right, #16a34a, #059669);
}

.hover\:from-green-700:hover {
  background-image: linear-gradient(to right, #15803d, #047857);
}

button {
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:active {
  transform: translateY(0);
}

/* Animação de pulso para o botão */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(22, 163, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

button {
  animation: pulse 2s infinite;
}

/* Responsividade */
@media (max-width: 640px) {
  .sm\:text-3xl {
    font-size: 1.875rem;
  }
  
  .sm\:text-base {
    font-size: 1rem;
  }
  
  .sm\:grid-cols-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* Classes utilitárias */
.min-h-screen {
  min-height: 100vh;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.text-center {
  text-align: center;
}

.relative {
  position: relative;
}

.w-full {
  width: 100%;
}

.max-w-md {
  max-width: 28rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.p-6 {
  padding: 1.5rem;
}

.p-4 {
  padding: 1rem;
}

.p-3 {
  padding: 0.75rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-white {
  color: #ffffff;
}

.text-slate-300 {
  color: #cbd5e1;
}

.text-slate-400 {
  color: #94a3b8;
}

.border {
  border-width: 1px;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.h-auto {
  height: auto;
}

.w-12 {
  width: 3rem;
}

.h-12 {
  height: 3rem;
}

.w-5 {
  width: 1.25rem;
}

.h-5 {
  height: 1.25rem;
}

.w-4 {
  width: 1rem;
}

.h-4 {
  height: 1rem;
}

/* Estilos para a segunda página (após clicar no botão) */
.progress-container {
  width: 100%;
  background-color: rgba(30, 41, 59, 0.3);
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
}

.progress-bar {
  height: 0.75rem;
  background: linear-gradient(to right, #16a34a, #059669);
  border-radius: 0.25rem;
  transition: width 0.5s ease;
}

.step-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: rgba(30, 41, 59, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background-color: #16a34a;
}

.step.completed .step-number {
  background-color: #16a34a;
}

.step-label {
  font-size: 0.75rem;
  color: #cbd5e1;
}

.step.active .step-label {
  color: #ffffff;
  font-weight: 600;
}

.reward-card {
  background-color: rgba(30, 41, 59, 0.5);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(34, 197, 94, 0.2);
  transition: all 0.3s ease;
}

.reward-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-color: rgba(34, 197, 94, 0.5);
}

.reward-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.reward-title {
  font-weight: 600;
  color: #ffffff;
}

.reward-description {
  font-size: 0.875rem;
  color: #cbd5e1;
}

.reward-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #4ade80;
  margin-top: 0.5rem;
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease forwards;
}

/* Contador de tempo */
.timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.timer-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #facc15;
}

.timer-label {
  font-size: 0.875rem;
  color: #cbd5e1;
}

/* Confetes para celebração */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background-color: #4ade80;
  opacity: 0;
  transform: translateY(0) rotate(0);
  pointer-events: none;
  z-index: 999;
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translateY(-100vh) rotate(0);
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg);
  }
}

.confetti.active {
  animation: confetti-fall 5s ease-out forwards;
}

/* Badges e conquistas */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.badge-primary {
  background-color: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.badge-success {
  background-color: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.badge-warning {
  background-color: rgba(234, 179, 8, 0.2);
  color: #facc15;
}

/* Efeitos de hover */
.hover-scale {
  transition: transform 0.2s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Efeitos de brilho */
.glow {
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.glow-pulse {
  animation: glow-pulse 2s infinite;
}

@keyframes glow-pulse {
  0% {
    box-shadow: 0 0 5px rgba(74, 222, 128, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(74, 222, 128, 0.5);
  }
}


/* Estilos adicionais para garantir que elementos ocultos funcionem corretamente */
.hidden {
  display: none !important;
}

/* Melhorias na animação de fadeIn */
.animate-fadeIn {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Melhorias nos estilos dos passos */
.step.completed .step-number {
  background-color: #16a34a;
  color: white;
}

.step.active .step-number {
  background-color: #60a5fa;
  color: white;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

/* Melhorias na barra de progresso */
.progress-bar {
  transition: width 0.5s ease;
}

/* Melhorias nas recompensas */
.reward-card {
  transition: all 0.3s ease;
}

/* Melhorias nos confetes */
.confetti.active {
  animation: confetti-fall 5s ease-out forwards;
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translateY(-100vh) rotate(0);
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg);
  }
}

