/* İslambol Yayınları — global: sıfırlama, yerleşim, üst bar, alt bilgi, düğme, çip, bölüm başlığı, statik sayfa.
   Token'lar tokens.css'te; kart/raf kartlar.css'te; ana sayfa vitrin.css'te; katalog ve detay katalog.css'te. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
img, svg, picture { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; }
main:focus { outline: none; }

:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.atla {
  position: absolute; left: 16px; top: -100px; z-index: var(--z-skip);
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--c-ink); color: #fff; font-size: var(--text-sm); font-weight: 600; text-decoration: none;
}
.atla:focus { top: 10px; }

/* ---- Yerleşim ---- */
.kap { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }
.bolum { padding-block: var(--sec-pad); }
.bolum--son { padding-bottom: calc(var(--sec-pad) + 8px); }
.bant { background: var(--c-band); }

/* Dokunmatik: çift dokunma yakınlaştırma gecikmesi yok; dokunma vurgusu hafif ve marka renginden bağımsız */
a, button, input, select, textarea, summary, label { touch-action: manipulation; }
html { -webkit-tap-highlight-color: rgb(0 0 0 / 0.06); }

/* Uzun sözcük ve e-posta adresi hiçbir yazı boyutunda kabı taşırmaz (sistem yazı tipi %150–200'e çıksa da sayfa yatay genişlemez) */
main, .alt { overflow-wrap: break-word; }

/* ---- Düğme ---- */
.dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%;
  min-height: 44px; padding: 12px 22px; border: 0; border-radius: var(--radius-pill);
  font: 600 var(--text-base)/1.2 var(--font); letter-spacing: -0.01em; text-decoration: none; text-align: center; overflow-wrap: anywhere;
  cursor: pointer; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.dugme:active { transform: scale(0.97); }
.dugme svg { flex: none; }
.dugme--birincil { background: var(--c-accent); color: var(--c-on-accent); }
.dugme--birincil:hover { background: var(--c-accent-hover); }
.dugme--ikincil { background: var(--c-fill); color: var(--c-ink); }
.dugme--ikincil:hover { background: var(--c-fill-hover); }
.dugme--ucuncul { min-height: 0; padding: 0; background: none; color: var(--c-ink); font-weight: 500; text-align: left; }
.dugme--ucuncul::after { content: "›"; margin-left: 2px; }
.dugme--ucuncul:hover { text-decoration: underline; text-underline-offset: 3px; }
.dugme--ucuncul:active { transform: none; }
.dugme--kucuk { min-height: 36px; padding: 0 16px; font-size: var(--text-sm); }

