/* ================================================================
   İslam Rehberi — Global Stiller
   Tema: Kütüphane / Ansiklopedi — Sıcak parşömen, derin yeşil, altın
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&family=DM+Sans:wght@300;400;500;600&family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');

/* ── Değişkenler ─────────────────────────────────────────── */
:root {
  --parchment:   #FAF7F0;
  --parchment-2: #F2EDE2;
  --parchment-3: #E8E0D0;
  --white:       #FFFFFF;
  --border:      #DDD5C0;
  --border-light:#EDE8DC;

  --green:       #0D3B2E;
  --green-2:     #155740;
  --green-3:     #1E7A58;
  --green-pale:  #E6F0EB;

  --gold:        #A67C2E;
  --gold-2:      #C99438;
  --gold-pale:   #FBF3E0;
  --gold-border: #DFC080;

  --text:        #1C140E;
  --text-2:      #5C4839;
  --text-3:      #9C8070;
  --text-inv:    #F5F0E8;
  --text-inv-2:  #C8BFB0;

  --font-serif:  'EB Garamond', Georgia, serif;
  --font-body:   'Source Serif 4', Georgia, serif;
  --font-ui:     'DM Sans', system-ui, sans-serif;
  --font-arabic: 'Amiri', serif;

  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   14px;
  --shadow-sm:   0 1px 3px rgba(28,20,14,.08);
  --shadow:      0 2px 12px rgba(28,20,14,.10);
  --shadow-lg:   0 8px 32px rgba(28,20,14,.14);

  --header-h:    64px;
  --max-w:       1200px;
}

/* ── Sıfırlama & Temel ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-3); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-ui); }
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
}

/* ── Tipografi ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.serif { font-family: var(--font-serif); }
.ui    { font-family: var(--font-ui); }
.arabic {
  font-family: var(--font-arabic);
  direction: rtl;
  font-size: 1.25em;
  line-height: 2;
  color: var(--green);
}

/* Alıntı / snippet */
blockquote, .quote-block {
  border-left: 3px solid var(--gold);
  padding: .75rem 1.25rem;
  background: var(--gold-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-2);
  margin: 1.25rem 0;
}
blockquote cite, .quote-block .kaynak {
  display: block;
  font-style: normal;
  font-size: .85rem;
  margin-top: .5rem;
  color: var(--text-3);
  font-family: var(--font-ui);
}

/* ── Düzen Yardımcıları ───────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.main-content { flex: 1; padding-bottom: 4rem; }
.section { margin-top: 3.5rem; }
.section-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  padding-bottom: .5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-title a {
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 500;
  color: var(--green-3);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  background: var(--green);
  height: var(--header-h);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(13,59,46,.3);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  overflow: hidden;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--green);
}
.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.site-logo-text strong {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-inv);
  letter-spacing: .05em;
}
.site-logo-text span {
  font-family: var(--font-ui);
  font-size: .62rem;
  color: var(--gold-2);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Nav */
.site-nav {
  display: flex;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
}
.site-nav a {
  font-family: var(--font-ui);
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-inv-2);
  text-decoration: none;
  transition: color .2s;
  letter-spacing: .02em;
}
.site-nav a:hover, .site-nav a.active { color: var(--gold-2); }

/* Arama */
.header-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.search-wrap {
  position: relative;
}
.search-input {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: .45rem 1rem .45rem 2.4rem;
  font-size: .85rem;
  color: var(--text-inv);
  width: 220px;
  outline: none;
  transition: all .2s;
  font-family: var(--font-ui);
}
.search-input::placeholder { color: rgba(255,255,255,.4); }
.search-input:focus {
  background: rgba(255,255,255,.15);
  border-color: var(--gold-2);
  width: 280px;
}
.search-icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.4);
  font-size: .8rem;
  pointer-events: none;
}
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 360px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 200;
  display: none;
}
.search-results.open { display: block; }
.search-group-title {
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  padding: .6rem 1rem .3rem;
  background: var(--parchment);
}
.search-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .65rem 1rem;
  border-top: 1px solid var(--border-light);
  transition: background .15s;
  text-decoration: none;
  color: var(--text);
}
.search-item:hover { background: var(--parchment); }
.search-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.search-item-icon.sc { background: var(--gold-pale); color: var(--gold); }
.search-item-icon.h  { background: var(--green-pale); color: var(--green-2); }
.search-item-icon.t  { background: #EEF2FF; color: #4338ca; }
.search-item p { font-size: .85rem; line-height: 1.4; margin: 0; }
.search-item small { font-size: .75rem; color: var(--text-3); font-family: var(--font-ui); }
.search-empty { padding: 1.5rem; text-align: center; color: var(--text-3); font-size: .9rem; font-family: var(--font-ui); }

/* Mobile menu button */
.btn-menu {
  display: none;
  background: none;
  border: none;
  color: var(--text-inv);
  font-size: 1.25rem;
  padding: .25rem;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--green);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 1.5rem;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: .75rem 0;
  font-family: var(--font-ui);
  font-size: .95rem;
  color: var(--text-inv-2);
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
}
.mobile-nav a:hover { color: var(--gold-2); }
.mobile-search {
  margin-top: .75rem;
  position: relative;
}
.mobile-search input {
  width: 100%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: .65rem 1rem .65rem 2.4rem;
  font-size: .9rem;
  color: var(--text-inv);
  outline: none;
}
.mobile-search input::placeholder { color: rgba(255,255,255,.4); }
.mobile-search .search-icon { left: .85rem; }

