/* ============================================================
   Noor Match — Islamic Nikah Platform
   Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Amiri:wght@400;700&display=swap');

/* ── TOKENS ────────────────────────────────────────────────── */
:root {
  --green:       #1b4d3e;
  --green-mid:   #246b55;
  --green-light: #2d8566;
  --gold:        #b8892a;
  --gold-light:  #d4a843;
  --cream:       #fdf8f2;
  --cream-soft:  #f5ede1;
  --white:       #ffffff;
  --ink:         #1a2e25;
  --ink-soft:    #3d5248;
  --muted:       #6b7d74;
  --line:        rgba(27,77,62,0.10);
  --line-soft:   rgba(27,77,62,0.06);
  --card-bg:     rgba(255,255,255,0.88);
  --shadow-sm:   0 2px 8px rgba(27,77,62,0.08);
  --shadow-md:   0 8px 28px rgba(27,77,62,0.12);
  --shadow-lg:   0 20px 54px rgba(27,77,62,0.14);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-full: 999px;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }

/* ── ARABIC FONT ───────────────────────────────────────────── */
.arabic { font-family: 'Amiri', serif; }

/* ── LAYOUT ────────────────────────────────────────────────── */
.container { width: min(1160px, 92%); margin: 0 auto; }
.page { min-height: 72vh; }
.section { padding: 56px 6vw; }
.section-sm { padding: 32px 6vw; }