.yuvarlak-dugme {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 50%; background: var(--c-fill); color: var(--c-ink); font-size: 1rem; line-height: 1; cursor: pointer;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.yuvarlak-dugme:hover { background: var(--c-fill-hover); }
.yuvarlak-dugme:active { transform: scale(0.94); }
.yuvarlak-dugme:disabled { opacity: 0.35; cursor: default; transform: none; }

/* ---- Çip: filtre, kategori bağlantısı, durum etiketi ---- */
.cipler, .etiketler { display: flex; flex-wrap: wrap; gap: 8px; }
.cip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
  border: 0; border-radius: var(--radius-pill); background: var(--c-fill); color: var(--c-ink);
  font: 500 var(--text-sm)/1 var(--font); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.cip:hover { background: var(--c-fill-hover); }
.cip[aria-pressed="true"] { background: var(--c-ink); color: #fff; }
.cip__sayi { opacity: 0.7; font-variant-numeric: tabular-nums; font-weight: 400; }
.cip--durum { background: transparent; box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-ink-2); cursor: default; }
.cip--durum:hover { background: transparent; }

/* ---- Bölüm başlığı (raf başlığı ve detay sayfası başlığı aynı dili konuşur) ---- */
.raf-basligi, .bolum-basligi {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  margin-bottom: var(--head-gap);
}
.raf-basligi > div:first-child, .bolum-basligi__baslik { min-width: 0; }
.raf-basligi__etiket, .bolum-basligi__etiket { margin: 0 0 8px; color: var(--c-ink-2); font-size: var(--text-base); font-weight: 600; }
.raf-basligi h2, .bolum-basligi__baslik { font-size: var(--text-h2); line-height: 1.08; letter-spacing: var(--tracking-head); }
.bolum-basligi__etiket { flex: 0 0 100%; margin-bottom: -8px; }
/* flex-basis 100% satır sonu zorlar; max-width ise kısa başlıkla aynı satıra düşürüp sağa iter. Genişlik padding ile kısıtlanır. */
.bolum-basligi__giris { flex: 0 0 100%; margin-top: -8px; padding-right: max(0px, calc(100% - 40rem)); color: var(--c-ink-2); font-size: var(--text-lg); line-height: 1.4; }
.raf-basligi__eylemler { display: flex; align-items: center; gap: 18px; flex: none; padding-bottom: 6px; }
.raf-oklari { display: flex; gap: 8px; }
@media (hover: none) { .raf-oklari { display: none; } }   /* dokunmatikte raflar parmakla kaydırılır */
.raf-basligi > a, .raf-basligi__eylemler > a, .bolum-basligi__ek {
  flex: none; padding-bottom: 6px; color: var(--c-ink); font-size: var(--text-base); font-weight: 500; text-decoration: none; white-space: nowrap;
}
.raf-basligi > a:hover, .raf-basligi__eylemler > a:hover, .bolum-basligi__ek:hover { text-decoration: underline; text-underline-offset: 3px; }
.raf-basligi a span[aria-hidden], .bolum-basligi__ek span[aria-hidden] { display: none; }
.raf-basligi > a::after, .raf-basligi__eylemler > a::after, .bolum-basligi__ek::after { content: " ›"; }

/* ---- Konum yolu ---- */
.iz { margin-bottom: 28px; font-size: var(--text-xs); color: var(--c-ink-2); }
.iz ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.iz li { display: inline-flex; align-items: center; gap: 8px; }
.iz li + li::before { content: "›"; color: var(--c-line); }
.iz a { text-decoration: none; }
.iz a:hover { color: var(--c-ink); text-decoration: underline; }
.iz [aria-current="page"] { color: var(--c-ink); }

/* ==========================================================================
   Üst bar: masaüstünde tek sıra yapışkan cam şerit; dar ekranda panel
   ========================================================================== */
.ust {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--c-glass); border-bottom: 1px solid var(--c-glass-line);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.ust__ic { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }

/* Logo: önceden kırpılmış yatay WebP (300×102; kaynak logo public/logo/islambol-logo.png'den türetilir, ADR-014). Oran 300/102. */
.ust__logo { --lh: 30px; position: relative; display: block; flex: none; width: calc(var(--lh) * 2.941); height: var(--lh); }
.ust__logo::after { content: ""; position: absolute; inset: -8px -6px; }   /* görünümü değiştirmeden dokunma alanı ≥ 44 px */
.ust__logo img { display: block; width: 100%; height: 100%; }

/* WhatsApp: resmî logo (marka yeşili) — sitedeki tek kırmızı dışı renk, marka işareti olduğu için korunur */
.ust__wa {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-left: auto;
  border-radius: 50%; background: var(--c-whatsapp); color: #fff;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.ust__wa:hover { background: var(--c-whatsapp-hover); }
.ust__wa:active { transform: scale(0.94); }
.ust__wa svg { width: 21px; height: 21px; }
.ust__menu-dugme { flex: none; min-height: 44px; padding-block: 0; }
.ust__ara-dugme { display: grid; flex: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--c-ink); cursor: pointer; }
.ust__ara-dugme:hover { background: var(--c-fill); }
.ust__ara-dugme svg { width: 20px; height: 20px; }

.ust__nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: var(--z-menu);
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
  padding: 12px var(--gutter) 20px; background: var(--c-bg);
  border-bottom: 1px solid var(--c-glass-line);
}
/* Açıkken panel tüm görünür alanı kaplar (arkadaki içerik okunmaz) ve sayfa kaydırması kilitlenir (site.js: html.menu-acik) */
.ust__nav.is-acik { display: flex; flex-direction: column; gap: 8px; min-height: calc(100dvh - var(--header-h)); }
html.menu-acik { overflow: hidden; }
.ust__arama { order: -1; }
.ust__liste a { display: block; padding: 14px 0; border-bottom: 1px solid var(--c-line); font-size: var(--text-base); font-weight: 500; text-decoration: none; }
.ust__liste li:last-child a { border-bottom: 0; }
.ust__liste a[aria-current="page"] { color: var(--c-accent); }

.ust__arama { display: flex; align-items: center; height: 44px; border-radius: var(--radius-pill); background: var(--c-band); }
.ust__arama:focus-within { outline: var(--focus-ring); outline-offset: 2px; }
.ust__arama input { flex: 1; min-width: 0; height: 100%; padding: 0 4px 0 18px; border: 0; background: transparent; color: var(--c-ink); font-size: var(--text-base); outline: none; }
.ust__arama input::placeholder { color: var(--c-ink-2); }
.ust__arama input::-webkit-search-cancel-button { display: none; }
.ust__arama button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--c-ink); cursor: pointer; border-radius: 50%; }
.ust__arama svg { width: 19px; height: 19px; }

/* 380 px ve altı: logo + WhatsApp + arama + Menü sığsın (320 px'te 280 px kullanılabilir alan); hedefler 44 px kalır */
@media (max-width: 380px) {
  .ust__ic { gap: 2px; }
  .ust__logo { --lh: 26px; margin-right: 6px; }
  .ust__menu-dugme { padding-inline: 14px; }
}

@media (min-width: 68.75rem) {
  .ust__ic { gap: 28px; }
  .ust__menu-dugme, .ust__ara-dugme { display: none; }
  .ust__nav, .ust__nav.is-acik {
    position: static; display: flex; flex: 1; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px;
    min-height: 0; max-height: none; padding: 0; overflow: visible; background: none; border: 0;
  }
  .ust__arama { order: 0; flex: none; width: 210px; height: 36px; }
  .ust__arama input { padding-left: 16px; font-size: var(--text-sm); }
  .ust__arama button { width: 36px; height: 36px; }
  .ust__arama svg { width: 17px; height: 17px; }
  .ust__liste { display: flex; flex: 1; justify-content: center; gap: 22px; }
  .ust__liste a { padding: 8px 0; border: 0; font-size: var(--text-sm); font-weight: 400; white-space: nowrap; opacity: 0.88; transition: opacity var(--dur) var(--ease); }
  .ust__liste a:hover { opacity: 1; }
  .ust__liste a[aria-current="page"] { opacity: 1; font-weight: 600; color: var(--c-ink); }
  .ust__wa { margin-left: 0; width: 36px; height: 36px; }
}

/* ==========================================================================
   Alt bilgi
   ========================================================================== */
.alt { border-top: 1px solid var(--c-line); padding-block: 56px 40px; color: var(--c-ink-2); font-size: var(--text-xs); line-height: 1.5; }
.alt__ust { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.alt__marka .alt__logo { --lh: 32px; margin-bottom: 16px; }
.alt__slogan { max-width: 26rem; font-size: var(--text-sm); }
.alt__baslik { margin: 0 0 12px; color: var(--c-ink); font-size: var(--text-xs); font-weight: 600; line-height: 1.4; }
.alt__liste li { margin-bottom: 2px; }
.alt__liste a { display: inline-block; padding-block: 5px; text-decoration: none; }   /* hedef >= 24px (WCAG 2.5.8) */
.alt__liste a:hover { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }
.alt__adres { display: block; max-width: 14rem; }
.alt__dip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-top: 20px; border-top: 1px solid var(--c-line); font-size: var(--text-xs); }
.alt__dip p { margin: 0; }
.alt__not { flex: 1 1 18rem; }
.alt__yonetim { padding-block: 5px; color: var(--c-ink-2); text-decoration: none; white-space: nowrap; }
.alt__yonetim:hover { color: var(--c-ink); text-decoration: underline; }

@media (max-width: 834px) {
  .alt__ust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .alt__marka { grid-column: 1 / -1; }
  .alt__liste a, .alt__adres { overflow-wrap: anywhere; }   /* e-posta gibi uzun adresler sütunu taşırmaz (büyük yazı boyutunda da) */
}
@media (max-width: 640px) {
  .alt { padding-block: 44px 32px; }
  .alt__dip { flex-direction: column; }
}

/* ==========================================================================
   Statik sayfalar: hakkımızda, iletişim, yayın çizgisi, nereden alınır, KVKK, 404
   ========================================================================== */
.sayfa { padding-block: 56px var(--sec-pad); }
.sayfa__baslik { max-width: 760px; margin: 0 auto 40px; }
.sayfa__baslik .etiket { margin-bottom: 12px; font-size: var(--text-base); }
.sayfa__baslik h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem); }
.sayfa__giris { margin-top: 16px; color: var(--c-ink-2); font-size: var(--text-lg); line-height: 1.4; }
.sayfa__govde { max-width: 760px; margin-inline: auto; }

