/* assets/css/quiz.css - V5 (Layout Compacto + Scroll Amarelo) */

#quiz-modal {
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}

#quiz-modal.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* --- ESTILO DOS BOTÕES DE OPÇÃO --- */
.quiz-option {
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 1rem 1.2rem; /* Compacto */
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 55px;
}

.quiz-option:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(5px);
}

.quiz-option.selected {
  background: #e8b42b;
  color: #000;
  border-color: #e8b42b;
  box-shadow: 0 0 15px rgba(232, 180, 43, 0.4);
}

.quiz-option i {
  margin-right: 10px;
  font-size: 1.2em;
}

/* --- INPUTS --- */
.quiz-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 2rem;
  font-weight: 700;
  padding: 1rem 0;
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s;
}

.quiz-input:focus {
  border-bottom-color: #e8b42b;
}

/* --- SCROLL INTERNO (Amarelo) --- */
.quiz-options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  overflow-y: auto; 
  max-height: 45vh; /* Desktop */
  padding-right: 12px; /* Espaço para o scroll */
  
  scrollbar-width: thin;
  scrollbar-color: #e8b42b rgba(255, 255, 255, 0.05);
}

.quiz-options-grid::-webkit-scrollbar {
  width: 6px;
}
.quiz-options-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-block: 5px;
}
.quiz-options-grid::-webkit-scrollbar-thumb {
  background-color: #e8b42b;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.2);
}

/* --- MOBILE BREAKPOINTS --- */
@media (max-width: 768px) {
  .quiz-input { font-size: 1.5rem; }
  .quiz-step h2 {
    font-size: 1.4rem !important;
    margin-bottom: 1.2rem !important;
    line-height: 1.2;
  }
  .user-name-display { color: #6b7280; }

  /* Mobile: Mostra ~3 cards */
  .quiz-options-grid { max-height: 35vh; }

  #btn-close-quiz {
    padding: 15px;
    display: block;
    margin: 0 auto;
    font-size: 0.7rem;
    opacity: 0.6;
  }
}

.error-msg {
  color: #ef4444;
  margin-top: 10px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

body.modal-open { overflow: hidden; }