@import url('../style.css');

/* Quiz specific overrides */
.quiz-card, .result-card {
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.progress-text {
  font-weight: 700;
  color: var(--text-secondary);
}

.question-text {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 32px;
  line-height: 1.4;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.option-btn {
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid var(--glass-border);
  padding: 20px;
  border-radius: 16px;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  font-family: inherit;
}

.option-btn:hover:not(:disabled) {
  background: var(--card-bg);
  border-color: var(--text-main);
  transform: translateY(-2px);
}

.option-btn:disabled {
  cursor: default;
  opacity: 0.9;
}

.option-btn.correct {
  background: #dcfce7;
  border-color: #22c55e;
  color: #14532d;
}

.option-btn.incorrect {
  background: #fee2e2;
  border-color: #ef4444;
  color: #7f1d1d;
}

.status-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
}

.explanation-area {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 24px;
  animation: fadeIn 0.5s ease;
}

.explanation-content {
  display: flex;
  flex-direction: column;
}

.explanation-content h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.explanation-content p {
  line-height: 1.6;
  color: var(--text-secondary);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.btn-detail {
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 20px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid var(--text-main);
  padding-bottom: 2px;
  transition: opacity 0.2s;
  align-self: flex-end;
}

.btn-detail:hover {
  opacity: 0.7;
}

.btn-detail i {
  font-size: 0.9em;
  margin-left: 4px;
}

.next-btn {
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.next-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.result-card {
  text-align: center;
}

.score-display {
  font-size: 3rem;
  font-weight: 800;
  margin: 32px 0;
  color: var(--text-main);
}

.score-total {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-left: 12px;
}

.result-message {
  font-size: 1.2rem;
  margin-bottom: 40px;
}


.result-card .cta-group {
  justify-content: center;
}

/* Mobile Layout Fixes */
.header .logo {
  word-break: normal;
  overflow-wrap: normal;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .header .logo {
    font-size: 1.3rem; /* Slightly larger for h1 prominence if desired, or keep reasonable */
    text-align: center;
    width: 100%;
  }
  
  .header-inner {
    flex-direction: column-reverse;
    gap: 16px;
  }
}
