/* ==========================================================================
   Aplikasi Manajemen Masjid Ar-Rayyan - Public Theme (Emerald & Gold Modern)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --primary-color: #047857;
  --primary-dark: #064e3b;
  --primary-light: #10b981;
  --primary-subtle: #d1fae5;
  --gold-color: #d97706;
  --gold-light: #fbbf24;
  --gold-subtle: #fef3c7;
  --dark-color: #0f172a;
  --dark-light: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px -3px rgba(4, 120, 87, 0.12);
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-arabic: 'Amiri', serif;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: #334155;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--dark-color);
}

.font-arabic {
  font-family: var(--font-arabic);
}

/* Navbar */
.navbar-custom {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.navbar-custom .navbar-brand {
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-custom .nav-link {
  font-weight: 600;
  color: var(--dark-light);
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #0f172a 100%);
  color: #ffffff;
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(251, 191, 36, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Prayer Times Widget */
.prayer-widget-wrapper {
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.prayer-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.prayer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
}

.prayer-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  transition: all 0.25s ease;
}

.prayer-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.prayer-item.active {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #ffffff;
  border-color: var(--primary-dark);
}

.prayer-item.active .prayer-name,
.prayer-item.active .prayer-time {
  color: #ffffff;
}

.prayer-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.prayer-time {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-color);
}

/* Cards & Components */
.custom-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.custom-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-subtitle {
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.section-heading {
  font-size: 2rem;
  font-weight: 800;
}

/* Buttons */
.btn-emerald {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.btn-emerald:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-color), var(--gold-light));
  color: #ffffff;
  border: none;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.btn-gold:hover {
  background: var(--gold-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

/* Financial Transparency Card */
.stat-box-gold {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 20px;
}

.stat-box-emerald {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1px solid #a7f3d0;
  border-radius: 14px;
  padding: 20px;
}

.stat-box-rose {
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  border: 1px solid #fecdd3;
  border-radius: 14px;
  padding: 20px;
}

/* Badge tags */
.badge-category {
  background-color: var(--primary-subtle);
  color: var(--primary-dark);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
}

/* Agenda Card */
.agenda-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  transition: all 0.2s ease;
}

.agenda-card:hover {
  border-color: var(--primary-light);
  transform: translateX(4px);
}

.agenda-date-badge {
  background: var(--primary-subtle);
  color: var(--primary-dark);
  border-radius: 10px;
  min-width: 65px;
  height: 65px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.agenda-date-badge .day {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}

.agenda-date-badge .month {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* DKM Member Card */
.dkm-card {
  text-align: center;
  padding: 24px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.25s ease;
}

.dkm-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.dkm-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--primary-light);
  background-color: var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-dark);
}

/* Footer */
.footer-custom {
  background-color: var(--dark-color);
  color: #94a3b8;
  padding: 60px 0 30px;
  font-size: 0.925rem;
}

.footer-custom h5 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-custom a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-custom a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  margin-top: 40px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0 90px;
    text-align: center;
  }
  .prayer-widget-wrapper {
    margin-top: -40px;
  }
  .section-heading {
    font-size: 1.6rem;
  }
}
