/* ==========================================================
   3D Dünya Tarihi Atlası — genel stil (koyu tema)
   ========================================================== */
:root {
  --bg: #05070f;
  --bg2: #0a0f1d;
  --panel: rgba(10, 16, 32, 0.86);
  --panel-solid: #0d1426;
  --line: rgba(232, 176, 74, 0.28);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #e9edf5;
  --muted: #9aa6bd;
  --gold: #e8b04a;
  --gold2: #f6d58a;
  --red: #d62828;
  --blue: #4aa3ff;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Cinzel', Georgia, serif;
  --top-h: 68px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(1200px 600px at 70% -10%, #13213f 0%, transparent 60%), var(--bg); color: var(--text); font: 15px/1.6 var(--font); min-height: 100vh; }
a { color: var(--gold2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); letter-spacing: .02em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: .85em; }
.sr-only, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: var(--gold); color: #000; padding: 8px 12px; border-radius: 8px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Üst bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; height: var(--top-h); display: flex; align-items: center; gap: 18px; padding: 0 18px; background: linear-gradient(180deg, rgba(4, 7, 16, .96), rgba(4, 7, 16, .82)); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none !important; flex-shrink: 0; }
.brand-globe { width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #7cc4ff, #1b4f8a 45%, #071a33 75%); box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(124, 196, 255, .45); position: relative; overflow: hidden; }
.brand-globe::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 255, 255, .12) 9px 10px); border-radius: 50%; animation: spin 12s linear infinite; }
@keyframes spin { to { background-position: 40px 0; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--display); font-size: 1.3rem; background: linear-gradient(180deg, #fbe3a3, #d99b2b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text small { color: var(--muted); font-size: .72rem; letter-spacing: .03em; }
.mainnav { display: flex; gap: 4px; margin-left: auto; }
.mainnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 12px; border-radius: 10px; color: var(--text); font-size: .78rem; font-weight: 500; text-decoration: none; border: 1px solid transparent; }
.mainnav a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mainnav a:hover { background: rgba(255, 255, 255, .05); }
.mainnav a.active { background: linear-gradient(180deg, rgba(232, 176, 74, .25), rgba(232, 176, 74, .08)); border-color: var(--gold); color: var(--gold2); }
.search { position: relative; display: flex; align-items: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px 0 14px; width: 240px; }
.search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); padding: 9px 0; outline: none; font: inherit; }
.search button { background: none; border: 0; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--gold2); stroke-width: 2; }
.search-results { position: absolute; top: calc(100% + 8px); right: 0; width: min(380px, 92vw); background: var(--panel-solid); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; z-index: 60; }
.search-results a { display: flex; gap: 10px; align-items: center; padding: 10px 14px; color: var(--text); border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.search-results a:hover, .search-results a.active { background: rgba(232, 176, 74, .12); }
.sr-empty { padding: 12px 14px; color: var(--muted); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 40px; padding: 9px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--gold2); margin: 4px 0; border-radius: 2px; }

