/* ════════════════════════════════════════
   REDESIGN FLASHCARDS (simple.ma style)
   ════════════════════════════════════════ */

/* Flashcard Wrapper */
main > div > div.mb-8 + div,
main > div > div.rounded-3xl {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* The actual 3D Flip Card Container */
[class*="perspective"], 
[style*="perspective"] {
  perspective: 2000px !important;
  margin-bottom: 2rem;
}

/* Front and Back Faces of the Flashcard */
[class*="backface-hidden"], 
[style*="backfaceVisibility"] {
  border-radius: 2.5rem !important;
  box-shadow: 0 12px 48px -12px rgba(107, 0, 199, 0.15), 
              0 4px 16px -4px rgba(107, 0, 199, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  background: white !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem !important;
}

/* Front Face Specifics */
[class*="backface-hidden"]:not([class*="rotate-y"]) {
  background: linear-gradient(145deg, #ffffff 0%, #faf8ff 100%) !important;
}

/* Back Face Specifics */
[class*="rotate-y"] {
  background: linear-gradient(135deg, #6b00c7 0%, #250044 100%) !important;
  color: white !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}

/* Fix text colors */
[class*="rotate-y"] h2, 
[class*="rotate-y"] p, 
[class*="rotate-y"] div, 
[class*="rotate-y"] span {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

[class*="backface-hidden"]:not([class*="rotate-y"]) h2,
[class*="backface-hidden"]:not([class*="rotate-y"]) p,
[class*="backface-hidden"]:not([class*="rotate-y"]) span {
  color: #250044 !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

/* Typography size */
[class*="backface-hidden"] h2 {
  font-size: 2rem !important;
  line-height: 1.2 !important;
}

[class*="backface-hidden"] p {
  font-size: 1.25rem !important;
  opacity: 0.9;
}

/* Hover State */
[class*="perspective"]:hover [class*="backface-hidden"] {
  box-shadow: 0 24px 64px -16px rgba(107, 0, 199, 0.25), 
              0 12px 24px -8px rgba(107, 0, 199, 0.12) !important;
}

/* ACTION BUTTONS */
.flex.justify-center.gap-4,
.flex.flex-wrap.justify-center {
  gap: 1rem !important;
  margin-top: 2rem;
}

.flex.justify-center.gap-4 button,
.flex.flex-wrap.justify-center button {
  border-radius: 9999px !important;
  padding: 1rem 2rem !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  letter-spacing: -0.01em !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
  border: 2px solid transparent !important;
}

.flex.justify-center.gap-4 button:hover,
.flex.flex-wrap.justify-center button:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 12px 24px rgba(107, 0, 199, 0.15) !important;
}

.flex.justify-center.gap-4 button:active,
.flex.flex-wrap.justify-center button:active {
  transform: translateY(1px) scale(0.98) !important;
}

/* Known Button */
button:has(svg.text-emerald-500),
button.bg-emerald-50,
button.border-emerald-200 {
  background: #10b981 !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3) !important;
}

button:has(svg.text-emerald-500):hover,
button.bg-emerald-50:hover,
button.border-emerald-200:hover {
  background: #059669 !important;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.4) !important;
}

/* Still learning / Flip */
button.border-slate-200,
button.bg-white {
  background: white !important;
  color: #250044 !important;
  border: 2px solid rgba(107, 0, 199, 0.1) !important;
}

button.border-slate-200:hover,
button.bg-white:hover {
  border-color: #a855f7 !important;
  color: #6b00c7 !important;
}

/* PROGRESS BAR */
.h-2\.5.flex-1.overflow-hidden.rounded-full.bg-slate-100 {
  height: 0.75rem !important;
  background: rgba(107, 0, 199, 0.05) !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02) !important;
}

.brand-gradient.h-full.rounded-full {
  background: linear-gradient(90deg, #a855f7, #6b00c7) !important;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.6) !important;
  position: relative;
}

.brand-gradient.h-full.rounded-full::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
  border-radius: 9999px;
}

.shrink-0.text-sm.font-medium.text-slate-500 {
  background: rgba(107, 0, 199, 0.08) !important;
  color: #6b00c7 !important;
  padding: 0.25rem 0.75rem !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
}
