/* ===== Quiz Card Styles ===== */

.quiz-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* クイズヘッダー */
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
}

.progress-info {
  font-size: 1.1rem;
  font-weight: bold;
  color: #667eea;
}

.score-info {
  display: flex;
  gap: 20px;
}

.correct-count {
  color: #28a745;
  font-weight: bold;
}

.incorrect-count {
  color: #dc3545;
  font-weight: bold;
}

/* 問題コンテンツ */
.quiz-content {
  margin-bottom: 30px;
  min-height: 250px;
}

.question-header {
  text-align: center;
  margin-bottom: 30px;
}

.question-header h2 {
  color: #667eea;
  margin-bottom: 15px;
}

/* 不規則動詞問題 */
.verb-question .base-form {
  font-size: 3rem;
  font-weight: bold;
  color: #667eea;
  margin: 20px 0;
}

.verb-question .meaning {
  font-size: 1.2rem;
  color: #888;
  margin-bottom: 30px;
}

.verb-question .input-group {
  margin-bottom: 20px;
}

.verb-question label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
}

.verb-question .answer-input {
  width: 100%;
}

/* 選択問題 */
.choice-question .prompt {
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 25px;
}

.choices-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice-option {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.choice-option:hover {
  border-color: #667eea;
  background: #f5f7ff;
}

.choice-option input[type="radio"] {
  margin-right: 12px;
}

.choice-option label {
  flex: 1;
  cursor: pointer;
}

/* 並び替え問題 */
.reorder-question .prompt {
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 25px;
}

.reorder-container {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.sentence-template {
  font-size: 1.3rem;
  line-height: 2.5;
  color: #333;
  text-align: center;
}

.inline-input {
  margin: 0 4px;
  padding: 6px 10px;
  font-size: 1.2rem;
  text-align: center;
  border: 2px solid #667eea;
  border-radius: 4px;
  background: white;
}

.inline-input:focus {
  outline: none;
  border-color: #5568d3;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* クイズアクション */
.quiz-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.quiz-actions .btn {
  min-width: 120px;
}

/* 結果メッセージ */
.result-message {
  margin-top: 25px;
  padding: 20px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  display: none;
}

.result-message.show {
  display: block;
}

.result-message.correct {
  background: #d4edda;
  color: #155724;
  border: 2px solid #28a745;
}

.result-message.incorrect {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #dc3545;
}

.result-message .answer-detail {
  margin-top: 10px;
  font-size: 0.95rem;
}

/* 完了画面 */
.completion-screen {
  text-align: center;
  padding: 40px 20px;
}

.completion-screen h2 {
  font-size: 2.5rem;
  color: #667eea;
  margin-bottom: 30px;
}

.completion-stats {
  margin: 30px 0;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 12px;
}

.completion-stats .accuracy {
  font-size: 2rem;
  font-weight: bold;
  color: #28a745;
  margin-bottom: 10px;
}

.completion-stats .score {
  font-size: 1.2rem;
  color: #555;
}

/* 間違えた問題リスト */
.incorrect-list {
  margin: 30px 0;
  padding: 25px;
  background: #fff3cd;
  border-radius: 12px;
  border: 2px solid #ffc107;
}

.incorrect-list h3 {
  color: #856404;
  margin-bottom: 20px;
}

.incorrect-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.incorrect-table th,
.incorrect-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.incorrect-table th {
  background: #667eea;
  color: white;
  font-weight: bold;
}

.incorrect-table tr:last-child td {
  border-bottom: none;
}

.incorrect-table tr:hover {
  background: #f5f5f5;
}
