/* ==========================================================================
   Erva Meclisi — Ana Stil Dosyası
   ========================================================================== */

:root {
  --color-bg: #faf7f1;
  --color-bg-alt: #f2ecdf;
  --color-surface: #ffffff;
  --color-text: #2b241a;
  --color-text-muted: #6b6153;
  --color-primary: #0f4b3e;
  --color-primary-dark: #0a352c;
  --color-primary-light: #e4efe9;
  --color-gold: #b9903f;
  --color-gold-light: #f1e4c8;
  --color-border: #e3dbc8;

  --font-heading: "Amiri", "Georgia", serif;
  --font-body: "Merriweather Sans", "Segoe UI", sans-serif;
  --font-arabic: "Amiri", "Traditional Arabic", serif;

  --radius: 10px;
  --shadow: 0 4px 16px rgba(15, 75, 62, 0.08);
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  line-height: 1.3;
  margin: 0 0 0.6em;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover { color: var(--color-gold); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--color-primary-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}
.brand span.sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--color-gold-light);
  font-weight: 400;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: #f2ecdf;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,0.08);
  color: var(--color-gold-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-primary-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 16px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding: 80px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(185,144,63,0.18), transparent 60%);
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 820px;
  margin: 0 auto 18px;
  position: relative;
}
.hero p {
  max-width: 640px;
  margin: 0 auto 30px;
  color: var(--color-gold-light);
  font-size: 1.1rem;
  position: relative;
}
.hero .arabic {
  display: block;
  font-family: var(--font-arabic);
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: 14px;
  direction: rtl;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-gold {
  background: var(--color-gold);
  color: var(--color-primary-dark);
}
.btn-gold:hover { background: #cba24d; color: var(--color-primary-dark); }
.btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  margin-left: 10px;
}
.btn-outline:hover { border-color: var(--color-gold); color: var(--color-gold); }

/* ---------- Sections ---------- */

section { padding: 70px 0; }
.section-alt { background: var(--color-bg-alt); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.section-head .eyebrow {
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}
.section-head p { color: var(--color-text-muted); }

/* ---------- Card grid ---------- */

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

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(15,75,62,0.14);
}
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
  font-family: var(--font-arabic);
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--color-text-muted); font-size: 0.95rem; margin: 0 0 12px; }
.card a.card-link { font-weight: 600; font-size: 0.9rem; }

/* ---------- Hadis card ---------- */

.hadis-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}
.hadis-card .hadis-arabic {
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  direction: rtl;
  text-align: right;
  color: var(--color-primary-dark);
  margin-bottom: 14px;
  line-height: 2;
}
.hadis-card .hadis-meal {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 2px solid var(--color-gold-light);
}
.hadis-meta {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--color-border);
}
.hadis-meta .meta-block h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  margin-bottom: 6px;
}
.hadis-meta .meta-block p, .hadis-meta .meta-block ul {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text);
}
.hadis-meta ul { padding-left: 18px; }

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.badge-sahih { background: #e2f3ea; color: #0f4b3e; }
.badge-hasen { background: #fdf3e0; color: #8a6414; }
.badge-zayif { background: #fbe7e7; color: #a13a3a; }

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }

/* ---------- Page header (for inner pages) ---------- */

.page-header {
  background: var(--color-primary-light);
  padding: 46px 0 40px;
  border-bottom: 1px solid var(--color-border);
}
.page-header h1 { margin-bottom: 8px; }
.page-header p { color: var(--color-text-muted); max-width: 700px; }

/* ---------- Article / content list ---------- */

.post-list { display: flex; flex-direction: column; gap: 18px; }
.post-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.post-item h3 { margin: 0 0 4px; font-size: 1.1rem; }
.post-item .post-date { color: var(--color-text-muted); font-size: 0.85rem; white-space: nowrap; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-primary-dark);
  color: var(--color-gold-light);
  padding: 50px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 30px;
}
.footer-grid h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-grid a {
  color: var(--color-gold-light);
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  opacity: 0.9;
}
.footer-grid a:hover { color: #fff; opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.82rem;
  text-align: center;
  color: rgba(241,228,200,0.7);
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }
