/*
Theme Name: Dodô Runner Quiz
Theme URI: https://dodorunner.com
Description: Tema personalizado para quiz multi-step Dodô Runner
Version: 2.0
Author: Dodô Runner
Author URI: https://www.instagram.com/dodorunnerassessoria/
*/

:root {
  --background: 0 0% 7%;
  --foreground: 0 0% 98%;
  --card: 0 0% 12%;
  --card-foreground: 0 0% 98%;
  --primary: 211 100% 50%;
  --primary-foreground: 0 0% 100%;
  --primary-glow: 211 100% 60%;
  --secondary: 14 100% 63%;
  --muted: 0 0% 20%;
  --muted-foreground: 0 0% 70%;
  --border: 0 0% 18%;
  --destructive: 0 84.2% 60.2%;
  --radius: 1rem;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  min-height: 100vh;
}

/* Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1000;
}

.progress-fill {
  height: 100%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transition: width 0.3s ease;
}

/* Container */
.quiz-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: hsl(var(--background));
}

.quiz-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.quiz-content {
  max-width: 42rem;
  width: 100%;
}

/* Question Card */
.question-card {
  background: hsla(var(--card), 0.95);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.question-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.question-icon {
  padding: 0.75rem;
  background: hsla(var(--primary), 0.1);
  border-radius: 1rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.question-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.question-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1.3;
}

/* Step Info */
.step-info {
  text-align: center;
  margin-bottom: 2rem;
}

.step-counter {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.motivation-text {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Inputs */
.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  color: hsl(var(--foreground));
  transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsla(var(--primary), 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 128px;
}

/* Choice Buttons */
.choices {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.choice-btn {
  width: 100%;
  padding: 1rem;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 500;
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeInUp 0.4s ease backwards;
}

.choice-btn:nth-child(1) { animation-delay: 0s; }
.choice-btn:nth-child(2) { animation-delay: 0.1s; }
.choice-btn:nth-child(3) { animation-delay: 0.2s; }
.choice-btn:nth-child(4) { animation-delay: 0.3s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.choice-btn:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transform: scale(1.02);
}

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

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-submit:hover {
  background: hsl(var(--primary-glow));
  transform: scale(1.02);
}

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

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Error Message */
.error-message {
  color: hsl(var(--destructive));
  font-weight: 500;
  margin-top: 0.5rem;
  animation: fadeIn 0.3s ease;
}

/* Progress Dots */
.progress-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.dot {
  height: 8px;
  border-radius: 9999px;
  transition: all 0.3s;
}

.dot.active {
  width: 32px;
  background: #fff;
}

.dot.completed {
  width: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.dot.upcoming {
  width: 8px;
  background: rgba(255, 255, 255, 0.3);
}

/* Success Screen */
.success-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: hsl(var(--background));
}

.success-content {
  max-width: 42rem;
  width: 100%;
  text-align: center;
  background: hsla(var(--card), 0.9);
  backdrop-filter: blur(10px);
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  color: hsl(var(--primary));
  animation: pulse 2s ease infinite;
}

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

.success-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.success-text {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* Loading State */
.loading-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--background));
}

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

.spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-text {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 500;
}

/* Footer */
.footer {
  padding: 1.5rem;
  width: 100%;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 42rem;
  margin: 0 auto;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.social-link {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
}

.social-link:hover {
  color: rgba(255, 255, 255, 1);
}

.social-link svg {
  width: 28px;
  height: 28px;
}

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

.footer-copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

/* Hidden Class */
.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .question-card {
    padding: 1.5rem;
  }
  
  .question-text {
    font-size: 1.25rem;
  }
  
  .success-title {
    font-size: 2rem;
  }
  
  .success-text {
    font-size: 1.125rem;
  }
}