/* ==========================================================================
   İMAYDER — Bileşen Katmanı
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Süsleme motifleri (hat & geometri)
   -------------------------------------------------------------------------- */

/* Sekizgen yıldız örgüsü — çok hafif doku */
.motif-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  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='%231a7ba3' stroke-opacity='0.12' stroke-width='1'%3E%3Cpath d='M30 2 L44 16 L58 30 L44 44 L30 58 L16 44 L2 30 L16 16 Z'/%3E%3Cpath d='M30 12 L48 30 L30 48 L12 30 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}

.motif-grid--dark {
  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='%23ffffff' stroke-opacity='0.07' stroke-width='1'%3E%3Cpath d='M30 2 L44 16 L58 30 L44 44 L30 58 L16 44 L2 30 L16 16 Z'/%3E%3Cpath d='M30 12 L48 30 L30 48 L12 30 Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Işıltı halesi */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.55;
}

/* Bölüm başlığı üstündeki hat çizgisi */
.ornament {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--gold-600);
}
.ornament::before, .ornament::after {
  content: '';
  height: 1px;
  width: 44px;
  background: linear-gradient(90deg, transparent, currentColor);
}
.ornament::after { background: linear-gradient(270deg, transparent, currentColor); }
.ornament--start::before { display: none; }
.ornament--start { justify-content: flex-start; }
.ornament--start::after { width: 64px; }

.ornament-dot {
  width: 7px; height: 7px;
  background: currentColor;
  transform: rotate(45deg);
  flex: none;
}

/* --------------------------------------------------------------------------
   2. Bölüm başlıkları
   -------------------------------------------------------------------------- */

.sec-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sec-head--center { text-align: center; }
.sec-head--center .ornament { justify-content: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold-500);
  transform: rotate(45deg);
}
.section--deep .eyebrow { color: var(--gold-300); }

.sec-title {
  font-size: var(--fs-3xl);
  margin-bottom: 0.85rem;
}

.sec-desc {
  color: var(--text-muted);
  max-width: 58ch;
  font-size: var(--fs-md);
}
.sec-head--center .sec-desc { margin-inline: auto; }
.section--deep .sec-desc { color: var(--brand-200); }

/* --------------------------------------------------------------------------
   3. Butonlar
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--brand-700);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.7rem;
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-pill);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.22) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform 620ms var(--ease-out);
}
.btn:hover::after { transform: translateX(130%); }

.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-brand); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--brand-700); }
.btn--primary:hover { --btn-bg: var(--brand-800); }

.btn--gold {
  --btn-bg: var(--gold-500);
  --btn-fg: var(--brand-900);
}
.btn--gold:hover { --btn-bg: var(--gold-400); box-shadow: 0 12px 32px rgba(201, 162, 39, 0.34); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--brand-800);
  --btn-bd: var(--border);
}
.btn--ghost:hover { --btn-bg: var(--brand-50); --btn-bd: var(--brand-300); box-shadow: var(--sh-sm); }

.btn--light {
  --btn-bg: rgba(255,255,255,0.1);
  --btn-fg: #fff;
  --btn-bd: rgba(255,255,255,0.32);
  backdrop-filter: blur(8px);
}
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--brand-900); --btn-bd: #fff; }

.btn--white { --btn-bg: #fff; --btn-fg: var(--brand-800); }
.btn--white:hover { --btn-bg: var(--brand-50); }

.btn--sm { padding: 0.6rem 1.2rem; font-size: var(--fs-sm); }
.btn--lg { padding: 1.05rem 2.2rem; font-size: var(--fs-md); }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.55; pointer-events: none; }

/* Metin bağlantısı, oklu */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--brand-600);
}
.link-arrow svg { transition: transform var(--dur-base) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   4. Rozetler
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--r-pill);
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
  white-space: nowrap;
}
.badge--gold { background: var(--gold-50); color: var(--gold-700); border-color: var(--gold-100); }
.badge--success { background: var(--success-bg); color: var(--success); border-color: transparent; }
.badge--warning { background: var(--warning-bg); color: var(--warning); border-color: transparent; }
.badge--danger { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.badge--neutral { background: var(--ink-100); color: var(--ink-600); border-color: transparent; }
.badge--glass {
  background: rgba(255,255,255,0.13);
  color: #fff;
  border-color: rgba(255,255,255,0.26);
  backdrop-filter: blur(6px);
}

/* --------------------------------------------------------------------------
   5. Kartlar
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--brand-200); }
.card__body { padding: var(--space-5); }

/* Konu kartı — ana bölüm kutuları */
.topic-card {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}

/* Üst kemer aksanı */
.topic-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 72px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out), width var(--dur-base) var(--ease-out);
}

