/* Nordic Neon Global Stylesheet - Al-Mu'rib Modular Platform */

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Custom Scrollbar Nordic Theme */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #1E222A;
}
::-webkit-scrollbar-thumb {
  background: #434C5E;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #88C0D0;
}

/* Tooltip Smooth Transition */
.card-tooltip {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.module-card:hover .card-tooltip,
.module-card:focus-within .card-tooltip,
.module-card.tooltip-active .card-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Arabic Text Enhancement */
.arabic-display {
  font-family: 'Amiri', 'Traditional Arabic', serif;
  line-height: 1.6;
}

/* Live Harakat Shifter Neon Flash Animations */
@keyframes neonPulseMint {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(163, 190, 140, 0); }
  50% { transform: scale(1.06); box-shadow: 0 0 35px 8px rgba(163, 190, 140, 0.85); }
  100% { transform: scale(1); box-shadow: 0 0 20px -3px rgba(163, 190, 140, 0.55); }
}

@keyframes neonPulseCyan {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(136, 192, 208, 0); }
  50% { transform: scale(1.06); box-shadow: 0 0 35px 8px rgba(136, 192, 208, 0.85); }
  100% { transform: scale(1); box-shadow: 0 0 20px -3px rgba(136, 192, 208, 0.55); }
}

.flash-mint {
  animation: neonPulseMint 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.flash-cyan {
  animation: neonPulseCyan 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mobile Bottom Sheet Smooth Slide */
#mobileBottomSheet {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease-out;
}
#mobileBottomSheet.sheet-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
#mobileBottomSheet.sheet-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Quiz Neuroscience Animations */
@keyframes dopamineRipple {
  0% { box-shadow: 0 0 0 0 rgba(163, 190, 140, 0.8), inset 0 0 10px rgba(163, 190, 140, 0.4); transform: scale(1); }
  50% { box-shadow: 0 0 35px 10px rgba(163, 190, 140, 0.5), inset 0 0 25px rgba(163, 190, 140, 0.6); transform: scale(1.02); }
  100% { box-shadow: 0 0 20px -2px rgba(163, 190, 140, 0.4), inset 0 0 0px rgba(163, 190, 140, 0); transform: scale(1); }
}

@keyframes gentleTerracottaFade {
  0% { border-color: #BF616A; box-shadow: 0 0 0 0 rgba(191, 97, 106, 0.5); }
  50% { box-shadow: 0 0 25px 4px rgba(191, 97, 106, 0.4); }
  100% { border-color: #BF616A; box-shadow: 0 0 10px 0 rgba(191, 97, 106, 0.25); }
}

.animate-dopamine {
  animation: dopamineRipple 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-terracotta {
  animation: gentleTerracottaFade 0.5s ease-out forwards;
}

.quiz-card-enter {
  animation: cardFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SVG Glowing Dependency Lines */
.dependency-line {
  stroke-dasharray: 6;
  animation: dashMove 1.5s linear infinite;
  filter: drop-shadow(0 0 6px rgba(136, 192, 208, 0.8));
}
@keyframes dashMove {
  to { stroke-dashoffset: -12; }
}

.inception-container {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.inception-container:hover {
  box-shadow: 0 0 25px -2px rgba(136, 192, 208, 0.4);
}
