/* ============================================================
   Shōnen Jump Ansiklopedisi — modern + manga-dergisi estetiği
   Display: Oswald (poster/kicker) · Body: Archivo · İkonsuz.
   ============================================================ */
:root {
  --red: #e60012;
  --red-dk: #b00010;
  --ink: #0d0d0d;
  --paper: #f4f1ea;       /* sıcak dergi kâğıdı */
  --card: #ffffff;
  --line: #e2ded4;
  --muted: #777067;
  --radius: 7px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 10px 30px rgba(0,0,0,.05);
  --max: 1120px;
  --display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { border-top: 4px solid var(--red); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;   /* footer'ı kısa sayfalarda alta sabitle */
}
.app { flex: 1 0 auto; width: 100%; }   /* flex item içerikle daralmasın → tam genişlik, max-width ile ortalanır */
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center; column-gap: 16px;
  padding: 8px 22px; background: #fff;
  border-bottom: 3px solid var(--ink);
}
/* Logo'nun iki yanındaki gruplar (sol: arama+Ansiklopedi/Bülten, sağ: Haberler/Hakkında+dil) */
.hside { display: flex; align-items: center; gap: 16px; min-width: 0; }
.hside-l { justify-self: stretch; }
.hside-r { justify-self: stretch; }
.hside-l .main-nav { margin-left: auto; }   /* nav logoya yaslanır */
.hside-r .search { margin-left: auto; }     /* arama en sağa */
.brand { justify-self: center; display: flex; align-items: center; position: relative; z-index: 21; }
.brand:hover { text-decoration: none; }
/* Logo header'dan büyük; alt kısmı siyah çizgiyi geçecek şekilde taşar (negatif margin ile header şişmez) */
.brand-logo { height: 88px; width: auto; display: block; margin: 4px 0 -50px; }
.brand-mark {
  background: var(--red); color: #fff; font-family: var(--display); font-weight: 700;
  font-size: 20px; letter-spacing: .5px; line-height: 1; padding: 6px 11px 5px;
  transform: skew(-8deg); border-radius: 3px;
}
.brand-text {
  font-family: var(--display); font-weight: 600; font-size: 17px;
  text-transform: uppercase; letter-spacing: 2px; color: var(--ink);
}
.main-nav { display: flex; align-items: center; gap: 6px; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  font-family: var(--display); font-weight: 500; font-size: 15px;
  text-transform: uppercase; letter-spacing: 1px; color: var(--muted);
  white-space: nowrap; padding: 6px 10px 4px; border-bottom: 3px solid transparent;
}
.main-nav a:hover { text-decoration: none; color: var(--ink); }
.main-nav a.active { color: var(--ink); border-bottom-color: var(--red); }
.search { flex: 0 1 230px; min-width: 110px; }
.lang-switch { display: flex; gap: 1px; border: 1px solid var(--line); border-radius: 4px; padding: 2px; flex: 0 0 auto; }
.lang-switch button {
  font-family: var(--display); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
  border: 0; background: transparent; color: var(--muted); padding: 5px 8px; border-radius: 3px; cursor: pointer; white-space: nowrap;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { background: var(--ink); color: #fff; }
.src-note { font-family: var(--body); font-size: 11px; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }
#search-input {
  width: 100%; padding: 9px 14px; font-family: var(--body); font-size: 15px;
  border: 1.5px solid var(--line); border-radius: 4px; background: var(--paper); outline: none;
}
#search-input:focus { border-color: var(--ink); background: #fff; }

/* ---------------- Layout / başlıklar ---------------- */
.app { max-width: var(--max); margin: 0 auto; padding: 30px 22px 70px; }
.loading { color: var(--muted); }

.breadcrumb {
  font-family: var(--display); font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); margin: 0 0 16px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }

h1.page-title {
  font-family: var(--display); font-weight: 700; font-size: clamp(30px, 5vw, 46px);
  line-height: 1.02; letter-spacing: -.5px; text-transform: uppercase;
  margin: 0 0 14px; padding-bottom: 10px;
  border-bottom: 5px solid var(--ink); display: inline-block;
}
/* Manga adı gibi içerik başlıkları büyük-harfe çevrilmez (Türkçe İ sorunu olmasın) */
h1.page-title.asis { text-transform: none; }
.subtitle { color: var(--muted); margin: 0 0 30px; font-size: 16px; max-width: 760px; }
.subtitle strong { color: var(--ink); }

