/* İstanbul Kıyamet Vakti — Teşkilat arşivi teması */
:root {
  --void: #070605;
  --ash: #14110d;
  --plate: #1c1712;
  --rust: #8a3a14;
  --ember: #d35400;
  --gold: #c9a227;
  --gold-hi: #f0d48a;
  --paper: #d7c4a3;
  --muted: #9a8b74;
  --line: rgba(201, 162, 39, 0.28);
  --hazard: #c9a227;
  --saheser: #ff8c22;
  --nadide: #c084fc;
  --sari: #f5c542;
  --turkuaz: #2dd4bf;
  --normal: #e8dcc8;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Barlow", sans-serif;
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(7,6,5,.72), rgba(7,6,5,.92)),
    url("../img/wiki/Wiki-background") center / cover fixed,
    #070605;
}
a { color: var(--gold-hi); text-decoration: none; }
a:hover { color: #fff3c4; }
img { max-width: 100%; height: auto; }

.dust {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 3px, rgba(0,0,0,.05) 3px 4px);
  opacity: .25;
  z-index: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background:
    linear-gradient(180deg, rgba(12,10,8,.95), rgba(12,10,8,.88)),
    url("../img/wiki/Community-header-background") center / cover;
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 8px 30px rgba(0,0,0,.55);
}
.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: .55rem 1.2rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--gold-hi);
}
.brand img { height: 52px; width: auto; }
.brand strong {
  display: block;
  font-family: "Cinzel", serif;
  letter-spacing: .18em;
  font-size: .78rem;
}
.brand em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .08em;
}
.nav { display: flex; gap: .2rem; flex: 1; }
.nav a {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .55rem .9rem;
  color: var(--paper);
  border: 1px solid transparent;
}
.nav a:hover, .nav a.is-active {
  color: var(--gold-hi);
  border-color: var(--line);
  background: rgba(201,162,39,.08);
}
.search { display: flex; }
.search input {
  background: #0c0a08;
  border: 1px solid var(--line);
  color: var(--paper);
  padding: .5rem .7rem;
  min-width: 180px;
  font: inherit;
}
.search button {
  background: var(--ember);
  border: 0;
  color: #1a0d04;
  font-weight: 700;
  padding: .5rem .85rem;
  cursor: pointer;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

main { position: relative; z-index: 1; }

.hero {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 3px solid var(--gold);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,6,5,.35) 0%, rgba(7,6,5,.82) 100%),
    url("../img/official/hero_cemberli.jpg") center / cover;
  filter: saturate(1.05) contrast(1.05);
}
.hero-copy {
  position: relative;
  text-align: center;
  padding: 3rem 1.2rem 2.4rem;
  max-width: 820px;
}
.hero-copy img.logo-xl {
  height: 86px;
  margin-bottom: .8rem;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.7));
}
.stamp {
  display: inline-block;
  border: 2px solid var(--ember);
  color: var(--ember);
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: .28em;
  padding: .2rem .7rem;
  margin-bottom: .8rem;
  transform: rotate(-2deg);
  text-transform: uppercase;
  font-size: .78rem;
}
.hero h1 {
  font-family: "Cinzel", serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  letter-spacing: .08em;
  margin: 0 0 .5rem;
  color: var(--gold-hi);
  text-shadow: 0 2px 0 #3a2a10, 0 12px 30px rgba(0,0,0,.7);
}
.hero p.lead {
  color: var(--paper);
  font-size: 1.08rem;
  line-height: 1.55;
  margin: 0 auto 1.4rem;
  max-width: 640px;
}
.cta-row { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.15rem;
  border: 1px solid var(--gold);
  background: linear-gradient(#3a2412, #1a1108);
  color: var(--gold-hi);
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
}
.btn:hover { background: linear-gradient(#5a3418, #241508); color: #fff; }
.btn.ghost { background: rgba(0,0,0,.35); }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 1.2rem 3.5rem;
}

.section-title {
  font-family: "Cinzel", serif;
  color: var(--gold);
  letter-spacing: .12em;
  font-size: 1.35rem;
  margin: 0 0 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: .45rem;
}

.grid-3, .grid-4, .card-grid {
  display: grid;
  gap: 1rem;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.plate {
  background: linear-gradient(180deg, rgba(36,28,20,.92), rgba(18,14,10,.94));
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.4), 0 10px 24px rgba(0,0,0,.35);
  padding: 1rem 1.05rem;
  position: relative;
}
.plate::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 10px, #1a1208 10px 18px);
  opacity: .55;
}
.plate h3 {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: .4rem 0 .35rem;
  color: var(--gold-hi);
}
.plate p { margin: 0; color: var(--muted); line-height: 1.45; font-size: .95rem; }
.plate img.thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border: 1px solid rgba(201,162,39,.2);
  margin-bottom: .6rem;
}