/* Köşe motifi */
.topic-card::after {
  content: '';
  position: absolute;
  right: -38px; bottom: -38px;
  width: 132px; height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-50) 0%, transparent 68%);
  z-index: -1;
  transition: transform var(--dur-slow) var(--ease-out);
}

.topic-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--brand-200); }
.topic-card:hover::before { opacity: 1; width: 120px; }
.topic-card:hover::after { transform: scale(1.45); }

.topic-card__icon {
  width: 62px; height: 62px;
  display: grid;
  place-items: center;
  border-radius: var(--r-arch);
  background: linear-gradient(155deg, var(--brand-600), var(--brand-800));
  color: #fff;
  box-shadow: 0 8px 20px rgba(19, 94, 128, 0.26);
  flex: none;
  transition: transform var(--dur-base) var(--ease-spring);
}
.topic-card:hover .topic-card__icon { transform: rotate(-5deg) scale(1.06); }
.topic-card__icon svg { width: 28px; height: 28px; }

.topic-card__title {
  font-size: var(--fs-xl);
  color: var(--heading);
  margin: 0;
}
.topic-card__meta {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 600;
}
.topic-card__desc {
  font-size: var(--fs-base);
  color: var(--text-muted);
  line-height: var(--lh-base);
  flex: 1;
}
.topic-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  font-size: var(--fs-sm);
}
.topic-card__count { color: var(--text-faint); font-weight: 500; }

/* Yazı kartı */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 100%;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--brand-200); }

.post-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(150deg, var(--brand-700), var(--brand-900));
}
.post-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
.post-card:hover .post-card__media img { transform: scale(1.07); }

.post-card__media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.28);
}
.post-card__media-fallback svg { width: 52px; height: 52px; }

.post-card__tag {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  z-index: 2;
}

.post-card__body {
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}
.post-card__title {
  font-size: var(--fs-lg);
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.32;
  transition: color var(--dur-fast) var(--ease-out);
}
.post-card:hover .post-card__title { color: var(--brand-600); }
.post-card__excerpt { font-size: var(--fs-base); color: var(--text-muted); flex: 1; }
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: var(--text-faint);
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-soft);
}
.post-card__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.post-card__meta svg { width: 14px; height: 14px; opacity: 0.7; }

/* Yatay liste kartı */
.list-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 1.25rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.list-card:hover { border-color: var(--brand-200); box-shadow: var(--sh-sm); }
.list-card__media {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--brand-100);
}
.list-card__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) {
  .list-card { grid-template-columns: 84px 1fr; gap: 0.9rem; }
}

/* --------------------------------------------------------------------------
   6. Formlar
   -------------------------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.15rem; }

.label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-700);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.label .req { color: var(--danger); }

.input, .textarea, .select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: var(--fs-base);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }

.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(26, 123, 163, 0.13);
}

.textarea { resize: vertical; min-height: 130px; line-height: 1.65; }

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a717e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

.field-hint { font-size: var(--fs-xs); color: var(--text-faint); }
.field-error { font-size: var(--fs-xs); color: var(--danger); font-weight: 500; }
.input.is-invalid, .textarea.is-invalid, .select.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.10);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.5;
}
.check input[type='checkbox'], .check input[type='radio'] {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-600);
  flex: none;
  cursor: pointer;
}

/* Anahtar (switch) */
.switch { display: inline-flex; align-items: center; gap: 0.7rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  width: 46px; height: 26px;
  background: var(--ink-300);
  border-radius: var(--r-pill);
  position: relative;
  transition: background-color var(--dur-base) var(--ease-out);
  flex: none;
}
.switch__track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--sh-xs);
  transition: transform var(--dur-base) var(--ease-spring);
}
.switch input:checked + .switch__track { background: var(--brand-600); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 4px rgba(26,123,163,0.18); }
.switch__label { font-size: var(--fs-sm); font-weight: 500; }

/* --------------------------------------------------------------------------
   7. Uyarı kutuları
   -------------------------------------------------------------------------- */

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  border: 1px solid transparent;
  border-left-width: 3px;
}
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert--success { background: var(--success-bg); color: var(--success); border-left-color: var(--success); }
.alert--danger  { background: var(--danger-bg);  color: var(--danger);  border-left-color: var(--danger); }
.alert--warning { background: var(--warning-bg); color: var(--warning); border-left-color: var(--warning); }
.alert--info    { background: var(--info-bg);    color: var(--brand-700); border-left-color: var(--brand-500); }