/* Bölüm başlığı (kicker) — kırmızı blok + Oswald */
.home-section-title, .section-title {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--ink); font-size: 15px;
  display: flex; align-items: center; gap: 10px; margin: 30px 0 16px;
}
.home-section-title::before, .section-title::before {
  content: ""; width: 16px; height: 16px; background: var(--red); transform: skew(-10deg);
}
.section-title { font-size: 13px; color: var(--muted); margin: 26px 0 12px; }

/* ---------------- Haber slider ---------------- */
.news-slider { position: relative; margin: 6px 0 34px; }
.news-viewport {
  overflow: hidden; background: var(--card); border: 1px solid var(--line);
  border-left: 6px solid var(--red); border-radius: var(--radius); box-shadow: var(--shadow);
}
.news-track { display: flex; transition: transform .45s ease; }
.news-slide {
  flex: 0 0 100%; display: flex; flex-direction: column; justify-content: center; gap: 9px;
  padding: 24px 30px; min-height: 132px;
}
.news-slide:hover { text-decoration: none; background: #faf9f6; }
.news-kicker { font-family: var(--display); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--red); }
.news-title { font-family: var(--display); font-weight: 500; font-size: clamp(17px, 2.2vw, 22px); line-height: 1.3; color: var(--ink); }
.news-more { font-size: 13px; color: var(--muted); }
.news-arrow {
  position: absolute; top: calc(50% - 16px); transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  font-family: var(--display); font-size: 20px; line-height: 1; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.news-arrow.prev { left: 8px; } .news-arrow.next { right: 8px; }
.news-arrow:hover { background: var(--red); color: #fff; border-color: var(--red); }
.news-dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.news-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; transition: width .2s, background .2s; }
.news-dot.active { background: var(--red); width: 22px; border-radius: 4px; }

/* Haberler sayfasi listesi */
.news-list { display: grid; gap: 10px; }
.news-card {
  display: flex; flex-direction: column; gap: 6px; background: var(--card);
  border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: var(--radius);
  padding: 16px 20px; transition: box-shadow .15s ease, border-color .15s ease;
}
.news-card:hover { text-decoration: none; box-shadow: var(--shadow); }
.news-card .news-title { font-size: 18px; }

/* ---------------- Öne çıkanlar (Bülten) — dikey poster kart ---------------- */
.featured { display: grid; gap: 18px; margin: 4px 0 8px;
  grid-template-columns: repeat(auto-fit, minmax(224px, 1fr)); }
.feature-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--red);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .15s ease;
}
.feature-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.feature-cover-wrap { width: 100%; aspect-ratio: 3 / 4; background: var(--paper); overflow: hidden; display: block; }
.feature-body { display: flex; flex-direction: column; gap: 7px; padding: 16px 18px 20px; min-width: 0; }

/* Kapak görseli / yer tutucu */
.cover-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-thumb.ph { display: flex; align-items: center; justify-content: center; background: var(--red); }
.cover-thumb.ph > span { font-family: var(--display); font-weight: 700; color: #fff; line-height: 1; font-size: 64px; }
.feature-label {
  font-family: var(--display); font-weight: 600; font-size: 12px; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--red);
}
.feature-title { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.1; color: var(--ink); }
.feature-sub { font-size: 13px; color: var(--muted); }
.feature-snippet { font-size: 14px; color: #333; line-height: 1.55; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------- Göz At / Ansiklopedi kartları ---------------- */
.browse-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.browse-card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px; box-shadow: var(--shadow); overflow: hidden;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.browse-card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--red);
}
.browse-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.10); border-color: var(--ink); }
.browse-kicker { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 2px; color: var(--red); text-transform: uppercase; }
.browse-title { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1; text-transform: uppercase; color: var(--ink); }
.browse-desc { font-size: 14px; color: var(--muted); }

