/* Custom Styling for Alexandria Governorate Reconciliation Landing Page */

@layer base {
  body {
    font-family: 'Alexandria', 'Cairo', system-ui, -apple-system, sans-serif;
    line-height: 1.8;
  }

  h1, h2, h3, h4, h5, h6 {
    line-height: 1.65 !important;
    letter-spacing: normal !important;
  }
}

/* Ensure headings never overlap lines */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.65 !important;
  letter-spacing: normal !important;
}

/* Custom Scrollbar for Arabic RTL UI */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
.dark ::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #0284c7;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0369a1;
}

/* Custom Pulse and Ripple Animations */
@keyframes pulse-ring {
  0% {
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.6);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 16px rgba(2, 132, 199, 0);
  }
  100% {
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
  }
}

.pulse-button {
  animation: pulse-ring 2.5s infinite;
}

/* Glassmorphic Panel Effects */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dark .glass-panel {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Accordion Smooth Height Transition */
.faq-answer-container {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
}

.faq-answer-container.open {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

/* Shimmer Loading State */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-loading {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.dark .skeleton-loading {
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