/* --------------------------------------------------------------------------
   8. Sayfalama
   -------------------------------------------------------------------------- */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: var(--space-7);
}
.pagination a, .pagination span {
  min-width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0.75rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-600);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: all var(--dur-fast) var(--ease-out);
}
.pagination a:hover { border-color: var(--brand-400); color: var(--brand-700); background: var(--brand-50); }
.pagination .active span, .pagination span[aria-current] {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff;
}
.pagination .disabled span { opacity: 0.4; }
.pagination svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   9. Boş durum
   -------------------------------------------------------------------------- */

.empty {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
}
.empty__icon {
  width: 72px; height: 72px;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
  border-radius: var(--r-arch);
  background: var(--brand-50);
  color: var(--brand-400);
}
.empty__icon svg { width: 32px; height: 32px; }
.empty__title { font-size: var(--fs-xl); margin-bottom: 0.5rem; }
.empty__text { color: var(--text-muted); max-width: 46ch; margin-inline: auto; }

/* --------------------------------------------------------------------------
   10. Zengin metin (yazı gövdesi)
   -------------------------------------------------------------------------- */

.prose {
  font-size: 1.0625rem;
  line-height: var(--lh-loose);
  color: var(--ink-700);
}
.prose > * + * { margin-top: 1.35em; }
.prose h2, .prose h3, .prose h4 {
  margin-top: 2.2em;
  margin-bottom: 0.7em;
  color: var(--heading);
}
.prose h2 { font-size: 1.65em; }
.prose h3 { font-size: 1.32em; }
.prose h4 { font-size: 1.12em; }

.prose h2::before {
  content: '';
  display: block;
  width: 46px; height: 2px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
  margin-bottom: 0.55em;
}

.prose a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--brand-800); }
.prose strong { font-weight: 600; color: var(--ink-800); }

.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: none; padding-left: 1.5em; }
.prose ul li { position: relative; }
.prose ul li::before {
  content: '';
  position: absolute;
  left: -1.15em; top: 0.72em;
  width: 6px; height: 6px;
  background: var(--gold-500);
  transform: rotate(45deg);
}
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--brand-600); font-weight: 600; }
.prose li + li { margin-top: 0.5em; }

.prose blockquote {
  position: relative;
  margin-inline: 0;
  padding: 1.5rem 1.75rem 1.5rem 3.25rem;
  background: var(--paper-warm);
  border-left: 3px solid var(--gold-500);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-display);
  font-size: 1.14em;
  line-height: 1.6;
  color: var(--brand-800);
}
.prose blockquote::before {
  content: '”';
  position: absolute;
  left: 0.85rem; top: 0.35rem;
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--gold-300);
}
.prose blockquote cite {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--font-body);
  font-size: 0.78em;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.prose img { border-radius: var(--r-md); box-shadow: var(--sh-md); margin-block: 2em; }
.prose hr { margin-block: 2.6em; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.87em;
  background: var(--ink-100);
  padding: 0.15em 0.42em;
  border-radius: var(--r-xs);
}
.prose table { width: 100%; border-collapse: collapse; font-size: 0.94em; }
.prose th, .prose td { padding: 0.75rem 1rem; border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--bg-alt); font-weight: 600; color: var(--heading); }

/* Arapça blok */
.arabic {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
  font-size: 1.85rem;
  line-height: 2.35;
  color: var(--brand-900);
  font-weight: 400;
}
.prose .arabic { margin-block: 1.5em; }

/* --------------------------------------------------------------------------
   11. Ekmek kırıntısı
   -------------------------------------------------------------------------- */

.crumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.crumbs a { color: inherit; }
.crumbs a:hover { color: var(--brand-600); }
.crumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.crumbs li + li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--ink-300);
  transform: rotate(45deg);
}
.crumbs [aria-current] { color: var(--heading); font-weight: 500; }

