/* ================================================
   QUIZ COMPONENT STYLES
   free-english.co.il
   ================================================ */

.kc-quiz-container {
  background: white;
  border-radius: 20px;
  border: 1.5px solid #f0f4f8;
  padding: 2rem;
  margin: 3rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  font-family: 'Andika', sans-serif;
  overflow: hidden;
}

.kc-quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1.5px solid #f1f5f9;
  padding-bottom: 1rem;
}

.kc-quiz-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a2e4a;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.kc-quiz-progress {
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.kc-quiz-question-wrap {
  min-height: 200px;
  transition: all 0.3s ease;
  text-align: center; /* Center question content */
}

.kc-quiz-question-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.kc-quiz-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kc-quiz-option {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.1rem;
  font-weight: 500;
  color: #334155;
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.kc-quiz-option:hover:not(.disabled) {
  border-color: #67C2E1;
  background: #f0f9ff;
  transform: translateY(-2px);
}

.kc-quiz-option.correct {
  border-color: #10b981;
  background: #ecfdf5;
  color: #065f46;
}

.kc-quiz-option.wrong {
  border-color: #ef4444;
  background: #fef2f2;
  color: #991b1b;
}

.kc-quiz-option.disabled {
  cursor: default;
}

.kc-quiz-feedback {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 12px;
  display: none;
  animation: slideIn 0.4s ease-out forwards;
  background: #f8fafc; /* Add background for better separation */
  border: 1px solid #e2e8f0;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.kc-quiz-feedback.show {
  display: block;
}

.kc-quiz-feedback-title {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kc-quiz-explanation {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #1e293b; /* Darker for better visibility */
  font-weight: 400;
}

.kc-quiz-next-btn {
  background: linear-gradient(135deg, #1a2e4a 0%, #0f172a 100%);
  color: white;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1.5rem;
  width: 100%;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.kc-quiz-next-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Success / Result State */
.kc-quiz-result {
  text-align: center;
  padding: 2rem 0;
}

.kc-quiz-result-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.kc-quiz-result-score {
  font-size: 2.5rem;
  font-weight: 900;
  color: #1a2e4a;
  margin-bottom: 0.5rem;
}

.kc-quiz-result-text {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.kc-quiz-retry-btn {
  background: transparent;
  color: #1a2e4a;
  border: 2px solid #1a2e4a;
  padding: 0.8rem 1.8rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.kc-quiz-retry-btn:hover {
  background: #1a2e4a;
  color: white;
}

@media (max-width: 600px) {
  .kc-quiz-container { padding: 1.5rem; }
  .kc-quiz-question-text { font-size: 1.15rem; }
}
