/* Custom CSS for Quiz Page */

/* Quiz Section Styling */
.quiz-section {
  max-width: 800px;
  margin: 50px auto;
  padding: 40px;
  background: linear-gradient(135deg, rgba(0, 31, 63, 0.8), rgba(0, 51, 102, 0.8));
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  text-align: center;
  animation: fadeInScale 0.8s ease-out forwards;
  border: 1px solid rgba(51, 255, 204, 0.2);
  position: relative;
  overflow: hidden;
}

.quiz-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(51, 255, 204, 0.1) 0%, transparent 70%);
  animation: rotateGlow 15s linear infinite;
  z-index: 0;
}

.quiz-section h1 {
  font-size: clamp(2.5rem, 7vw, 3.5rem);
  font-weight: 700;
  color: var(--pandora-green-neon, #33ffcc);
  margin-bottom: 15px;
  text-shadow: 0 0 15px rgba(51, 255, 204, 0.6);
  position: relative;
  z-index: 1;
}

.quiz-section .subtitle {
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  font-weight: 400;
  color: var(--pandora-text-medium, #99ccff);
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.quiz-description {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--pandora-text-light, #ccffff);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

/* Tombol "Mulai Quiz Sekarang" yang lebih menarik */
.btn-start-quiz {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 40px;
  background: linear-gradient(135deg, var(--pandora-purple-glow), var(--pandora-green-neon));
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
  border: none;
  border-radius: 50px; /* Bentuk pil */
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Easing yang lebih halus */
  box-shadow: 
    0 0 20px rgba(102, 51, 255, 0.6), /* Glow ungu */
    0 0 30px rgba(51, 255, 204, 0.4); /* Glow hijau */
  animation: pulseGlow 2s ease-in-out infinite alternate; /* Animasi pulsing glow */
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 1; /* Pastikan di atas pseudo-element */
}

.btn-start-quiz .material-icons {
  font-size: 2rem;
  transition: transform 0.3s ease;
}

.btn-start-quiz:hover {
  transform: translateY(-8px) scale(1.05); /* Efek pop-up lebih besar */
  box-shadow: 
    0 0 30px rgba(102, 51, 255, 0.8), /* Glow ungu lebih kuat */
    0 0 45px rgba(51, 255, 204, 0.6); /* Glow hijau lebih kuat */
  background: linear-gradient(135deg, var(--pandora-green-neon), var(--pandora-purple-glow)); /* Balik gradien */
}

.btn-start-quiz:hover .material-icons {
  transform: translateX(5px) scale(1.2); /* Ikon bergerak dan membesar */
}

/* Efek shimmer pada tombol */
.btn-start-quiz::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.7s ease-in-out;
  z-index: 0;
}

.btn-start-quiz:hover::before {
  left: 100%;
}

/* Keyframe Animations */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 
      0 0 15px rgba(102, 51, 255, 0.6), 
      0 0 25px rgba(51, 255, 204, 0.4);
  }
  50% {
    box-shadow: 
      0 0 25px rgba(102, 51, 255, 0.8), 
      0 0 40px rgba(51, 255, 204, 0.6);
  }
  100% {
    box-shadow: 
      0 0 15px rgba(102, 51, 255, 0.6), 
      0 0 25px rgba(51, 255, 204, 0.4);
  }
}

@keyframes rotateGlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .quiz-section {
    padding: 25px;
    margin: 30px auto;
  }
  .quiz-section h1 {
    font-size: 2rem;
  }
  .quiz-section .subtitle {
    font-size: 1rem;
  }
  .quiz-description {
    font-size: 0.9rem;
  }
  .btn-start-quiz {
    padding: 15px 30px;
    font-size: 1.2rem;
    gap: 8px;
  }
  .btn-start-quiz .material-icons {
    font-size: 1.5rem;
  }
}
