/* ==========================================================================
   YAYASAN PENDIDIKAN MUTIARA MADINA (mutiaramadina.org)
   Official Modern Redesign Stylesheet
   ========================================================================== */

:root {
  --primary: #065f46;
  --primary-dark: #044e39;
  --primary-light: #10b981;
  --gold: #d97706;
  --gold-light: #f59e0b;
  --gold-subtle: #fef3c7;
  --slate-dark: #0f172a;
  --slate-body: #334155;
  --bg-soft: #f8fafc;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Islamic Geometric Subtle Background Pattern */
.bg-islamic-pattern {
  background-color: #f8fafc;
  background-image: radial-gradient(rgba(6, 95, 70, 0.06) 1.5px, transparent 1.5px),
                    radial-gradient(rgba(217, 119, 6, 0.05) 1.5px, #f8fafc 1.5px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

.bg-islamic-dark {
  background-color: #064e3b;
  background-image: radial-gradient(rgba(245, 158, 11, 0.15) 1.5px, transparent 1.5px),
                    radial-gradient(rgba(255, 255, 255, 0.05) 1.5px, #064e3b 1.5px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

/* Glassmorphism */
.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Subtle Glows and Gradients */
.gold-gradient-text {
  background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.emerald-gradient-text {
  background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Card Hover Animation */
.card-hover-fx {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover-fx:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(6, 95, 70, 0.08), 0 10px 10px -5px rgba(6, 95, 70, 0.04);
}

/* Arabic calligraphy header styling */
.font-arabic {
  font-family: 'Amiri', 'Traditional Arabic', serif;
}

/* Document Lightbox Modal */
#docModal {
  transition: opacity 0.25s ease-out;
}
#docModal.hidden {
  display: none;
  opacity: 0;
}
#docModal:not(.hidden) {
  display: flex;
  opacity: 1;
}

/* Custom Badges */
.badge-gold {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #fcd34d;
}

.badge-emerald {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  border: 1px solid #6ee7b7;
}

/* Floating Action Button */
.fab-float {
  box-shadow: 0 10px 25px -3px rgba(16, 185, 129, 0.4);
  animation: pulse-subtle 3s infinite;
}

@keyframes pulse-subtle {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Print styles for legalitas verification */
@media print {
  header, footer, .no-print {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
}