.okuma { font-size: 1.1875rem; line-height: 1.58; letter-spacing: -0.012em; }
.okuma > * + * { margin-top: 1.1em; }
.okuma > :first-child { font-size: clamp(1.3125rem, 1.15rem + 0.8vw, 1.625rem); line-height: 1.38; letter-spacing: -0.018em; font-weight: 500; }
.okuma h2 { margin-top: 2em; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.15; }
.okuma h3 { margin-top: 1.6em; font-size: var(--text-xl); }
.okuma ul, .okuma ol { padding-left: 1.3em; }
.okuma ul { list-style: disc; }
.okuma ol { list-style: decimal; }
.okuma li + li { margin-top: 0.4em; }
.okuma a { text-decoration: underline; text-decoration-color: var(--c-line); text-underline-offset: 0.2em; transition: text-decoration-color var(--dur) var(--ease); }
.okuma a:hover { text-decoration-color: currentColor; }
.okuma blockquote { margin-inline: 0; padding: 1.1em 1.4em; border-radius: var(--radius-card); background: var(--c-band); color: var(--c-ink-2); }
.okuma table { width: 100%; border-collapse: collapse; font-size: var(--text-base); }
.okuma th, .okuma td { padding: 12px 8px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }

/* Satış kanalları listesi: tek gruplu liste */
.kanallar { margin-block: 1.4em; overflow: hidden; border-radius: var(--radius-lg); background: var(--c-band); font-size: var(--text-base); line-height: 1.4; letter-spacing: -0.01em; }
.kanal { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 0 !important; padding: 18px 26px; border-bottom: 1px solid var(--c-line); }
.kanal:last-child { border-bottom: 0; }
.kanal__ad { font-weight: 600; text-decoration: none !important; }
.kanal__ad:hover { text-decoration: underline !important; }
.kanal__not { color: var(--c-ink-2); font-size: var(--text-sm); }

/* WhatsApp hattı kutusu */
.hat { display: grid; gap: 14px; justify-items: start; margin-top: 2.4em; padding: 30px; border-radius: var(--radius-lg); background: var(--c-band); font-size: var(--text-base); line-height: 1.4; letter-spacing: -0.01em; }
.hat__etiket { margin: 0; }
.hat__metin { max-width: 32rem; font-size: var(--text-lg); font-weight: 500; }
.hat__no { margin: 0; color: var(--c-ink-2); font-size: var(--text-sm); }
.hat__no a { text-decoration: none; }
.hat__no a:hover { text-decoration: underline; }

/* ---- Dokunmatik hedefler (ADR-017): parmakla kullanılan ekranlarda her denetim ve gezinme bağlantısı en az 44×44 px.
   Fare/klavyeli cihazlarda yoğun masaüstü ölçüleri korunur. Paragraf içi bağlantılar WCAG 2.5.8 satır içi istisnasındadır. ---- */
@media (pointer: coarse) {
  .cip, .dugme--kucuk { min-height: 44px; }
  .dugme--ucuncul { min-height: 44px; padding-inline: 2px; }
  .yuvarlak-dugme { width: 44px; height: 44px; }
  .iz { margin-bottom: 12px; }
  .iz a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 2px; }
  .alt__liste a, .alt__yonetim { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; padding-block: 0; }
  .alt__liste li { margin-bottom: 0; }
  .okuma li > a, .kunye td a { display: inline-block; min-width: 44px; padding-block: 11px; margin-block: -11px; }   /* liste/künye bağlantıları: dokunma alanı ≥ 44 px, satır aralığı aynı */
  .raf-basligi > a, .raf-basligi__eylemler > a, .bolum-basligi__ek { display: inline-flex; align-items: center; gap: 0.3em; min-height: 44px; padding-bottom: 0; }   /* gap: flex içinde " ›" başındaki boşluk çöker */
  .kanal__ad { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---- Başa dön: uzun listelerde (katalog, yazarlar, setler) site.js ekler ---- */
.basa-don {
  position: fixed; right: 16px; bottom: 16px; z-index: var(--z-header); display: grid; place-items: center;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: var(--c-ink); color: #fff; box-shadow: 0 6px 20px rgb(0 0 0 / 0.28); cursor: pointer;
  opacity: 0; transform: translateY(8px); visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.basa-don.is-gorunur { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.basa-don svg { width: 20px; height: 20px; }
@media (min-width: 68.75rem) { .basa-don { display: none; } }

/* ---- Hareket azaltma ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dugme, .yuvarlak-dugme, .cip, .basa-don { transition: none; }
  .dugme:active, .yuvarlak-dugme:active { transform: none; }
}

@media print {
  .ust, .alt, .atla, .onizleme, .basa-don { display: none !important; }
}
