/* Quiz Section Styles */

.quiz-section {
  padding: 5rem 0;
  /* background: white; */
  /* background: linear-gradient(135deg, var(--pastel-blue), var(--pastel-green)); */
  background-image: linear-gradient(
    109.6deg,
    rgba(255, 249, 213, 0.35) 11.2%,
    rgba(255, 254, 207, 0.25) 91.1%
  );
  background-color: MintCream;
}

.quiz-tabs {
  max-width: 900px;
  margin: 0 auto;
}

.tab-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  /* border-bottom: 2px solid #e5e7eb; */
}

.tab-btn {
  background: none;
  background-color: #f5f1d3;
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  box-shadow: 0 3px 0 #b0b0b0; 
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: var(--primary-color);
  transform: translateY(-5px);
}

.tab-btn.active {
  color: var(--primary-color);
  background-color: rgb(249, 249, 126);
}

/* .tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
} */

.tab-content {
  min-height: 400px;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-panel.active {
  display: block;
}

.tab-panel h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.quiz-list {
  display: grid;
  gap: 1rem;
}

.quiz-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  /* background: var(--pastel-acqua); */
  /* background: rgba(255, 253, 208, 0.999); */
  border: solid 1px lightgray;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.quiz-item:hover {
  /* background: var(--pastel-acqua-dark); */
  background: rgb(255, 249, 198);
  transform: translateX(5px);
}

.quiz-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 1rem;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.quiz-item span {
  flex: 1;
  color: var(--text-dark);
  font-size: 1.05rem;
}

/* Score Display */
.score-display {
  text-align: center;
  margin: 2rem 0;
}

.score-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

#score-number {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.score-label {
  color: white;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  opacity: 0.9;
}

.score-progress {
  width: 100%;
  max-width: 400px;
  height: 20px;
  /* background: var(--pastel-acqua); */
  background: lightgray;
  border-radius: 10px;
  margin: 0 auto;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 10px;
  transition: width 0.5s ease;
  width: 0%;
}

.score-message {
  margin: 2rem 0;
  padding: 1.5rem;
  /* background: var(--pastel-acqua-dark); */
  background: var(--bg-yellow);
  border-radius: 12px;
  text-align: center;
}

.score-message p {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.score-cta {
  margin-top: 2rem;
}

.score-cta.hidden {
  display: none;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  /* align-items: center; */
  margin-top: 2rem;
}

.quiz-btn-primary,
.quiz-btn-secondary {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s;
}

.quiz-btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.quiz-btn-primary:hover {
  transform: translateY(-2px);
  background: var(--gradient-primary-reverse);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.quiz-btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.quiz-btn-secondary:hover {
  /* background: var(--bg-light); */
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 640px) {
  .quiz-section {
    padding: 5rem 1rem;
  }
  .tab-nav {
    flex-direction: column;
    border-bottom: none;
  }

  .tab-btn {
    text-align: center;
    /* border: 1px solid #d09e70; */
    /* border-radius: 5% 5% 0% 0%; */
  }

  .tab-btn.active {
    background: var(--pastel-acqua);
    /* background: rgba(255, 213, 213, 0.8); */
      background-color: rgb(249, 249, 126);

  }
  .cta-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}