/* ── Kartlar — Genel ──────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ── Soru-Cevap Kartı ─────────────────────────────────────── */
.sc-kart {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  text-decoration: none;
  color: inherit;
}
.sc-kart:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  color: inherit;
}
.sc-kart-kat {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.badge-kat {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green-2);
  background: var(--green-pale);
  padding: .2rem .6rem;
  border-radius: 100px;
}
.badge-altkat {
  font-family: var(--font-ui);
  font-size: .72rem;
  color: var(--text-3);
  background: var(--parchment-2);
  padding: .2rem .55rem;
  border-radius: 100px;
}
.sc-kart h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.sc-kart p {
  font-size: .9rem;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  line-height: 1.6;
}
.sc-kart-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: .5rem;
  border-top: 1px solid var(--border-light);
}
.sc-kart-meta span {
  font-family: var(--font-ui);
  font-size: .78rem;
  color: var(--text-3);
}

/* Hüküm Kartı */
.hukum-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 100px;
  border: 1.5px solid;
}
.hukum-helal    { color: #15803d; background: #f0fdf4; border-color: #86efac; }
.hukum-haram    { color: #b91c1c; background: #fef2f2; border-color: #fca5a5; }
.hukum-mekruh   { color: #c2410c; background: #fff7ed; border-color: #fdba74; }
.hukum-mubah    { color: #1d4ed8; background: #eff6ff; border-color: #93c5fd; }
.hukum-farz     { color: #6d28d9; background: #f5f3ff; border-color: #c4b5fd; }
.hukum-vacip    { color: #5b21b6; background: #f5f3ff; border-color: #a78bfa; }
.hukum-sunnet   { color: #0369a1; background: #f0f9ff; border-color: #7dd3fc; }
.hukum-mustahab { color: #0f766e; background: #f0fdfa; border-color: #99f6e4; }

/* ── Hadis Kartı ──────────────────────────────────────────── */
.hadis-kart {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green-3);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.25rem 1.4rem;
  transition: box-shadow .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.hadis-kart:hover { box-shadow: var(--shadow); color: inherit; }
.hadis-kart .hadis-metin {
  font-family: var(--font-body);
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hadis-kart .hadis-arapca { display: none; }
.hadis-kart-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}
.hadis-kart-meta span {
  font-family: var(--font-ui);
  font-size: .78rem;
  color: var(--text-3);
}
.sihhat-badge {
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 600;
  padding: .15rem .55rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sihhat-sahih  { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.sihhat-hasen  { background: #eff6ff; color: #1d4ed8; border: 1px solid #93c5fd; }
.sihhat-zayif  { background: #fff7ed; color: #c2410c; border: 1px solid #fdba74; }
.sihhat-mevzu  { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }

/* ── Terim Kartı ─────────────────────────────────────────── */
.terim-kart {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.4rem;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.terim-kart:hover { box-shadow: var(--shadow); transform: translateY(-1px); color: inherit; }
.terim-kart-baslik {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: .4rem;
}
.terim-kart-baslik h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green);
}
.terim-kart-baslik .arapca-kucuk {
  font-family: var(--font-arabic);
  font-size: 1rem;
  color: var(--text-3);
  direction: rtl;
}
.terim-kart p { font-size: .9rem; color: var(--text-2); margin: 0; line-height: 1.6; }
.terim-kart .koken-badge {
  font-family: var(--font-ui);
  font-size: .7rem;
  color: var(--text-3);
  background: var(--parchment-2);
  padding: .15rem .5rem;
  border-radius: 100px;
  margin-top: .5rem;
  display: inline-block;
}

/* ── Kategori Grid ────────────────────────────────────────── */
.kat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .75rem;
}
.kat-kart {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .5rem;
  transition: all .2s;
}
.kat-kart:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.kat-kart-ikon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.kat-kart span {
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.3;
}
.kat-kart small {
  font-family: var(--font-ui);
  font-size: .72rem;
  color: var(--text-3);
}

/* ── İstatistik ───────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.stat-kart {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.stat-sayi {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-label {
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
}

/* ── Butonlar ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--green);
  color: var(--text-inv);
}
.btn-primary:hover { background: var(--green-2); color: var(--text-inv); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: var(--gold-2); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--text-inv); }

.btn-ghost {
  background: rgba(255,255,255,.12);
  color: var(--text-inv);
  border: 1px solid rgba(255,255,255,.2);
}
.btn-ghost:hover { background: rgba(255,255,255,.2); color: var(--text-inv); }

.btn-sm { padding: .4rem 1rem; font-size: .82rem; }
.btn-lg { padding: .8rem 2rem; font-size: 1rem; }

/* ── Form Elemanları ──────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-family: var(--font-ui);
  font-size: .83rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: .35rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: .65rem .9rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--green-3);
  box-shadow: 0 0 0 3px rgba(30,122,88,.12);
}
.form-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239C8070' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}

/* ── Soru Sor Bölümü ─────────────────────────────────────── */
.soru-sor-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.soru-sor-card h3 {
  font-size: 1.4rem;
  margin-bottom: .5rem;
}
.soru-sor-card > p {
  color: var(--text-2);
  font-size: .95rem;
  margin-bottom: 1.5rem;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: var(--green);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'%3E%3Cpolygon points='30,2 38,16 54,16 42,26 46,42 30,33 14,42 18,26 6,16 22,16'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--gold-2);
  margin-bottom: 1rem;
}
.hero h1 {
  color: var(--text-inv);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: .75rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-2);
}
.hero-sub {
  color: var(--text-inv-2);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 500px;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  min-width: 200px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: .75rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
}
.hero-stat-sayi {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-2);
}
.hero-stat-label {
  font-family: var(--font-ui);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
  margin-top: .25rem;
}

/* ── Ravi Rozeti ──────────────────────────────────────────── */
.ravi-link {
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 500;
  color: var(--green-2);
  background: var(--green-pale);
  padding: .2rem .6rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background .15s;
}
.ravi-link:hover { background: #c6dfd5; color: var(--green); }

/* ── Yükleniyor ───────────────────────────────────────────── */
.loading-grid {
  display: grid;
  gap: .75rem;
}
.skeleton {
  background: linear-gradient(90deg, var(--parchment-2) 25%, var(--parchment-3) 50%, var(--parchment-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.page-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
}
.page-btn:hover { border-color: var(--green); color: var(--green); }
.page-btn.active { background: var(--green); border-color: var(--green); color: #fff; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Detay Sayfası ────────────────────────────────────────── */
.detay-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-ui);
  font-size: .8rem;
  color: var(--text-3);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb-sep { color: var(--border); }

.detay-baslik { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1.25rem; }

.cevap-icerigi {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}
.cevap-icerigi p { margin-bottom: 1.1em; }
.cevap-icerigi h3, .cevap-icerigi h4 {
  margin: 1.75em 0 .5em;
  color: var(--green);
}
.cevap-icerigi a { color: var(--green-3); border-bottom: 1px dotted var(--green-3); }
.cevap-icerigi a:hover { border-bottom-style: solid; }

/* Otomatik linklenen terimler */
.terim-link {
  color: var(--green-3);
  border-bottom: 1px dotted var(--green-3);
  text-decoration: none;
  cursor: pointer;
}
.terim-link:hover {
  background: var(--green-pale);
  border-radius: 3px;
  padding: 0 2px;
}

/* ── Ayet & Hadis Blokları (detay sayfası) ────────────────── */
.ayet-blok {
  background: var(--parchment-2);
  border: 1px solid var(--gold-border);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.ayet-blok .arapca {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
  font-size: 1.3rem;
  line-height: 2.2;
  color: var(--green);
  margin-bottom: .5rem;
}
.ayet-blok .referans {
  font-family: var(--font-ui);
  font-size: .8rem;
  color: var(--text-3);
  font-style: italic;
}

.hadis-blok {
  background: var(--green-pale);
  border: 1px solid #b2d4c6;
  border-left: 4px solid var(--green-3);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.hadis-blok .hadis-arapca {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
  font-size: 1.2rem;
  line-height: 2.2;
  color: var(--green);
  margin-bottom: .75rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #b2d4c6;
}
.hadis-blok .hadis-tr { font-size: .95rem; line-height: 1.7; }
.hadis-blok .hadis-kaynak {
  font-family: var(--font-ui);
  font-size: .8rem;
  color: var(--text-3);
  margin-top: .5rem;
}

/* Kaynak alıntıları */
.kaynak-blok {
  border-left: 3px solid var(--gold);
  padding: .85rem 1.2rem;
  background: var(--gold-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0;
}
.kaynak-blok p { font-style: italic; font-size: .95rem; margin: 0 0 .35rem; }
.kaynak-blok cite {
  font-style: normal;
  font-family: var(--font-ui);
  font-size: .78rem;
  color: var(--text-3);
}

/* ── Sidebar ──────────────────────────────────────────────── */
.sayfa-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}
.sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.sidebar-kart {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-kart h4 {
  font-size: .88rem;
  font-weight: 600;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
  margin-bottom: 1rem;
}

/* ── Footer ──────────────────────────────────────────────────*/
.site-footer {
  background: var(--green);
  color: var(--text-inv-2);
  padding: 3rem 0 2rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--text-inv-2);
  max-width: 320px;
  margin-top: .75rem;
}
.footer-col h4 {
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold-2);
  margin-bottom: 1rem;
  color: rgba(255,255,255,.5);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a {
  color: var(--text-inv-2);
  font-size: .9rem;
  text-decoration: none;
  transition: color .15s;
}
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-family: var(--font-ui);
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  margin: 0;
}

/* ── Geri Dön Butonu ──────────────────────────────────────── */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-ui);
  font-size: .83rem;
  color: var(--text-3);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color .15s;
}
.btn-back:hover { color: var(--green); }

/* ── Animasyonlar ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .4s ease both; }
.fade-up-1 { animation-delay: .05s; }
.fade-up-2 { animation-delay: .10s; }
.fade-up-3 { animation-delay: .15s; }
.fade-up-4 { animation-delay: .20s; }

/* ── Boş Durum ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-3);
  font-family: var(--font-ui);
}
.empty-state i { font-size: 2.5rem; margin-bottom: .75rem; opacity: .4; }
.empty-state p { font-size: .95rem; }

/* ── Toast ────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.toast {
  background: var(--green);
  color: var(--text-inv);
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: .88rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .5rem;
  animation: fadeUp .3s ease;
}
.toast.error { background: #b91c1c; }

/* ── Responsive ───────────────────────────────────────────── */
html, body { overflow-x: hidden; }
.container { min-width: 0; }
.filtre-bar { min-width: 0; }
.filtre-bar .form-group { min-width: 0; }
.filtre-bar .form-input,
.filtre-bar .form-select { min-width: 0; width: 100%; }
.sc-kart h3, .hadis-metin { word-break: break-word; }

@media (max-width: 1024px) {
  .kat-grid { grid-template-columns: repeat(4, 1fr); }
  .sayfa-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .site-nav, .search-wrap { display: none; }
  .btn-menu { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: row; min-width: unset; }
  .hero-stat { flex: 1; }
  .kat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .filtre-bar { flex-direction: column; }
  .filtre-bar .form-group { min-width: unset; width: 100%; }
  .mezhep-grid { grid-template-columns: 1fr; }
  .detay-meta-bar { flex-wrap: wrap; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .header-actions { gap: .4rem; }
  .site-header .container { gap: .75rem; }
  .site-logo-text span { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero { padding: 2rem 0; }
  .kat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { flex-direction: column; }
  .soru-sor-card { padding: 1.25rem; }
  .soru-sor-card > div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  .alfabe-bar .harf-btn { width: 30px; height: 30px; font-size: .75rem; }
  table { font-size: .82rem; }
  .btn-lg { padding: .65rem 1.25rem; font-size: .9rem; }
}
