/* MCQ module isolated styles (desktop + mobile) */

/* Shared animations */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fade-in 0.6s ease-out; }

/* Optional bounce for decorative elements (Tailwind also provides animate-bounce) */
@keyframes bounce {
  0%, 100% { transform: translateY(-2%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
  50% { transform: translateY(0); animation-timing-function: cubic-bezier(0,0,0.2,1); }
}

/* Page background for MCQ screens */
body.mcq-page {
  background: linear-gradient(135deg, #ffeef8 0%, #ffc2e8 50%, #ff78b1 100%);
  min-height: 100vh;
}

/* Subtle text shadows used by headings */
.text-shadow-strong { text-shadow: 3px 3px 6px rgba(0,0,0,0.8), 0 0 15px rgba(255,255,255,0.3); }
.text-shadow-medium { text-shadow: 2px 2px 4px rgba(0,0,0,0.7); }

/* Form visibility & defaults */
select, input, textarea, option { color: #1f2937; }
select option { background-color: #ffffff; color: #1f2937; }

/* Radio inputs: keep small, accessible, and clearly focusable */
input[type="radio"] {
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 1;
  background-color: #ffffff;
  border: 2px solid #9333ea;
  border-radius: 50%;
}
input[type="radio"]:focus { outline: 2px solid #9333ea; outline-offset: 2px; box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.2); }
input[type="radio"]:checked { background-color: #9333ea; }
input[type="radio"]::before {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 8px; height: 8px; background-color: #9333ea; border-radius: 50%; opacity: 0; transition: opacity 0.2s;
}
input[type="radio"]:checked::before { opacity: 1; }

/* Welcome hero floating petals */
.welcome-hero { position: relative; }
.floating-petal {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(255,192,203,0.8));
  opacity: 0.9; transform: translateY(0) rotate(0deg); animation: floatUp 6s ease-in-out infinite; filter: blur(2px);
}
@keyframes floatUp {
  0% { transform: translateY(0) rotate(0deg); opacity: .0; }
  10% { opacity: .9; }
  50% { transform: translateY(-40px) rotate(15deg); }
  100% { transform: translateY(-90px) rotate(35deg); opacity: 0; }
}

/* Shimmer headline */
.welcome-title .shimmer {
  display: inline-block; background: linear-gradient(90deg, #fff 0%, #ffd6ea 30%, #fff 60%);
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 3s linear infinite;
  text-shadow: 2px 2px 20px rgba(255, 153, 204, 0.3);
}
@keyframes shimmer { 0% { background-position: -200px 0; } 100% { background-position: 200px 0; } }

/* Button sheen animation */
.btn-animated { position: relative; overflow: hidden; }
.btn-animated::after {
  content: '';
  position: absolute; left: -60%; top: -10%; width: 40%; height: 220%;
  background: rgba(255,255,255,0.12); transform: skewX(-25deg); transition: all .6s ease; opacity: 0;
}
.btn-animated:hover::after { left: 120%; opacity: 1; }

/* One-question-per-slide helpers */
.mcq-slide { opacity: 0; transform: translateX(12px); transition: opacity 0.35s ease, transform 0.35s ease; }
.mcq-slide.mcq-visible { opacity: 1; transform: translateX(0); }
.mcq-nav-btn { min-width: 110px; }
#mcq-progress { font-size: 1.05rem; }
.mcq-unanswered { box-shadow: 0 0 0 3px rgba(239,68,68,0.5) inset; animation: pulse-unanswered 0.9s ease; }
@keyframes pulse-unanswered { 0% { box-shadow: 0 0 0 3px rgba(239,68,68,0.6) inset; } 70% { box-shadow: 0 0 0 1px rgba(239,68,68,0.3) inset; } 100% { box-shadow: none; } }

/* Mobile-specific card and options */
.mobile-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 16px;
  overflow: hidden;
}
.mobile-option {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  transition: all 0.2s;
  cursor: pointer;
}
.mobile-option:hover { border-color: #3b82f6; background: #eff6ff; }
.mobile-option.selected { border-color: #3b82f6; background: #eff6ff; }
.difficulty-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: 600; }