/* ---------- Ortak bileşenler ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--text); font-weight: 600; cursor: pointer; text-decoration: none !important; transition: .2s; }
.btn:hover { background: rgba(255, 255, 255, .1); border-color: var(--gold); }
.btn-gold { background: linear-gradient(180deg, #f2c35f, #c98a1e); color: #1a1205; border-color: #f6d58a; box-shadow: 0 6px 20px rgba(232, 176, 74, .25); }
.btn-gold:hover { background: linear-gradient(180deg, #f7d27c, #d4952a); }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-block { display: flex; width: 100%; margin-top: 10px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600; background: rgba(232, 176, 74, .14); color: var(--gold2); border: 1px solid rgba(232, 176, 74, .3); vertical-align: middle; text-decoration: none !important; }
.tag-war { background: rgba(214, 40, 40, .16); color: #ff9b9b; border-color: rgba(214, 40, 40, .4); }
.tag-disaster { background: rgba(255, 120, 40, .15); color: #ffb47c; border-color: rgba(255, 120, 40, .4); }
.tag-founding { background: rgba(74, 163, 255, .15); color: #9fd0ff; border-color: rgba(74, 163, 255, .4); }
.tag-reform { background: rgba(80, 200, 140, .14); color: #9be6c0; border-color: rgba(80, 200, 140, .4); }
.tag-culture { background: rgba(180, 120, 255, .14); color: #d3b4ff; border-color: rgba(180, 120, 255, .4); }
.tag-era { background: rgba(255, 255, 255, .08); color: #ddd; border-color: rgba(255, 255, 255, .2); }
.chip, .chips a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text); font-size: .85rem; cursor: pointer; margin: 0 6px 6px 0; text-decoration: none !important; }
.chip.active, .chip:hover { background: rgba(232, 176, 74, .18); border-color: var(--gold); color: var(--gold2); }
.controversy { margin: 10px 0; padding: 10px 12px; border-left: 3px solid #b48cff; background: rgba(180, 140, 255, .08); border-radius: 0 8px 8px 0; font-size: .9rem; }
.notice, .warn { padding: 12px 14px; border-radius: 10px; background: rgba(74, 163, 255, .1); border: 1px solid rgba(74, 163, 255, .3); font-size: .9rem; margin: 12px 0; }
.warn { background: rgba(214, 40, 40, .12); border-color: rgba(214, 40, 40, .4); }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 8px; vertical-align: middle; }
.legend { list-style: none; padding: 0; margin: 8px 0; }
.legend li { margin: 4px 0; }
.icon-battle::before { content: '⚔'; color: #ff8a8a; }
.icon-battle.big { font-size: 2.4rem; }

/* ---------- Sayfa başlıkları ve listeler ---------- */
.page-head { padding: 40px 0 16px; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.lead { font-size: 1.08rem; color: #cfd6e4; max-width: 70ch; }
.group-title { margin-top: 30px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters select, .filters input { background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; min-width: 180px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 16px 0 28px; }
.card { display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02)); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none !important; transition: transform .2s, border-color .2s; }
a.card:hover { transform: translateY(-3px); border-color: var(--gold); }
.card-img { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1a2747, #0b1224) center/cover no-repeat; }
.card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5, 7, 15, .6)); pointer-events: none; }
.card-img.no-img { background: linear-gradient(135deg, #1d2c50, #0c1328); }
.card-body { padding: 14px 16px 16px; }
.card-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.card-body p { color: #c4ccdb; font-size: .9rem; margin: 6px 0 0; }
.flag-sm { vertical-align: -2px; border-radius: 2px; }
.img-credit { position: absolute; right: 6px; bottom: 6px; z-index: 2; width: 20px; height: 20px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; display: grid; place-items: center; text-decoration: none !important; }
.list { list-style: none; padding: 0; margin: 0; }
.battles-list li a { display: grid; grid-template-columns: 28px 1fr auto; grid-template-areas: "i n d" "i r r"; gap: 2px 10px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 12px; margin-bottom: 8px; color: var(--text); text-decoration: none; background: rgba(255, 255, 255, .025); }
.battles-list li a:hover { border-color: var(--gold); background: rgba(232, 176, 74, .06); }
.battles-list .icon-battle { grid-area: i; font-size: 1.2rem; }
.battles-list strong { grid-area: n; }
.battles-list .muted { grid-area: d; font-size: .85rem; }
.battles-list .result { grid-area: r; font-size: .85rem; color: var(--gold2); }
.battles-list.big .sides-sm { grid-column: 2 / 4; font-size: .85rem; color: #c4ccdb; }
.battles-list.big .sides-sm em { color: var(--muted); font-style: normal; margin: 0 4px; }
.search-list li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line-soft); color: var(--text); }
.route-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.route-item .swatch { margin-top: 6px; flex-shrink: 0; }
.empty-state { text-align: center; padding: 80px 0; }
.empty-state h1 { font-size: 5rem; color: var(--gold); }

/* ---------- Detay sayfaları ---------- */
.hero { position: relative; min-height: 360px; display: flex; align-items: flex-end; background: linear-gradient(180deg, rgba(5, 7, 15, .2), var(--bg) 96%), var(--hero, linear-gradient(135deg, #14244a, #070b16)) center/cover no-repeat; border-bottom: 1px solid var(--line); }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 7, 15, .9), rgba(5, 7, 15, .35) 70%); }
.hero-inner { position: relative; padding: 40px 0 30px; }
.hero-title { display: flex; align-items: center; gap: 16px; }
.hero-title h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0; }
.hero .flag { border-radius: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); width: 80px; height: auto; }
.subtitle { color: var(--gold2); margin: 4px 0 0; }
.hero .lead { margin-top: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hero-credit { position: absolute; right: 12px; bottom: 8px; font-size: .72rem; color: rgba(255, 255, 255, .7); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: #cfd6e4; }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 10px 0; position: sticky; top: var(--top-h); z-index: 20; background: rgba(5, 7, 15, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft); scrollbar-width: none; }
.tabs a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; color: #cfd6e4; font-size: .88rem; }
.tabs a:hover { background: rgba(232, 176, 74, .12); color: var(--gold2); text-decoration: none; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding: 28px 0 60px; }
.block { padding: 8px 0 24px; scroll-margin-top: calc(var(--top-h) + 60px); }
.block > h2 { font-size: 1.5rem; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.prose p { color: #d6dcea; font-size: 1.02rem; }
.detail-side .facts { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; position: sticky; top: calc(var(--top-h) + 70px); }
.detail-side .facts + .facts { position: static; }
.facts h2 { font-size: 1.05rem; margin-bottom: 10px; }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; margin: 0; }
.facts dt { color: var(--muted); font-size: .85rem; }
.facts dd { margin: 0; font-weight: 600; }
.mini { list-style: none; padding: 0; margin: 0; }
.mini li { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.eras .card-img { aspect-ratio: 16 / 8; }
.people { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.person { flex-direction: row; gap: 14px; padding: 14px; align-items: flex-start; }
.avatar { position: relative; flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; background: #1a2747 center/cover; border: 2px solid var(--line); }
.avatar.sm { width: 40px; height: 40px; }
.avatar .img-credit { right: -4px; bottom: -4px; width: 16px; height: 16px; font-size: 10px; }
.person h3 { font-size: 1rem; margin: 0; }
.person p { font-size: .9rem; color: #c4ccdb; margin: 6px 0; }
.more { font-size: .82rem; }
.sides { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 6px 0 12px; }
.side { padding: 12px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .03); display: flex; flex-direction: column; }
.side-a { border-left: 3px solid var(--blue); }
.side-b { border-left: 3px solid var(--red); }
.vs { font-size: 1.4rem; color: var(--gold); }
.result-line { font-size: 1.05rem; }
.period-links { display: flex; flex-wrap: wrap; }
.era-heading { margin-top: 18px; color: var(--gold2); font-family: var(--display); }
.sources ol { padding-left: 20px; }
.sources li { margin: 6px 0; }

/* Zaman çizelgesi */
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 118px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--gold), rgba(232, 176, 74, .1)); }
.tl-item { display: grid; grid-template-columns: 110px 1fr; gap: 24px; position: relative; padding: 0 0 18px; }
.tl-item::before { content: ''; position: absolute; left: 109px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); }
.tl-item.cat-war::before { border-color: #ff6b6b; }
.tl-item.cat-disaster::before { border-color: #ff9a3c; }
.tl-item.cat-founding::before { border-color: var(--blue); background: var(--blue); }
.tl-date { text-align: right; font-weight: 700; color: var(--gold2); font-size: .88rem; padding-top: 2px; }
.tl-body { background: rgba(255, 255, 255, .03); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; overflow: hidden; }
.tl-body h3 { font-size: 1.02rem; margin: 6px 0 4px; }
.tl-body p { margin: 0; color: #c9d1df; font-size: .93rem; }
.tl-thumb { float: right; position: relative; width: 120px; height: 80px; margin: 0 0 8px 12px; border-radius: 8px; background: #16223f center/cover; }
.tl-thumb.no-img { display: none; }
.tl-filters { margin-bottom: 14px; }

/* Galeri ve lightbox */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 14px 0; }
.gallery figure { margin: 0; background: rgba(255, 255, 255, .03); border-radius: 10px; overflow: hidden; border: 1px solid var(--line-soft); }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 6px 8px; font-size: .78rem; color: #c4ccdb; }
.gallery .credit { display: block; color: var(--muted); font-size: .72rem; margin-top: 2px; }
.lightbox-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .9); display: grid; place-items: center; padding: 20px; }
.lightbox-overlay img { max-width: 94vw; max-height: 84vh; border-radius: 8px; }
.lightbox-overlay button { position: absolute; top: 16px; right: 20px; font-size: 2rem; background: none; border: 0; color: #fff; cursor: pointer; }
.lightbox-overlay a { position: absolute; bottom: 18px; color: #ddd; font-size: .85rem; }

/* Medeniyet çizelgesi */
.civ-chart { margin: 10px 0 28px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.civ-row { display: grid; grid-template-columns: 210px 1fr; gap: 12px; align-items: center; padding: 4px 0; color: var(--text); text-decoration: none !important; }
.civ-row:hover .civ-bar { filter: brightness(1.3); }
.civ-name { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.civ-track { position: relative; height: 12px; background: rgba(255, 255, 255, .04); border-radius: 6px; }
.civ-bar { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, #c98a1e, #f6d58a); }
.civ-axis { display: flex; justify-content: space-between; margin-left: 222px; font-size: .75rem; color: var(--muted); margin-top: 6px; }
.period-strip { list-style: none; padding: 0; margin: 0 0 24px; display: flex; gap: 8px; overflow-x: auto; }
.period-strip a { display: flex; flex-direction: column; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text); white-space: nowrap; text-decoration: none; }
.period-strip a.active, .period-strip a:hover { border-color: var(--gold); background: rgba(232, 176, 74, .14); }
.period-strip small { color: var(--muted); }

/* Alt bilgi */
.site-footer { border-top: 1px solid var(--line); background: #04060c; padding: 34px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 2fr; gap: 28px; }
.footer-grid ul { list-style: none; padding: 0; margin: 8px 0 0; }
.footer-grid li { margin: 4px 0; }
.copyright { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line-soft); }

/* İskelet yükleme */
.skeleton { height: 120px; border-radius: 12px; background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .09), rgba(255, 255, 255, .04)); background-size: 200% 100%; animation: sk 1.2s infinite; margin: 10px 0; }
.skeleton.short { height: 60px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Duyarlı ---------- */
@media (max-width: 1180px) {
  .mainnav a span { font-size: .7rem; }
  .mainnav a { padding: 6px 8px; }
  .search { width: 190px; }
}
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .mainnav { display: none; position: absolute; top: var(--top-h); left: 0; right: 0; flex-direction: column; background: var(--panel-solid); border-bottom: 1px solid var(--line); padding: 8px; margin: 0; }
  .mainnav.open { display: flex; }
  .mainnav a { flex-direction: row; gap: 12px; font-size: .95rem; padding: 12px; }
  .mainnav a span { font-size: .95rem; }
  .search { order: 3; width: 44px; padding: 0; }
  .search input { position: absolute; opacity: 0; pointer-events: none; }
  .search:focus-within { position: absolute; left: 12px; right: 12px; width: auto; padding: 0 6px 0 14px; background: var(--panel-solid); z-index: 70; }
  .search:focus-within input { position: static; opacity: 1; pointer-events: auto; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side .facts { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --top-h: 60px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 1.05rem; }
  .brand-globe { width: 34px; height: 34px; }
  .timeline::before { left: 6px; }
  .tl-item { grid-template-columns: 1fr; gap: 4px; padding-left: 26px; }
  .tl-item::before { left: 0; }
  .tl-date { text-align: left; }
  .tl-thumb { width: 90px; height: 60px; }
  .civ-row { grid-template-columns: 120px 1fr; }
  .civ-axis { margin-left: 132px; }
  .hero { min-height: 300px; }
  .sides { grid-template-columns: 1fr; }
  .vs { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Şehir tarihi: kategoriler, deprem kartları ---------- */
.cat-nav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; position: sticky; top: var(--top-h); z-index: 20; background: rgba(5,7,15,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft); scrollbar-width: none; }
.cat-nav a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: #dfe5f1; font-size: .85rem; text-decoration: none; }
.cat-nav a b { color: var(--gold2); }
.cat-nav a.empty { opacity: .5; }
.cat-nav a:hover { border-color: var(--gold); background: rgba(232,176,74,.1); }
.quake-card { border: 1px solid var(--line-soft); border-left: 3px solid #ff7a2f; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; background: rgba(255,255,255,.03); }
.quake-card h3 { font-size: 1.08rem; }
.quake-card.big { border-left-width: 4px; }
.qf { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 8px 0 10px; }
.qf dt { color: var(--muted); font-size: .86rem; }
.qf dd { margin: 0; font-weight: 600; }
.qf small { font-weight: 400; color: var(--muted); }
.near-title { font-size: 1rem; margin-top: 18px; color: var(--gold2); }
.rulers-list { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.rulers-list li { display: grid; grid-template-columns: 170px 1fr; gap: 14px; padding: 8px 0 8px 14px; position: relative; }
.rulers-list li::before { content: '👑'; position: absolute; left: -11px; top: 8px; font-size: .8rem; }
.rulers-list .d { color: var(--gold2); font-weight: 700; font-size: .88rem; }
.rulers-list p { margin: 2px 0 0; color: #c4ccdb; font-size: .9rem; }
.big-ico { font-size: 2.6rem; }
@media (max-width: 640px) { .qf, .rulers-list li { grid-template-columns: 1fr; gap: 2px; } }

/* =====================================================================
   v3 — Görsel tasarım (referans tasarıma göre): altın çizgili premium başlık
   ===================================================================== */
:root { --top-h: 84px; --gold: #f0b443; --gold2: #ffd987; }
.topbar { height: var(--top-h); gap: 14px; padding: 0 22px; background: linear-gradient(180deg, #050a18 0%, #071025 100%); border-bottom: 1px solid rgba(240,180,67,.35); box-shadow: 0 1px 0 rgba(255,217,135,.08), 0 10px 30px rgba(0,0,0,.45); }
.brand { gap: 12px; }
.brand-emblem { width: 62px; height: 62px; flex-shrink: 0; filter: drop-shadow(0 0 10px rgba(124,196,255,.35)); }
.brand-emblem svg { width: 100%; height: 100%; }
.brand-globe { display: none; }
.brand-text strong { font-size: 1.95rem; letter-spacing: .01em; background: linear-gradient(180deg, #fff3cf 0%, #f4c463 45%, #c98a1e 100%); -webkit-background-clip: text; background-clip: text; text-shadow: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.brand-text small { color: #f2f4f8; font-size: .86rem; letter-spacing: .02em; margin-top: 3px; }
.mainnav { gap: 2px; }
.mainnav a { min-width: 92px; padding: 7px 10px 6px; gap: 4px; font-size: .84rem; font-weight: 600; color: #f1f3f8; border-radius: 12px; }
.mainnav a svg { width: 34px; height: 34px; stroke: #f3f4f7; stroke-width: 1.35; }
.mainnav a.active { color: #fff; border: 1px solid #f0b443; background: linear-gradient(180deg, rgba(240,180,67,.42), rgba(160,95,10,.25)); box-shadow: 0 0 18px rgba(240,180,67,.35), inset 0 1px 0 rgba(255,230,170,.4); }
.mainnav a.active svg { stroke: #fff4d6; }
.mainnav a.nav-pulse svg { stroke: #ff5a4a; filter: drop-shadow(0 0 4px rgba(255,80,60,.6)); }
.search { width: 92px; height: 50px; justify-content: center; padding: 0 8px; border-radius: 999px; border: 1px solid rgba(240,180,67,.45); background: rgba(255,255,255,.04); transition: width .25s; }
.search input { width: 0; padding: 0; transition: width .25s; }
.search:focus-within { width: 260px; }
.search:focus-within input { width: auto; padding: 9px 0 9px 8px; }
.search svg { width: 26px; height: 26px; stroke: #fff; }
.user-btn { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #f0b443; background: radial-gradient(circle, rgba(240,180,67,.18), rgba(0,0,0,.2)); box-shadow: 0 0 14px rgba(240,180,67,.3); flex-shrink: 0; }
.user-btn svg { width: 26px; height: 26px; fill: none; stroke: #ffd987; stroke-width: 1.8; }
@media (max-width: 1400px) { .mainnav a { min-width: 0; padding: 6px 8px; font-size: .76rem; } .mainnav a svg { width: 28px; height: 28px; } .brand-text strong { font-size: 1.6rem; } }
@media (max-width: 1180px) { .brand-text small { display: none; } .mainnav a span { font-size: .7rem; } }
@media (max-width: 980px) {
  :root { --top-h: 66px; }
  .brand-emblem { width: 46px; height: 46px; }
  .brand-text strong { font-size: 1.3rem; }
  .mainnav a { min-width: 0; flex-direction: row; }
  .mainnav a svg { width: 24px; height: 24px; }
  .search { width: 46px; height: 42px; }
  .user-btn { width: 42px; height: 42px; }
}
@media (max-width: 640px) {
  :root { --top-h: 60px; }
  .topbar { padding: 0 10px; gap: 8px; }
  .brand-text strong { font-size: 1.05rem; }
  .brand-emblem { width: 40px; height: 40px; }
  .user-btn { display: none; }
}
.search input { flex: 0 1 0; }
.search:focus-within input { flex: 1 1 auto; }

/* Footer bağlantıları ve İletişim / Sorun Bildir düğmesi (v7) */
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.footer-links a { color: #d6dcea; text-decoration: none; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; }
.footer-links a:hover { color: var(--gold2); }
.footer-links .fl-report { color: var(--gold2); font-weight: 600; }
.footer-links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.report-btn { margin-left: 6px; }
@media (max-width: 600px) { .footer-links { gap: 4px 14px; } .footer-links a { font-size: .95rem; padding: 6px 0; } }
.nav-extra { display: none; }
@media (max-width: 980px) {
  .nav-extra { display: flex; flex-wrap: wrap; gap: 2px 4px; border-top: 1px solid var(--line-soft); margin-top: 6px; padding-top: 6px; }
  .nav-extra a { flex-direction: row !important; padding: 9px 10px !important; font-size: .9rem !important; color: #cfd6e4 !important; }
  .mainnav { max-height: calc(100vh - var(--top-h)); overflow-y: auto; }
}
/* Üst çubuk taşma düzeltmesi: dar masaüstü genişliklerinde marka metni kısalır, menü sığar */
.brand { min-width: 0; flex-shrink: 1; }
.brand-text { min-width: 0; }
.brand-text strong, .brand-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mainnav { min-width: 0; }
@media (min-width: 981px) and (max-width: 1640px) { .brand-text small { display: none; } }
@media (min-width: 981px) and (max-width: 1320px) { .brand-text strong { font-size: 1.1rem; } .topbar { gap: 10px; } .mainnav a { padding: 6px 7px; } }
@media (min-width: 981px) and (max-width: 1180px) { .brand-text { display: none; } }
@media (max-width: 980px) { .mainnav a span { font-size: 1rem !important; } .mainnav a svg { width: 22px; height: 22px; } }
/* Menü (≡) düğmesi ve açılır menü */
.site-menu-wrap { position: relative; flex-shrink: 0; }
.menu-btn { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #f0b443; background: radial-gradient(circle, rgba(240,180,67,.18), rgba(0,0,0,.2)); cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; fill: none; stroke: #ffd987; stroke-width: 2; stroke-linecap: round; }
.site-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 80; min-width: 260px; padding: 10px; display: flex; flex-direction: column; background: linear-gradient(180deg, #0b1430, #060b1c); border: 1.5px solid rgba(240,180,67,.6); border-radius: 16px; box-shadow: 0 18px 44px rgba(0,0,0,.6); }
.site-menu strong { padding: 6px 10px; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.site-menu a { padding: 10px 12px; border-radius: 10px; color: #e9edf5; text-decoration: none; font-weight: 500; }
.site-menu a:hover, .site-menu a:focus-visible { background: rgba(240,180,67,.14); color: #ffd987; }
@media (max-width: 980px) { .site-menu-wrap { display: none; } .menu-btn { width: 42px; height: 42px; } }
@media (min-width: 981px) and (max-width: 1320px) { .menu-btn, .user-btn { width: 42px; height: 42px; } .user-btn svg { width: 22px; height: 22px; } }
/* Ana menü: 8 bölüm tek satırda */
@media (min-width: 981px) { .mainnav a { white-space: nowrap; } .mainnav a span { white-space: nowrap; } }
@media (min-width: 1321px) { .brand { flex-shrink: 0; } .mainnav a { padding: 6px 9px; } }
@media (min-width: 981px) and (max-width: 1500px) { .mainnav a span { font-size: .72rem; } }
/* Mobil üst menü: arama, hesap ve ana menü her zaman erişilebilir; açılan menü gruplu */
.nav-gt { display: none; }
@media (max-width: 980px) {
  .topbar { gap: 8px; }
  .nav-toggle { order: 4; margin-left: 0; width: 40px; height: 40px; padding: 9px; }
  .search { order: 2; margin-left: auto; width: 40px; height: 40px; }
  .user-btn { order: 3; display: grid !important; width: 40px; height: 40px; border-width: 1.5px; }
  .user-btn svg { width: 20px; height: 20px; }
  .mainnav.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.6); }
  .mainnav.open > a { padding: 10px 10px !important; gap: 10px !important; border-radius: 10px; font-size: .95rem; }
  .mainnav.open > a svg { width: 20px !important; height: 20px !important; }
  .nav-gt { display: block; grid-column: 1 / -1; margin: 6px 4px 2px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .nav-gt-main { margin-top: 0; }
  .mainnav.open .nav-extra { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 4px; margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
  .nav-extra a { padding: 9px 10px !important; }
}
@media (max-width: 400px) {
  .topbar { padding: 0 8px; gap: 6px; }
  .brand { gap: 6px; }
  .brand-emblem { width: 34px !important; height: 34px !important; }
  .brand-text strong { font-size: .92rem !important; }
  .nav-toggle, .search, .user-btn { width: 38px !important; height: 38px !important; }
}
/* Mobil alt bilgi: menüde zaten bulunan "Keşfet" listesi tekrar edilmez, boşluklar azaltılır */
@media (max-width: 640px) {
  .site-footer { padding: 20px 0 14px; margin-top: 20px; }
  .footer-grid { gap: 12px; }
  .footer-grid > div:nth-child(2) { display: none; }
  .footer-links { margin-top: 12px; padding-top: 10px; }
  .copyright { margin-top: 10px; padding-top: 10px; }
}