.legend { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.6rem; }
.chip {
  border: 1px solid var(--line);
  padding: .25rem .55rem;
  font-size: .82rem;
  letter-spacing: .04em;
}
.r-saheser { color: var(--saheser); }
.r-nadide { color: var(--nadide); }
.r-sari { color: var(--sari); }
.r-turkuaz { color: var(--turkuaz); }
.r-normal { color: var(--normal); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 1.2rem;
  align-items: end;
}
.filters label {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.filters select, .filters input {
  background: #0c0a08;
  color: var(--paper);
  border: 1px solid var(--line);
  padding: .45rem .55rem;
  min-width: 140px;
  font: inherit;
}
.filters button, .filters a.reset {
  background: #2a1c10;
  border: 1px solid var(--gold);
  color: var(--gold-hi);
  padding: .5rem .8rem;
  cursor: pointer;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.meta { font-size: .8rem; color: var(--muted); display: flex; gap: .5rem; flex-wrap: wrap; }
.meta span {
  border: 1px solid rgba(154,139,116,.3);
  padding: .1rem .4rem;
}

.item-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: .75rem;
  padding: .85rem;
  background: rgba(20,16,12,.88);
  border: 1px solid var(--line);
  min-height: 92px;
}
.item-card:hover { border-color: var(--ember); }
.item-card .icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #0a0806;
  border: 1px solid rgba(201,162,39,.18);
}
.item-card h3 { margin: 0 0 .2rem; font-size: 1.02rem; }
.item-card p { margin: 0; color: var(--muted); font-size: .86rem; }

.detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.4rem;
  align-items: start;
}
.detail .art {
  background: #0a0806;
  border: 1px solid var(--line);
  padding: .6rem;
  text-align: center;
}
.detail .art img { max-height: 280px; object-fit: contain; }
.mats { list-style: none; padding: 0; margin: .6rem 0 0; }
.mats li {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem 0;
  border-bottom: 1px solid rgba(201,162,39,.12);
}
.mats img { width: 28px; height: 28px; object-fit: contain; }
.qty { margin-left: auto; color: var(--gold); font-weight: 700; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .6rem;
}
.gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(.95);
}

.wiki-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  margin: 1.2rem auto 2rem;
}
.wiki-btn {
  display: block;
  width: 100%;
  border: 3px solid #1a140e;
  box-shadow: 0 8px 22px rgba(0,0,0,.45);
  background: #0a0806;
  overflow: hidden;
  line-height: 0;
}
.wiki-btn img {
  width: 100%;
  height: auto;
  display: block;
}
.wiki-btn:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 10px 28px rgba(211,84,0,.25);
}
.wiki-btn:hover img { filter: brightness(1.08); }

.zone-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.4rem 0 2rem;
}
.zone-btn {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 180px;
  padding: .55rem .9rem;
  background: linear-gradient(#2a1c10, #120c08);
  border: 2px solid var(--gold);
  color: var(--gold-hi);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.15rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}
.zone-btn img { width: 40px; height: 40px; }
.zone-btn:hover { background: linear-gradient(#5a3418, #241508); color: #fff; }

.crumb {
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 1rem;
}
.crumb a { color: var(--gold-hi); }

.loot-table {
  width: 100%;
  max-width: 640px;
  margin: 0 auto 1.6rem;
  border-collapse: collapse;
  background: rgba(18,14,10,.9);
}
.loot-table th, .loot-table td {
  border: 2px solid #3a2e22;
  padding: .55rem .7rem;
  vertical-align: middle;
}
.loot-table th {
  background: #24180e;
  color: var(--gold-hi);
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.loot-table td img {
  max-height: 72px;
  max-width: 110px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.quote {
  font-style: italic;
  color: var(--gold-hi);
  border-left: 3px solid var(--ember);
  padding: .4rem 0 .4rem 1rem;
  margin: 1.2rem 0;
}

.count { color: var(--muted); margin: 0 0 1rem; }

.site-foot {
  border-top: 1px solid var(--line);
  background: #0a0806;
  padding: 1.4rem 1.2rem;
  position: relative;
  z-index: 1;
}
.foot-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.foot-inner img { height: 42px; }
.foot-inner p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }

@media (max-width: 800px) {
  .detail { grid-template-columns: 1fr; }
  .brand img { height: 40px; }
  .nav { width: 100%; order: 3; }
  .search { width: 100%; }
  .search input { flex: 1; }
}