/* ---------------- Yıl / harf ızgarası ---------------- */
.decade { margin-bottom: 38px; text-align: center; }
.decade h2 {
  font-family: var(--display); font-weight: 700; font-size: 18px; text-transform: uppercase;
  letter-spacing: 1px; color: var(--red); margin: 0 0 14px; padding-bottom: 6px;
  border-bottom: 3px solid var(--red); display: inline-block;
}
.year-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, 140px); justify-content: center; max-width: 780px; margin: 0 auto; }
.letter-grid { grid-template-columns: repeat(auto-fill, 140px); max-width: 780px; }
.year-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 10px; color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 25px; letter-spacing: .5px;
  transition: transform .1s ease, box-shadow .15s ease, border-color .15s ease, background .12s ease;
}
.year-chip:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow);
  border-color: var(--red); background: var(--red); color: #fff; }
.year-chip .count { font-family: var(--body); font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 5px; text-transform: none; letter-spacing: 0; }
.year-chip:hover .count { color: rgba(255,255,255,.85); }
.letter-chip { padding: 34px 10px; }
.letter-chip .letter-big { font-size: 44px; font-weight: 700; line-height: 1; }

/* ---------------- Hakkında sayfası ---------------- */
.about { max-width: 760px; }
.about-sec { margin: 0 0 20px; }
.about-h { font-family: var(--display); font-weight: 700; color: var(--ink); }
h2.about-h { font-size: 23px; text-transform: uppercase; letter-spacing: .5px; margin: 30px 0 12px; padding-bottom: 6px; border-bottom: 3px solid var(--red); display: inline-block; }
h3.about-h { font-size: 16px; text-transform: uppercase; letter-spacing: 1px; color: var(--red); margin: 22px 0 8px; }
.about p { margin: 0 0 12px; line-height: 1.7; color: #2b2b2b; }
.about-mt { margin: -18px 0 20px; font-style: italic; }
.about-source { max-width: 760px; margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------------- Araç çubuğu / segment ---------------- */
.toolbar { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; flex-wrap: wrap; }
.toggle { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 3px; }
.toggle button {
  border: 0; background: transparent; cursor: pointer; padding: 7px 16px; border-radius: 3px;
  font-family: var(--display); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .5px; color: var(--muted);
}
.toggle button.active { background: var(--ink); color: #fff; }
.toggle.arrows button { padding: 6px 14px; font-size: 17px; line-height: 1; min-width: 40px; }
.result-count { font-family: var(--display); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-size: 13px; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; margin: 4px 0 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 3px; }
.seg a { font-family: var(--display); padding: 8px 18px; border-radius: 3px; font-size: 14px;
  font-weight: 500; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.seg a:hover { text-decoration: none; color: var(--ink); }
.seg a.active { background: var(--red); color: #fff; }

/* ---------------- Manga liste kartı ---------------- */
.card-list { display: grid; gap: 10px; }
.manga-card {
  display: flex; align-items: baseline; gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 18px; transition: box-shadow .15s ease, border-color .15s ease, transform .08s ease;
}
.manga-card:hover { text-decoration: none; box-shadow: var(--shadow); border-color: var(--ink); }
.manga-card .order-no {
  flex: 0 0 auto; min-width: 34px; font-family: var(--display); font-weight: 700;
  font-size: 22px; color: var(--red); line-height: 1; text-align: center;
}
.manga-card.has-cover { align-items: center; }
.manga-card .list-cover {
  flex: 0 0 auto; width: 52px; aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden;
  background: var(--red); box-shadow: 0 1px 4px rgba(0,0,0,.16);
}
.manga-card .list-cover .cover-thumb.ph > span { font-size: 26px; }
.manga-card .body { flex: 1; min-width: 0; }
.manga-card .title { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0; letter-spacing: -.2px; }
.manga-card .meta { font-size: 13.5px; color: var(--muted); margin: 3px 0 0; }
.manga-card .meta .dot { margin: 0 7px; opacity: .45; }
.badge {
  font-family: var(--display); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px;
  padding: 3px 10px; border-radius: 3px; white-space: nowrap;
}
.badge.complete { background: #ece9e2; color: #555; }
.badge.ongoing  { background: var(--red); color: #fff; }

.list-metric { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.list-metric b { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1; }
.list-metric small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-top: 3px; }

/* ---------------- Tür etiketleri ---------------- */
.genre-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.manga-card .genre-row { margin-top: 8px; }
.genre-tag {
  font-family: var(--display); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .5px;
  color: var(--red); background: #fff; border: 1px solid #f0c9cc; padding: 3px 10px; border-radius: 3px;
}
.genre-tag.sm { font-size: 10.5px; color: var(--muted); background: var(--paper); border-color: var(--line); padding: 2px 8px; }

/* ---------------- Detay sayfası ---------------- */
.detail-head { margin-bottom: 24px; }
.detail-head.has-cover { display: flex; gap: 26px; align-items: flex-start; }
.detail-head-text { min-width: 0; }
.detail-cover {
  flex: 0 0 auto; width: 180px; height: auto; border-radius: 6px;
  border: 3px solid var(--ink); box-shadow: 0 10px 26px rgba(0,0,0,.18); background: var(--card);
}
.facts {
  display: grid; gap: 16px 30px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--ink);
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 26px;
}
.fact .label { font-family: var(--display); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.fact .value { font-size: 17px; font-weight: 600; margin-top: 3px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .5px; font-size: 13px; font-weight: 500;
  background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 6px 13px;
}
.pill:hover { text-decoration: none; border-color: var(--red); color: var(--red); }

/* Uyarlamalar */
.adapt-box {
  display: flex; flex-wrap: wrap; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
}
.adapt-chip {
  font-family: var(--display); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .5px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 6px 14px;
}
.adapt-none { color: var(--muted); font-size: 14px; font-style: italic; }

.summary {
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--red);
  border-radius: var(--radius); padding: 20px 24px; margin: 0; font-size: 16px; line-height: 1.75; color: #2a2a2a;
}

/* ---------------- Yakında (placeholder) ---------------- */
.coming-soon {
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--red);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 44px 32px; text-align: center; margin-top: 8px;
}
.coming-soon-badge {
  display: inline-block; background: var(--ink); color: #fff; font-family: var(--display);
  font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 3px; margin-bottom: 18px;
}
.coming-soon-lead { font-family: var(--display); font-size: 22px; font-weight: 500; text-transform: uppercase; letter-spacing: .5px; color: var(--ink); margin: 0 0 10px; }
.coming-soon-desc { font-size: 15px; color: var(--muted); max-width: 580px; margin: 0 auto; line-height: 1.65; }

/* ---------------- Diğer ---------------- */
.empty { color: var(--muted); padding: 44px 0; text-align: center; }
.section-letter { font-family: var(--display); font-weight: 700; color: var(--red); margin: 22px 0 8px; font-size: 16px; }

/* ---------------- Footer (alt bilgi) ---------------- */
.site-footer { flex-shrink: 0; border-top: 3px solid var(--ink); background: #fff; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 34px 22px 42px; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.footer-logo { height: 76px; width: auto; display: block; }
.footer-tagline { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 0 0 20px; }
.footer-nav a { font-family: var(--display); text-transform: uppercase; letter-spacing: 1px; font-size: 13px; font-weight: 500; color: var(--muted); }
.footer-nav a:hover { color: var(--red); text-decoration: none; }
.footer-copy { font-size: 12.5px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.footer-disclaimer { font-size: 11.5px; color: var(--muted); margin: 0 auto; max-width: 540px; line-height: 1.55; }

@media (max-width: 760px) {
  .featured, .browse-grid { grid-template-columns: 1fr; }
  /* Mobil header: logo üstte ortada; altında [arama · Ansiklopedi · Bülten] ve [Haberler · Hakkında · dil] */
  .site-header { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 14px; }
  .brand { order: -1; }
  .brand-logo { height: 54px; margin: 0; }
  .hside { width: 100%; justify-content: center; flex-wrap: wrap; gap: 8px 14px; }
  .hside-l .main-nav, .hside-r .search { margin-left: 0; }
  .search { flex: 0 1 200px; min-width: 90px; }
  .lang-switch button { padding: 5px 6px; }
  .main-nav a { padding: 6px 10px 5px; font-size: 14px; }
}
@media (max-width: 560px) {
  .site-header .brand-text { display: none; }
  .detail-head.has-cover { flex-direction: column; gap: 16px; }
  .detail-cover { width: 140px; }
  .app { padding: 22px 14px 60px; }
}