.crumbs--light { color: rgba(255,255,255,0.72); }
.crumbs--light a:hover { color: #fff; }
.crumbs--light [aria-current] { color: #fff; }
.crumbs--light li + li::before { background: rgba(255,255,255,0.4); }

/* --------------------------------------------------------------------------
   12. Sekmeler & filtre çubuğu
   -------------------------------------------------------------------------- */

.chips {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.05rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-600);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  transition: all var(--dur-fast) var(--ease-out);
}
.chip:hover { border-color: var(--brand-300); color: var(--brand-700); background: var(--brand-50); }
.chip.is-active {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff;
  box-shadow: var(--sh-sm);
}
.chip__count {
  font-size: 0.72em;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   13. Akordiyon
   -------------------------------------------------------------------------- */

.accordion { border: 1px solid var(--border-soft); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.accordion + .accordion { margin-top: 0.85rem; }

.accordion__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--heading);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.accordion__head:hover { background: var(--brand-50); }
.accordion__icon {
  width: 32px; height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-600);
  transition: transform var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.accordion__icon svg { width: 16px; height: 16px; }
.accordion.is-open .accordion__icon { transform: rotate(45deg); background: var(--brand-600); color: #fff; }

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-out);
}
.accordion.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__inner { overflow: hidden; }
.accordion__content {
  padding: 0 1.4rem 1.4rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
  padding-top: 1.15rem;
}

/* --------------------------------------------------------------------------
   14. İstatistik kutuları
   -------------------------------------------------------------------------- */

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1;
  color: var(--gold-400);
  font-variant-numeric: tabular-nums;
  display: block;
}
.stat__label {
  margin-top: 0.7rem;
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  color: var(--brand-200);
}

/* --------------------------------------------------------------------------
   15. Alıntı / hadis şeridi
   -------------------------------------------------------------------------- */

.verse-strip {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 380px at 12% 0%, rgba(26,123,163,0.28), transparent 62%),
    linear-gradient(145deg, var(--brand-900), var(--brand-800) 55%, #05202e);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.verse-strip__arabic {
  font-family: var(--font-arabic);
  direction: rtl;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 2.1;
  color: var(--gold-300);
  margin-bottom: 1.5rem;
}
.verse-strip__meaning {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.62;
  max-width: 46ch;
  margin-inline: auto;
  color: #eaf4f8;
}
.verse-strip__ref {
  margin-top: 1.4rem;
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-300);
}

/* --------------------------------------------------------------------------
   16. Kenar çubuğu bileşenleri
   -------------------------------------------------------------------------- */

.widget {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 1.6rem;
}
.widget + .widget { margin-top: 1.5rem; }
.widget__title {
  font-size: var(--fs-lg);
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}
.widget__title::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 44px; height: 2px;
  background: var(--gold-500);
}

.mini-list { display: flex; flex-direction: column; gap: 1rem; }
.mini-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.mini-item__thumb {
  width: 62px; height: 62px;
  flex: none;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: linear-gradient(150deg, var(--brand-600), var(--brand-800));
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.5);
}
.mini-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-item__title {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--ink-800);
  line-height: 1.42;
  transition: color var(--dur-fast) var(--ease-out);
}
.mini-item:hover .mini-item__title { color: var(--brand-600); }
.mini-item__meta { font-size: var(--fs-xs); color: var(--text-faint); margin-top: 0.3rem; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag-cloud a {
  font-size: var(--fs-xs);
  padding: 0.38rem 0.8rem;
  border-radius: var(--r-pill);
  background: var(--bg-alt);
  color: var(--ink-600);
  border: 1px solid transparent;
  transition: all var(--dur-fast) var(--ease-out);
}
.tag-cloud a:hover { background: var(--brand-600); color: #fff; }

/* --------------------------------------------------------------------------
   17. Yükleme / iskelet
   -------------------------------------------------------------------------- */

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.is-loading { pointer-events: none; opacity: 0.75; }

/* --------------------------------------------------------------------------
   18. Görünüme girme animasyonları
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

[data-reveal='fade'] { transform: none; }
[data-reveal='left'] { transform: translateX(-28px); }
[data-reveal='right'] { transform: translateX(28px); }
[data-reveal='zoom'] { transform: scale(0.94); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   19. Bildirim (toast)
   -------------------------------------------------------------------------- */

.toast-wrap {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 380px;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--sh-xl);
  font-size: var(--fs-sm);
  animation: toast-in 400ms var(--ease-spring);
}
.toast--success { background: var(--success); }
.toast--danger { background: var(--danger); }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   20. Yukarı çık
   -------------------------------------------------------------------------- */

.to-top {
  position: fixed;
  right: 1.5rem; bottom: 1.5rem;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: var(--brand-700);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--dur-base) var(--ease-out);
  z-index: var(--z-sticky);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-800); color: #fff; transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

@media (max-width: 640px) {
  .to-top { right: 1rem; bottom: 1rem; width: 42px; height: 42px; }
}