/* ── SITE HEADER ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 6vw;
  background: rgba(253,248,242,0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(27,77,62,0.07);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--green); font-weight: 800; font-size: 1.35rem;
}
.brand-mark {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: #fff; font-size: 1.4rem; font-weight: 800;
  box-shadow: 0 2px 8px rgba(27,77,62,0.25);
}
.brand-sub { font-size: 0.7rem; font-weight: 500; color: var(--muted); display: block; }
.site-header nav { display: flex; align-items: center; gap: 8px; }
.site-header nav a {
  color: var(--ink-soft); font-weight: 600; font-size: 0.93rem;
  padding: 8px 14px; border-radius: var(--radius-sm); transition: 0.2s;
}
.site-header nav a:hover { color: var(--green); background: var(--line-soft); }
.site-header nav a.nav-cta {
  background: var(--green); color: #fff; border-radius: var(--radius-full);
  padding: 9px 20px;
}
.site-header nav a.nav-cta:hover { background: var(--green-mid); }
.nav-toggle {
  display: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 12px; background: var(--white); color: var(--green); cursor: pointer;
}

/* ── SITE FOOTER ───────────────────────────────────────────── */
.footer {
  background: var(--green); color: rgba(255,255,255,0.85);
  padding: 36px 6vw 28px;
}
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px;
  padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.footer-tagline { font-size: 0.88rem; color: rgba(255,255,255,0.6); }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: rgba(255,255,255,0.72); font-size: 0.9rem; transition: 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  text-align: center; padding-top: 20px;
  color: rgba(255,255,255,0.45); font-size: 0.84rem;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--radius-sm); padding: 12px 22px;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: 0.2s ease;
  background: var(--green); color: #fff;
}
.btn:hover { background: var(--green-mid); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.secondary { background: var(--cream-soft); color: var(--green); border: 1px solid var(--line); }
.btn.secondary:hover { background: #ede5d8; }
.btn.gold { background: var(--gold); color: #fff; }
.btn.gold:hover { background: var(--gold-light); }
.btn.danger { background: #c0392b; }
.btn.danger:hover { background: #a93226; }
.btn.outline { background: transparent; border: 2px solid var(--green); color: var(--green); }
.btn.outline:hover { background: var(--green); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: var(--radius-md); }
.btn-sm { padding: 8px 14px; font-size: 0.84rem; }
.btn-full { width: 100%; }

/* ── CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card-hover { transition: 0.25s; }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ── FORMS ─────────────────────────────────────────────────── */
.form { display: grid; gap: 16px; max-width: 820px; }
.form.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-group { display: grid; gap: 7px; }
label { display: grid; gap: 7px; font-weight: 600; font-size: 0.93rem; color: var(--ink); }
label .hint { font-weight: 400; font-size: 0.82rem; color: var(--muted); }
input, select, textarea {
  width: 100%; border: 1.5px solid rgba(27,77,62,0.18); border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 0.95rem; color: var(--ink);
  background: var(--white); outline: none; transition: 0.2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(45,133,102,0.14);
}
input[readonly] { background: var(--cream-soft); color: var(--muted); cursor: not-allowed; }
textarea { min-height: 110px; resize: vertical; }
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input[type=checkbox] {
  width: 18px; min-width: 18px; height: 18px; margin-top: 3px;
  accent-color: var(--green); cursor: pointer;
}
.full { grid-column: 1 / -1; }

/* ── NOTICES ───────────────────────────────────────────────── */
.notice {
  border-radius: var(--radius-sm); padding: 14px 16px;
  background: #e8f5f0; color: var(--green); margin-bottom: 16px;
  border-left: 4px solid var(--green);
}
.notice.error { background: #fdf0f0; color: #c0392b; border-left-color: #c0392b; }
.notice.warning { background: #fdf8e8; color: #8a6800; border-left-color: var(--gold); }
.notice ul { margin: 8px 0 0 18px; }

/* ── BADGES ────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: var(--radius-full); padding: 4px 10px;
  font-size: 0.78rem; font-weight: 700;
  background: var(--cream-soft); color: var(--green); border: 1px solid var(--line);
}
.badge.gold { background: #fdf3dc; color: #8a6800; border-color: rgba(184,137,42,0.28); }
.badge.verified { background: #e5f6ee; color: #1b6e40; border-color: rgba(27,110,64,0.24); }
.badge.pending { background: #fff4e0; color: #b06000; border-color: rgba(176,96,0,0.20); }
.badge.rejected { background: #fef0ef; color: #b42b2b; border-color: rgba(180,43,43,0.20); }

/* ── GRID LAYOUTS ──────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ── STATS ─────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat {
  padding: 20px; border-radius: var(--radius-md);
  background: var(--green); color: #fff; text-align: center;
}
.stat strong { display: block; font-size: 1.9rem; line-height: 1; margin-bottom: 4px; }
.stat span { font-size: 0.85rem; opacity: 0.82; }

/* ── PROFILE CARDS ─────────────────────────────────────────── */
.profile-card { display: grid; gap: 14px; }
.profile-card .photo-wrap { position: relative; border-radius: var(--radius-sm); overflow: hidden; }
.photo {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius-sm); background: var(--cream-soft);
  display: block;
}
.photo.blurred { filter: blur(14px); transform: scale(1.04); }
.photo-placeholder {
  width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--green), var(--green-light));
  display: grid; place-items: center; color: #fff; font-size: 3rem; font-weight: 800;
}

/* ── PROGRESS BAR ──────────────────────────────────────────── */
.progress-wrap { background: var(--line); border-radius: var(--radius-full); height: 8px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--green); border-radius: var(--radius-full); transition: width 0.4s; }

/* ── CHAT ──────────────────────────────────────────────────── */
.chat-box {
  height: 60vh; overflow-y: auto; display: grid;
  align-content: start; gap: 12px; padding: 18px;
  background: var(--cream-soft); border-radius: var(--radius-md);
  border: 1px solid var(--line);
}
.message {
  max-width: 75%; padding: 11px 14px;
  border-radius: var(--radius-md); background: var(--white);
  box-shadow: var(--shadow-sm); font-size: 0.95rem;
}
.message.mine {
  justify-self: end; background: var(--green); color: #fff;
  border-bottom-right-radius: 4px;
}
.message time { display: block; font-size: 0.75rem; opacity: 0.65; margin-top: 4px; }

/* ── ISLAMIC NOTICE BOX ────────────────────────────────────── */
.islamic-notice {
  display: grid; grid-template-columns: auto 1fr; gap: 16px;
  padding: 22px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(27,77,62,0.06), rgba(27,77,62,0.02));
  border: 1px solid rgba(27,77,62,0.18);
  border-left: 5px solid var(--green);
}
.islamic-notice-icon {
  width: 42px; height: 42px; border-radius: var(--radius-full);
  background: var(--green); color: #fff;
  display: grid; place-items: center; font-size: 1.2rem;
  flex-shrink: 0;
}
.islamic-notice h3 { color: var(--green); font-size: 1.05rem; margin-bottom: 8px; }
.islamic-notice p { color: var(--ink-soft); font-size: 0.93rem; line-height: 1.65; }

/* ── QURAN VERSE BLOCK ─────────────────────────────────────── */
.verse-block {
  text-align: center; padding: 40px 24px;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: #fff; border-radius: var(--radius-lg);
}
.verse-arabic {
  font-family: 'Amiri', serif; font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.7; direction: rtl; margin-bottom: 16px;
  color: rgba(255,255,255,0.94);
}
.verse-trans { font-size: 1.05rem; font-style: italic; color: rgba(255,255,255,0.82); margin-bottom: 8px; }
.verse-ref { font-size: 0.88rem; color: rgba(255,255,255,0.58); }

/* ── FILTERS BAR ───────────────────────────────────────────── */
.filters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px;
  padding: 18px; background: var(--card-bg); border: 1px solid var(--line);
  border-radius: var(--radius-md); margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

/* ── HERO (home page) ──────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 72px);
  background:
    linear-gradient(
      135deg,
      rgba(27,77,62,0.92) 0%,
      rgba(36,107,85,0.82) 50%,
      rgba(27,77,62,0.70) 100%
    ),
    url('../Images/hero2.jpg') center center / cover no-repeat;
  color: #fff;
  display: grid; align-items: center;
}
.hero-inner { padding: 60px 6vw; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  color: rgba(255,255,255,0.75); margin-bottom: 24px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; width: 36px; height: 1px; background: rgba(255,255,255,0.4);
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 800; line-height: 1.05;
  max-width: 760px; margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero p { font-size: 1.15rem; line-height: 1.7; max-width: 620px; color: rgba(255,255,255,0.85); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 36px;
  padding: 10px 18px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.82);
  font-size: 0.87rem; border: 1px solid rgba(255,255,255,0.18);
}

/* ── FEATURE ITEMS ─────────────────────────────────────────── */
.feature-icon {
  width: 62px; height: 62px; border-radius: 18px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: #fff; display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 16px;
}
.feature h4 { color: var(--green); font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.93rem; }

/* ── DASHBOARD ─────────────────────────────────────────────── */
.dash-head {
  padding: 32px 6vw 24px;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: #fff;
}
.dash-head h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 4px; }
.dash-head p { color: rgba(255,255,255,0.78); font-size: 0.95rem; }

/* ── MISC UTILITIES ────────────────────────────────────────── */
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.flex-row { display: flex; align-items: center; gap: 8px; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); font-size: 0.9rem; }
.text-green { color: var(--green); }
.text-gold { color: var(--gold); }
.fw-bold { font-weight: 700; }
.divider { border: none; border-top: 1px solid var(--line); margin: 24px 0; }

