/**
 * Quest4You - Quiz Styles
 * Estilos para páginas de questionário com escala Likert
 * Cores: Vermelho, Rosa, Amarelo, Verde (baseado no logo)
 */

/* ================================
   BODY BACKGROUND (consistência)
   ================================ */
body {
  background: 
    radial-gradient(circle at 15% 25%, rgba(229, 57, 53, 0.25) 0%, transparent 35%),
    radial-gradient(circle at 85% 75%, rgba(194, 24, 91, 0.20) 0%, transparent 35%),
    radial-gradient(circle at 50% 10%, rgba(253, 216, 53, 0.15) 0%, transparent 35%),
    radial-gradient(circle at 20% 70%, rgba(76, 175, 80, 0.12) 0%, transparent 30%),
    repeating-linear-gradient(45deg, transparent, transparent 15px, rgba(255, 255, 255, 0.06) 15px, rgba(255, 255, 255, 0.06) 17px),
    linear-gradient(135deg, #fafafa 0%, #f0f0f0 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, #e53935 0%, #c2185b 100%);
  border-radius: 20px;
  color: white;
  box-shadow: 0 10px 40px rgba(229, 57, 53, 0.3);
  position: relative;
  overflow: hidden;
}

/* Padrão de pontos decorativos */
.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.12) 2px, transparent 2px),
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
  background-size: 40px 40px, 20px 20px, 60px 60px;
  opacity: 0.7;
  pointer-events: none;
}

.quiz-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.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: #666;
}

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

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #e53935, #c2185b, #ff9800);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

/* ================================
   QUESTION CARD
   ================================ */
.question-card {
  background: 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, #e53935, #c2185b);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

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

/* ================================
   LIKERT SCALE
   ================================ */
.likert-scale {
  margin-top: 1.5rem;
}

.likert-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #888;
}

.likert-label-left {
  text-align: left;
}

.likert-label-right {
  text-align: right;
}

.likert-options {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.likert-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0.5rem;
  background: #f5f5f5;
  border: 3px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 90px;
}

.likert-btn:hover {
  background: #fff;
  border-color: #e53935;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.25);
}

.likert-btn.selected {
  background: linear-gradient(135deg, #e53935, #c2185b);
  border-color: #e53935;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.35);
}

.likert-btn.selected .likert-number {
  color: white;
}

.likert-btn.selected .likert-emoji {
  filter: brightness(1.2);
}

.likert-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.25rem;
}

.likert-emoji {
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}

.likert-btn:hover .likert-emoji {
  transform: scale(1.2);
}

/* Mobile - Likert horizontal scroll */
@media (max-width: 480px) {
  .likert-options {
    gap: 0.5rem;
  }
  
  .likert-btn {
    padding: 1rem 0.25rem;
    min-height: 80px;
  }
  
  .likert-number {
    font-size: 1.2rem;
  }
  
  .likert-emoji {
    font-size: 1.2rem;
  }
}

/* ================================
   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: #f9f9f9;
  border-radius: 16px;
}

.quick-nav-title {
  font-size: 0.85rem;
  color: #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: #e53935;
  transform: scale(1.2);
}

.quick-nav-dot.answered {
  background: #4caf50;
}

.quick-nav-dot.current {
  background: #e53935;
  transform: scale(1.3);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.3);
}

/* ================================
   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: 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, #e53935, #c2185b);
  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 */
.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.1) 2px, transparent 2px),
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 30px 30px, 15px 15px;
  pointer-events: none;
}

.result-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.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, #f5f5f5, #fff);
  border: 6px solid #e53935;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(229, 57, 53, 0.25);
}

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

.result-score-label {
  font-size: 0.8rem;
  color: #888;
}

.result-category {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.result-category-emoji {
  font-size: 2rem;
}

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

.result-description {
  font-size: 1rem;
  color: #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: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.result-breakdown-label {
  flex: 1;
  font-size: 0.9rem;
  color: #666;
}

.result-breakdown-bar {
  flex: 2;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.result-breakdown-fill {
  height: 100%;
  background: linear-gradient(90deg, #e53935, #ff9800, #fdd835);
  border-radius: 4px;
}

.result-breakdown-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e53935;
  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;
  min-width: 120px;
  text-decoration: none;
  text-align: center;
}

/* ================================
   DARK MODE SUPPORT
   ================================ */
@media (prefers-color-scheme: dark) {
  .question-card {
    background: #1e1e1e;
    color: #fff;
  }
  
  .question-text {
    color: #fff;
  }
  
  .likert-btn {
    background: #2d2d2d;
  }
  
  .likert-btn:hover {
    background: #3d3d3d;
  }
  
  .likert-number {
    color: #fff;
  }
  
  .quick-nav {
    background: #1e1e1e;
  }
  
  .result-content {
    background: #1e1e1e;
  }
  
  .result-body {
    color: #fff;
  }
  
  .result-category {
    background: #2d2d2d;
  }
  
  .result-description {
    color: #ccc;
  }
}
