/* ==========================================================================
   AT-TAHFIZ INTERNATIONAL MADRASAH SAVAR
   Refined Minimalist Landing Page Design
   ========================================================================== */

:root {
  /* Color Palette - Minimal Islamic Teal & Gold */
  --bg-main: #021822;
  --bg-gradient: radial-gradient(100% 100% at 50% 0%, #06394d 0%, #021d28 45%, #01121a 100%);
  
  --gold-300: #fef08a;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-border: rgba(251, 191, 36, 0.18);
  --gold-glow: rgba(251, 191, 36, 0.12);

  --teal-surface: rgba(4, 38, 51, 0.55);
  --teal-border: rgba(56, 189, 248, 0.12);

  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);

  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --text-gold: #fde68a;

  /* Typography */
  --font-bn: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-en: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ar: 'Amiri', serif;

  /* Spacing & Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-bn);
  background-color: var(--bg-main);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-secondary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  padding: 2rem 1.25rem;
}

/* Ambient Canvas */
#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Subtle Vignette Glow */
.ambient-vignette {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 116, 144, 0.25) 0%, rgba(3, 46, 63, 0.08) 60%, transparent 80%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

/* Main Container */
.page-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 680px;
  margin: auto;
}

/* Minimalist Card */
.minimal-card {
  background: var(--teal-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px var(--gold-glow);
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.minimal-card:hover {
  border-color: rgba(251, 191, 36, 0.28);
}

/* Top Section */
.card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.bismillah-text {
  font-family: var(--font-ar);
  font-size: 1.35rem;
  color: var(--text-gold);
  letter-spacing: 0.5px;
  opacity: 0.92;
}

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--emerald-400);
  box-shadow: 0 0 10px var(--emerald-400);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.status-text-bn {
  font-size: 0.82rem;
  font-weight: 500;
  color: #a7f3d0;
}

.status-sep {
  color: rgba(167, 243, 208, 0.4);
  font-size: 0.75rem;
}

.status-text-en {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  color: #a7f3d0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Institution Identity */
.card-identity {
  margin-bottom: 1.5rem;
}

.emblem-container {
  display: inline-flex;
  margin-bottom: 1rem;
}

.emblem-icon {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.institution-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.institution-subtitle {
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-400);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.tagline {
  font-size: 0.98rem;
  font-weight: 500;
  color: #bae6fd;
  letter-spacing: 0.2px;
}

/* Prominent Notice Box */
.notice-box {
  background: linear-gradient(135deg, rgba(4, 42, 56, 0.75) 0%, rgba(2, 30, 42, 0.85) 100%);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  margin: 0 auto 1.6rem auto;
  max-width: 580px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.notice-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}

.notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.notice-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 8px var(--gold-400);
  animation: pulseDot 1.8s ease-in-out infinite;
}

.notice-badge-text {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-300);
  text-transform: uppercase;
}

.notice-main-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.notice-desc {
  font-size: 0.93rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.notice-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: rgba(14, 165, 233, 0.08);
  border: 1px dashed rgba(56, 189, 248, 0.35);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  text-align: left;
}

.notice-alert-icon {
  width: 18px;
  height: 18px;
  color: #38bdf8;
  flex-shrink: 0;
  margin-top: 2px;
}

.notice-alert-text {
  font-size: 0.84rem;
  color: #e0f2fe;
  line-height: 1.5;
  margin: 0;
}

.notice-alert-text strong {
  color: #38bdf8;
  font-weight: 600;
}

/* Offerings Pills */
.offerings-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.offering-badge {
  background: rgba(2, 46, 63, 0.45);
  border: 1px solid rgba(251, 191, 36, 0.16);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #e2e8f0;
  transition: var(--transition);
}

.offering-badge:hover {
  background: rgba(4, 58, 80, 0.7);
  border-color: var(--gold-400);
  color: #ffffff;
}

/* Actions */
.actions-group {
  margin-bottom: 1.75rem;
}

.actions-heading {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(2, 44, 60, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.85rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  position: relative;
}

.action-btn:hover {
  background: rgba(4, 58, 80, 0.85);
  border-color: rgba(251, 191, 36, 0.3);
  transform: translateY(-2px);
}

.action-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.action-details {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.action-label {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
}

.action-val {
  font-family: var(--font-en);
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-chevron {
  font-size: 1rem;
  color: var(--emerald-400);
  transition: transform 0.2s ease;
}

.action-btn:hover .action-chevron {
  transform: translateX(3px);
}

/* WhatsApp Theme */
.btn-whatsapp {
  border-color: rgba(16, 185, 129, 0.25);
}

.btn-whatsapp .action-icon {
  color: #34d399;
}

.btn-whatsapp:hover {
  border-color: #10b981;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

/* Phone & Email Themes */
.btn-phone .action-icon {
  color: var(--gold-400);
}

.btn-email .action-icon {
  color: #38bdf8;
}

/* Copy Trigger Button */
.copy-trigger {
  background: transparent;
  border: none;
  padding: 4px;
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background-color 0.2s;
}

.copy-trigger:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.copy-svg {
  width: 15px;
  height: 15px;
}

/* Footer */
.card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.footer-location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: #cbd5e1;
}

.location-pin {
  width: 15px;
  height: 15px;
  color: var(--gold-400);
  flex-shrink: 0;
}

.copyright-text {
  font-family: var(--font-en);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Clean Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: #042533;
  border: 1px solid var(--gold-400);
  color: #ffffff;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
}

/* Responsive */
@media (max-width: 720px) {
  .minimal-card {
    padding: 1.75rem 1.25rem;
  }

  .institution-title {
    font-size: 1.6rem;
  }

  .institution-subtitle {
    font-size: 0.75rem;
    letter-spacing: 1.2px;
  }

  .action-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .footer-location {
    font-size: 0.8rem;
    text-align: center;
  }

  .notice-box {
    padding: 1.15rem 1rem;
  }

  .notice-main-title {
    font-size: 1.12rem;
  }

  .notice-desc {
    font-size: 0.86rem;
  }

  .notice-alert {
    padding: 0.6rem 0.75rem;
  }

  .notice-alert-text {
    font-size: 0.8rem;
  }
}
