/**
 * Quest4You - Quiz Styles
 * Estilos para pÃƒÂ¡ginas de questionÃƒÂ¡rio v2.1 (opÃƒÂ§ÃƒÂµes dinÃƒÂ¢micas)
 * Cores: Vermelho, Rosa, Amarelo, Verde (baseado no logo)
 */

/* ================================
   BODY BACKGROUND (consistÃƒÂªncia)
   ================================ */
body {
  background: 
    /* CÃƒÂ­rculos coloridos sutis */
    radial-gradient(circle at 10% 20%, rgba(229, 57, 53, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(194, 24, 91, 0.04) 0%, transparent 40%),
    /* Fundo base mais claro */
    linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
  min-height: 100vh;
}

/* ================================
   QUIZ CONTAINER
   ================================ */
.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: calc(100vh - 80px);
}

/* ================================
   QUIZ HEADER
   ================================ */
.quiz-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #8B4A5E 0%, #6B3A4E 50%, #5C4B6B 100%);
  border-radius: 20px;
  color: white;
  box-shadow: 0 10px 40px rgba(139, 74, 94, 0.2);
  position: relative;
  overflow: hidden;
}

/* PadrÃƒÂ£o de pontos decorativos - mais subtil */
.quiz-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 2px, transparent 2px);
  background-size: 50px 50px;
  opacity: 0.5;
  pointer-events: none;
}

.quiz-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  position: relative;
  z-index: 1;
}

.quiz-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.quiz-description {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
}

/* ================================
   PROGRESS BAR
   ================================ */
.progress-container {
  margin-bottom: 2rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary, #666);
}

.progress-bar-track {
  height: 8px;
  background: var(--border, #e0e0e0);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #8B4A5E, #5C4B6B, #C4A962);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

/* ================================
   QUESTION CARD
   ================================ */
.question-card {
  background: var(--bg-card, white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  animation: slideIn 0.3s ease;
}

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

.question-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #8B4A5E, #5C4B6B);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(139, 74, 94, 0.25);
}

.question-text {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-primary, #333);
  line-height: 1.6;
  margin: 0 0 2rem;
}

/* ================================
   OPTIONS CONTAINER (v2.1 dynamic)
   ================================ */
.options-container {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.option-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-warm, #f5f5f5);
  border: 3px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-size: 1.05rem;
  font-family: inherit;
  color: var(--text-primary, #333);
  line-height: 1.4;
}

.option-btn:hover {
  background: var(--bg-card, #fff);
  border-color: #8B4A5E;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 74, 94, 0.15);
}

.option-btn.selected {
  background: linear-gradient(135deg, #8B4A5E, #5C4B6B);
  border-color: #8B4A5E;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 74, 94, 0.3);
}

.option-btn .option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: rgba(139, 74, 94, 0.1);
  color: #8B4A5E;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 1rem;
  transition: all 0.2s ease;
}

.option-btn.selected .option-letter {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.option-btn .option-text {
  flex: 1;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .option-btn {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  .option-btn .option-letter {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 0.8rem;
    margin-right: 0.75rem;
  }
}

/* ================================
   NAVIGATION
   ================================ */
.quiz-navigation {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quiz-navigation .btn {
  min-width: 140px;
}

.btn-success {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: white;
  border: none;
}

.btn-success:hover {
  background: linear-gradient(135deg, #43a047, #4caf50);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid #e91e63;
  color: #e91e63;
}

.btn-outline:hover {
  background: #e91e63;
  color: white;
}

/* ================================
   QUICK NAVIGATION DOTS
   ================================ */
.quick-nav {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-warm, #f9f9f9);
  border-radius: 16px;
}

.quick-nav-title {
  font-size: 0.85rem;
  color: var(--text-muted, #888);
  margin: 0 0 1rem;
}

.quick-nav-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.quick-nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.quick-nav-dot:hover {
  background: #8B4A5E;
  transform: scale(1.2);
}

.quick-nav-dot.answered {
  background: #5D8A66;
}

.quick-nav-dot.current {
  background: #8B4A5E;
  transform: scale(1.3);
  box-shadow: 0 0 0 3px rgba(139, 74, 94, 0.25);
}

/* ================================
   RESULT MODAL
   ================================ */
.result-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.result-content {
  background: var(--bg-card, white);
  border-radius: 24px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.result-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.1);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-close:hover {
  background: rgba(0,0,0,0.2);
}

.result-header {
  background: linear-gradient(135deg, #8B4A5E, #6B3A4E 50%, #5C4B6B);
  color: white;
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: 24px 24px 0 0;
  position: relative;
  overflow: hidden;
}

/* PadrÃƒÂ£o de pontos no header do resultado - mais subtil */
.result-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 2px, transparent 2px);
  background-size: 40px 40px;
  pointer-events: none;
}

.result-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 1;
}

.result-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.result-body {
  padding: 2rem;
}

.result-score-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.result-score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-warm, #FAFAFA), var(--bg-card, #fff));
  border: 5px solid #8B4A5E;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(139, 74, 94, 0.2);
}

.result-score-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #8B4A5E;
  line-height: 1;
}

.result-score-label {
  font-size: 0.8rem;
  color: var(--text-muted, #888);
}

.result-category {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.result-category-emoji {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.result-category-label {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

.result-description {
  font-size: 1rem;
  color: var(--text-secondary, #666);
  line-height: 1.6;
  text-align: center;
  margin: 0 0 1.5rem;
}

.result-breakdown {
  margin-top: 1.5rem;
}

.result-breakdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-warm, #f9f9f9);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.result-breakdown-label {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-secondary, #666);
}

.result-breakdown-bar {
  flex: 2;
  height: 8px;
  background: var(--border, #E8E4E0);
  border-radius: 4px;
  overflow: hidden;
}

.result-breakdown-fill {
  height: 100%;
  background: linear-gradient(90deg, #8B4A5E, #5C4B6B, #C4A962);
  border-radius: 4px;
}

.result-breakdown-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #8B4A5E;
  min-width: 40px;
  text-align: right;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.5rem 2rem 2rem;
  justify-content: center;
}

.result-actions .btn {
  flex: 1 1 calc(50% - 0.5rem);
  min-width: 140px;
  max-width: 200px;
  text-decoration: none;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
}

@media (max-width: 480px) {
  .result-actions {
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.5rem;
  }
  
  .result-actions .btn {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: unset;
  }
}

/* ================================
   DARK MODE SUPPORT
   ================================ */
@media (prefers-color-scheme: dark) {
  .question-card {
    background: #1e1e1e;
    color: #fff;
  }
  
  .question-text {
    color: #fff;
  }
    .option-btn {
    background: #2d2d2d;
    color: #fff;
  }
  
  .option-btn:hover {
    background: #3d3d3d;
  }

  .option-btn .option-letter {
    background: rgba(139, 74, 94, 0.3);
    color: #d4a0b0;
  }
  
  .quick-nav {
    background: #1e1e1e;
  }
  
  .result-content {
    background: #1e1e1e;
  }
  
  .result-body {
    color: #fff;
  }
  
  .result-category {
    background: #2d2d2d;
  }
  
  .result-description {
    color: #ccc;
  }
}
