/*
Theme Name: Quiz Medo de Dirigir
Theme URI: https://drive-free-quiz.lovable.app
Author: MASD
Description: Tema WordPress para o Quiz de Medo de Dirigir - Método MASD
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quiz-medo-dirigir
*/

/* ============================================
   RESET E BASE
   ============================================ */

:root {
  --background: 270 50% 98%;
  --foreground: 270 50% 10%;
  --card: 0 0% 100%;
  --card-foreground: 270 50% 10%;
  --primary: 270 60% 60%;
  --primary-foreground: 0 0% 100%;
  --secondary: 150 30% 90%;
  --secondary-foreground: 150 30% 20%;
  --muted: 270 20% 95%;
  --muted-foreground: 270 20% 40%;
  --accent: 270 40% 95%;
  --accent-foreground: 270 40% 25%;
  --border: 270 20% 90%;
  --ring: 270 60% 60%;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, hsl(270 50% 98%) 0%, hsl(150 30% 97%) 50%, hsl(270 40% 97%) 100%);
  min-height: 100vh;
  color: hsl(var(--foreground));
  line-height: 1.6;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }

@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
}

/* ============================================
   LAYOUT
   ============================================ */

.quiz-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.quiz-wrapper {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: hsl(var(--card));
  border-radius: 1.5rem;
  box-shadow: 0 4px 20px -4px rgba(139, 92, 246, 0.1);
  padding: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .card {
    padding: 2rem;
  }
}

.card-highlight {
  background: hsl(var(--secondary) / 0.5);
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid hsl(var(--border));
  text-align: left;
}

/* ============================================
   BOTÕES
   ============================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  background: linear-gradient(135deg, hsl(270 60% 60%) 0%, hsl(270 70% 70%) 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 40px -10px hsl(270 60% 60% / 0.5);
  text-decoration: none;
}

.btn-primary:hover {
  transform: scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-cta {
  padding: 1.25rem 2rem;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 10px 40px -10px hsl(270 60% 60% / 0.5);
  }
  50% {
    box-shadow: 0 10px 50px -5px hsl(270 60% 60% / 0.7);
  }
}

/* ============================================
   OPÇÕES DO QUIZ
   ============================================ */

.quiz-option {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  text-align: left;
  transition: all 0.3s;
  border: 2px solid hsl(var(--border));
  background: hsl(var(--card));
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quiz-option:hover {
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: 0 4px 20px -4px rgba(139, 92, 246, 0.1);
}

.quiz-option.selected {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.1);
}

.quiz-option-emoji {
  font-size: 1.25rem;
}

.quiz-option-text {
  font-weight: 500;
  color: hsl(var(--foreground));
}

/* ============================================
   BARRA DE PROGRESSO
   ============================================ */

.progress-container {
  margin-bottom: 2rem;
}

.progress-bar-bg {
  height: 0.5rem;
  background: hsl(var(--muted));
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, hsl(var(--primary)) 0%, hsl(270 70% 70%) 100%);
  border-radius: 9999px;
  transition: width 0.5s ease-out;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ============================================
   TEXTOS ESPECIAIS
   ============================================ */

.text-primary {
  color: hsl(var(--primary));
}

.text-muted {
  color: hsl(var(--muted-foreground));
}

.text-emphasis {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--primary));
  padding: 0.5rem 1rem;
  background: hsl(var(--primary) / 0.1);
  border-radius: 0.5rem;
  border-left: 4px solid hsl(var(--primary));
}

.microtext {
  background: hsl(var(--primary) / 0.05);
  padding: 1rem;
  border-radius: 0.75rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.9375rem;
  margin-top: 1.5rem;
}

.educational-text {
  background: linear-gradient(135deg, hsl(var(--primary) / 0.1) 0%, hsl(150 30% 90% / 0.5) 100%);
  padding: 1rem;
  border-radius: 0.75rem;
  color: hsl(var(--foreground));
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid hsl(var(--primary));
}

/* ============================================
   ÍCONES E BADGES
   ============================================ */

.icon-circle {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.icon-circle svg {
  width: 2rem;
  height: 2rem;
  color: hsl(var(--primary));
}

.stage-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ============================================
   FEATURES LIST
   ============================================ */

.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-weight: 500;
}

.features-list li svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

/* ============================================
   BESTSELLER BOX
   ============================================ */

.bestseller-box {
  background: linear-gradient(135deg, hsl(var(--primary) / 0.1) 0%, hsl(var(--primary) / 0.05) 100%);
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid hsl(var(--primary) / 0.2);
  text-align: center;
  margin-bottom: 1.5rem;
}

.bestseller-box .stars {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.bestseller-box p {
  color: hsl(var(--foreground));
  font-size: 1.125rem;
}

/* ============================================
   PREÇO
   ============================================ */

.price-box {
  text-align: center;
  background: hsl(var(--primary) / 0.05);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.price-original {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  text-decoration: line-through;
  margin-bottom: 0.5rem;
}

.price-label {
  font-size: 1rem;
  color: hsl(var(--foreground));
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.price-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .price-value {
    font-size: 3rem;
  }
}

.price-comparison {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-top: 1rem;
}

.guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: hsl(var(--primary));
  font-weight: 600;
}

.guarantee svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ============================================
   FOOTER
   ============================================ */

.sub-cta {
  text-align: center;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 1rem;
}

.final-message {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  text-align: center;
}

.final-message p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  font-style: italic;
}

/* ============================================
   UTILITIES
   ============================================ */

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-6 { margin-top: 1.5rem; }

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

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

.hidden { display: none; }