/* Daily Quiz Styles */
#quizView .card {
  margin-top: 0;
  padding: 14px 16px;
}

.quiz-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
  padding-top: 0;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0;
  text-align: left;
}

.quiz-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.quiz-streak {
  font-size: 14px;
  font-weight: 800;
  color: #7c3aed;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #f7f2ff;
  border-radius: 12px;
  border: 1.5px solid #e9defd;
}

.quiz-streak span {
  font-variant-numeric: tabular-nums;
}

.quiz-title {
  font-size: 18px;
  font-weight: 900;
  color: #7c3aed;
  margin: 0 0 2px 0;
}

.quiz-description {
  font-size: 10px;
  color: #6b7280;
  margin: 0;
}

.quiz-question-container {
  background: #fff;
  border: 2px solid #e9defd;
  border-radius: 14px;
  padding: 16px 14px;
  margin: 2px 0;
  position: relative;
}

.quiz-question {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.quiz-play-btn {
  width: 44px;
  height: 44px;
  border: 2px solid #e5e7eb;
  background: #fff;
  border-radius: 50%;
  font-size: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-play-btn::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #7c3aed;
  margin-left: 2px;
}

.quiz-play-btn:hover {
  background: #f7f2ff;
  border-color: #7c3aed;
  transform: scale(1.05);
}

.quiz-korean {
  font-size: 24px;
  font-weight: 900;
  color: #111827;
  margin: 10px 0 0 0;
  line-height: 1.3;
  text-align: center;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-actions-top {
  position: absolute;
  top: 8px;
  right: 8px;
}

.quiz-favorite-btn {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #9ca3af;
  transition: all 0.2s ease;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.quiz-favorite-text {
  font-size: 18px;
  line-height: 1;
}

.quiz-info-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #7c3aed;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.quiz-favorite-btn:hover {
  color: #e11d48;
  transform: scale(1.15);
}

.quiz-favorite-btn.active {
  color: #e11d48;
}

.quiz-favorite-btn.active .quiz-info-badge {
  background: #e11d48;
}

.quiz-tooltip {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  margin-bottom: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 1000;
}

.quiz-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 12px;
  border: 4px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.85);
}

.quiz-favorite-btn:hover .quiz-tooltip {
  opacity: 1;
}

.quiz-speed-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #f3f4f6;
}

.quiz-speed-control label {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}

.quiz-speed-control input[type="range"] {
  width: 120px;
}

.quiz-speed-control .speed-val {
  min-width: 45px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #7c3aed;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0;
}

.quiz-option {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-option:hover {
  border-color: #7c3aed;
  background: #f7f2ff;
}

.quiz-option.selected {
  border-color: #7c3aed;
  background: #f7f2ff;
  color: #7c3aed;
}

.quiz-submit {
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  background: #7c3aed;
  color: #fff;
  margin-top: 20px;
}

.quiz-submit:hover:not(:disabled) {
  background: #6d28d9;
}

.quiz-submit:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

.quiz-submit {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 6px;
  padding: 12px 20px;
}

.quiz-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quiz-nav-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  background: #fff;
  font-weight: 700;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.quiz-nav-btn:hover:not(:disabled) {
  border-color: #7c3aed;
  background: #f7f2ff;
  color: #7c3aed;
}

.quiz-nav-btn:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .quiz-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .quiz-nav-btn {
    width: 100%;
  }
  
  .quiz-question-container {
    padding: 20px 16px;
  }
  
  .quiz-korean {
    font-size: 24px;
  }
  
  .quiz-play-btn {
    width: 50px;
    height: 50px;
  }
  
  .quiz-speed-control input[type="range"] {
    width: 100px;
  }
}

.quiz-category-selector {
  margin-top: 8px;
  padding: 12px 0;
  background: #f9fafb;
  border-radius: 12px;
}

.quiz-category-label {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quiz-category {
  padding: 8px 16px;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  cursor: pointer;
  margin: 4px;
  transition: all 0.2s ease;
}

.quiz-category:hover {
  border-color: #d1d5db;
}

.quiz-category.active {
  border-color: #7c3aed;
  background: #f7f2ff;
  color: #7c3aed;
}

.quiz-progress {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-align: right;
}

.quiz-progress p {
  margin: 0;
}

.quiz-progress span {
  color: #7c3aed;
}