/* ── TOAST NOTIFICATIONS ───────────────────────────────────── */
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  padding: 14px 20px; border-radius: var(--radius-md);
  background: var(--green); color: #fff;
  box-shadow: var(--shadow-lg); font-size: 0.95rem; font-weight: 600;
}

/* ── SPINNER ───────────────────────────────────────────────── */
.spinner {
  width: 22px; height: 22px;
  border: 3px solid rgba(27,77,62,0.18); border-top-color: var(--green);
  border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── ADMIN PANEL ───────────────────────────────────────────── */
.admin-grid { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 72px); }
.admin-sidebar {
  background: var(--green); padding: 28px 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.admin-sidebar a {
  color: rgba(255,255,255,0.78); padding: 11px 14px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.92rem;
  display: flex; align-items: center; gap: 10px; transition: 0.2s;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: rgba(255,255,255,0.14); color: #fff;
}
.admin-content { padding: 32px; }

/* ── POLICY / FAQ PAGES ────────────────────────────────────── */
.policy-wrap { max-width: 860px; margin: 0 auto; }
.policy-wrap h2 { color: var(--green); font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 28px; }
.policy-wrap h3 { color: var(--green); font-size: 1.15rem; margin: 32px 0 12px; }
.policy-wrap p { color: var(--ink-soft); line-height: 1.8; margin-bottom: 14px; }
.policy-wrap ul { color: var(--ink-soft); line-height: 1.8; padding-left: 22px; margin-bottom: 14px; }
.policy-wrap ul li { margin-bottom: 6px; }

/* ── FAQ ACCORDION ─────────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 12px;
}
.faq-q {
  width: 100%; background: var(--card-bg); border: 0; padding: 18px 20px;
  text-align: left; font-weight: 700; font-size: 1rem; color: var(--ink);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  transition: 0.2s;
}
.faq-q:hover { background: var(--cream-soft); }
.faq-q .arrow { font-size: 1.1rem; transition: transform 0.25s; }
.faq-q.open .arrow { transform: rotate(180deg); }
.faq-a {
  padding: 0 20px; max-height: 0; overflow: hidden;
  background: var(--cream-soft); color: var(--ink-soft); line-height: 1.75;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-a.open { padding: 16px 20px; max-height: 400px; }

/* ── VERIFICATION STEPS ────────────────────────────────────── */
.verify-steps { display: grid; gap: 14px; }
.verify-step {
  display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: center;
  padding: 18px; border-radius: var(--radius-md);
  border: 1px solid var(--line); background: var(--card-bg);
}
.step-num {
  width: 42px; height: 42px; border-radius: var(--radius-full);
  background: var(--green); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.step-num.done { background: #27ae60; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form.two { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-sidebar { flex-direction: row; flex-wrap: wrap; padding: 14px; }
  .admin-content { padding: 20px; }
}
@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-wrap: wrap; }
  .site-header nav { display: none; flex-direction: column; align-items: flex-start; width: 100%; }
  .site-header nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .hero-inner { padding: 44px 6vw; }
  .section { padding: 40px 5vw; }
  .footer-inner { flex-direction: column; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .islamic-notice { grid-template-columns: 1fr; }
}
