/* Custom Styles for Prophetic Biography Quiz (Andalusian / Islamic Manuscript feel) */

:root {
  --parchment: #FAF6EE;
  --emerald: #1B4332;
  --gold: #C5A059;
  --deep-ink: #1D2A3A;
  --cream-card: #FFFFFF;
}

body {
  background-color: var(--parchment);
  background-image: 
    radial-gradient(#C5A059 0.75px, transparent 0.75px), 
    radial-gradient(#C5A059 0.75px, #FAF6EE 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
  background-attachment: fixed;
  color: var(--deep-ink);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.font-amiri {
  font-family: 'Amiri', serif;
}

.font-tajawal {
  font-family: 'Tajawal', sans-serif;
}

/* English / LTR adjustments */
html[lang="en"] body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

html[lang="ar"] body {
  font-family: 'Tajawal', sans-serif;
}

html[dir="ltr"] .text-right {
  text-align: left !important;
}

html[dir="ltr"] .choice-btn span.mr-2 {
  margin-right: 0 !important;
  margin-left: 0.5rem !important;
}

html[dir="ltr"] .ornament-corner.top-left {
  top: 6px;
  left: 6px;
}
html[dir="ltr"] .ornament-corner.top-right {
  top: 6px;
  right: 6px;
}

/* Islamic Manuscript Card Container */
.manuscript-card {
  background: #FCFAF6;
  border: 1px solid #DFD3C0;
  box-shadow: 0 4px 20px -2px rgba(92, 70, 31, 0.08), 0 2px 6px -1px rgba(92, 70, 31, 0.04);
}

/* Corner ornamental accents */
.ornament-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #C5A059;
  pointer-events: none;
}
.ornament-corner.top-left {
  top: 6px;
  left: 6px;
  border-top: 2px solid #C5A059;
  border-left: 2px solid #C5A059;
}
.ornament-corner.top-right {
  top: 6px;
  right: 6px;
  border-top: 2px solid #C5A059;
  border-right: 2px solid #C5A059;
}
.ornament-corner.bottom-left {
  bottom: 6px;
  left: 6px;
  border-bottom: 2px solid #C5A059;
  border-left: 2px solid #C5A059;
}
.ornament-corner.bottom-right {
  bottom: 6px;
  right: 6px;
  border-bottom: 2px solid #C5A059;
  border-right: 2px solid #C5A059;
}

/* Topic buttons active state */
.topic-btn.active {
  border-color: #1B4332;
  background: #F1F8F4;
  outline: 2px solid #1B4332;
}

/* Multiple choice option buttons */
.choice-btn {
  transition: all 0.15s ease-out;
  min-height: 52px;
}
.choice-btn:active {
  transform: scale(0.98);
}
.choice-btn.selected-correct {
  background-color: #E8F5E9 !important;
  border-color: #2E7D32 !important;
  color: #1B5E20 !important;
}
.choice-btn.selected-wrong {
  background-color: #FFEBEE !important;
  border-color: #C62828 !important;
  color: #B71C1C !important;
}

/* Fill blank word chips */
.word-chip {
  padding: 8px 18px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1.5px solid #C5A059;
  color: #1B4332;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  transition: transform 0.15s, background-color 0.15s;
}
.word-chip:hover {
  background-color: #FAF4E8;
}
.word-chip:active {
  transform: scale(0.95);
}

/* Blank target slot */
.blank-slot {
  display: inline-block;
  min-width: 90px;
  padding: 2px 14px;
  border-bottom: 3px solid #1B4332;
  color: #1B4332;
  font-weight: bold;
  background: rgba(197, 160, 89, 0.15);
  border-radius: 4px;
  margin: 0 4px;
}

/* Modal animation */
@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.animate-scaleUp {
  animation: scaleUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scrollbar polish */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: #F1EBDE;
}
::-webkit-scrollbar-thumb {
  background: #C5A059;
  border-radius: 4px;
}