/* ===============================
   GLOBAL RESET
================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===============================
   DESIGN TOKENS — LIGHT MODE
================================ */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #555;
  --border: #e2e2e2;
  --accent: #16a34a; /* Islamic green */

  --primary: #2563eb;
  --primary-hover: #1d4ed8;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ===============================
   DARK MODE OVERRIDES
================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --surface: #161616;
    --text: #eaeaea;
    --muted: #b0b0b0;
    --border: #2a2a2a;
    --accent: #22c55e;

    --primary: #4ea1ff;
    --primary-hover: #2b6cff;

    --shadow: 0 10px 30px rgba(0,0,0,0.45);
  }
}

/* ===============================
   BASE
================================ */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ===============================
   LAYOUT
================================ */
main {
  max-width: 900px;
  margin: 40px auto;
  padding: 32px;

  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}


/* ===============================
   TYPOGRAPHY
================================ */
h1, h2, h3 {
  font-weight: 600;
  margin-bottom: 12px;
}

p {
  margin-bottom: 16px;
  color: var(--muted);
}

/* ===============================
   LINKS
================================ */
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ===============================
   BUTTONS
================================ */
button {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  border: none;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}
button:hover {
  opacity: 0.9;
}

/* ===============================
   FORMS
================================ */
input {
  width: 100%;
  padding: 10px 12px;
  margin: 6px 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

/* ===============================
   CARDS (GENERIC)
================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

/* ===============================
   NAV (GLOBAL)
================================ */
.nav {
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  gap: 14px;
}

.nav-item {
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}

.nav-item:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 80px;
  padding: 28px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}

.footer-inner a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
