/* Savaş makale sayfası (pages/battle.php) — mevcut koyu tema + altın */
.ba-hero { position: relative; min-height: 380px; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(5,7,15,.15), var(--bg) 97%), var(--hero, linear-gradient(135deg, #1a2547, #070b16)) center 30%/cover no-repeat; }
.ba-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,15,.92), rgba(5,7,15,.45) 60%, rgba(5,7,15,.15)); }
.ba-hero-inner { position: relative; padding: 46px 0 26px; }
.ba-title { display: flex; align-items: center; gap: 16px; }
.ba-title h1 { font-family: var(--display); font-size: clamp(1.9rem, 5.2vw, 3.3rem); line-height: 1.08; margin: 0; text-shadow: 0 3px 18px rgba(0,0,0,.7); }
.ba-sub { margin: 8px 0 0; color: #e7dcc3; font-size: clamp(1rem, 2.4vw, 1.2rem); }
.ba-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ba-chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(6,10,22,.75); font-size: .88rem; color: #f2e6c9; }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); color: var(--gold2); background: rgba(6,10,22,.6); text-decoration: none; font-weight: 600; }
.btn-ghost:hover { border-color: var(--gold); color: #fff; }

.ba-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr) 300px; gap: 22px; padding: 26px 0 60px; align-items: start; }
.ba-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.ba-card h2 { font-family: var(--display); font-size: 1.15rem; color: var(--gold2); margin: 0 0 12px; }
.ba-left { align-self: stretch; }
.ba-left .ba-toc { position: sticky; top: calc(var(--top-h) + 14px); max-height: calc(100vh - var(--top-h) - 28px); overflow: auto; scrollbar-width: thin; }

.ba-toc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 18px; }
.ba-toc summary { font-family: var(--display); color: var(--gold2); font-size: 1.05rem; cursor: pointer; list-style: none; padding: 2px 4px 8px; }
.ba-toc summary::-webkit-details-marker { display: none; }
.ba-toc ol { list-style: none; margin: 0; padding: 0; }
.ba-toc a { display: flex; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 8px; color: #d9dfeb; text-decoration: none; font-size: .9rem; border-bottom: 1px solid var(--line-soft); }
.ba-toc a span { width: 20px; text-align: center; flex: none; }
.ba-toc a:hover, .ba-toc a.on { background: linear-gradient(90deg, rgba(240,180,67,.95), rgba(240,180,67,.7)); color: #1a1205; font-weight: 600; }

.ba-related a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.ba-related a:last-child { border-bottom: 0; }
.ba-related strong { display: block; color: #eef1f7; font-size: .92rem; }
.ba-related span { color: var(--muted); font-size: .8rem; }
.ba-related a:hover strong { color: var(--gold2); }

.ba-sec { scroll-margin-top: calc(var(--top-h) + 12px); }
.ba-sec .prose p, .ba-significance p { line-height: 1.75; }
.ba-sec .prose h3 { font-size: 1rem; color: #f2e6c9; margin: 16px 0 6px; }
.ba-sec .prose ul { margin: 8px 0 12px; padding-left: 0; list-style: none; }
.ba-sec .prose li { position: relative; padding-left: 20px; margin: 6px 0; color: #d6dcea; line-height: 1.6; }
.ba-sec .prose li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.ba-note { margin: 12px 0; padding: 10px 14px; border-left: 3px solid #b48cff; background: rgba(180,140,255,.08); border-radius: 0 8px 8px 0; font-size: .93rem; color: #ddd6f3; }
[id] { scroll-margin-top: calc(var(--top-h) + 12px); }

.ba-sides { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.ba-side { position: relative; border-radius: 12px; padding: 14px; border: 1px solid rgba(74,163,255,.45); background: linear-gradient(160deg, rgba(20,40,90,.55), rgba(8,14,30,.6)); }
.ba-side-b { border-color: rgba(214,40,40,.45); background: linear-gradient(160deg, rgba(90,22,22,.5), rgba(8,14,30,.6)); }
.ba-side.win { box-shadow: 0 0 0 2px var(--gold), 0 0 22px rgba(240,180,67,.25); }
.ba-side-head { display: flex; gap: 10px; align-items: center; font-size: 1rem; }
.ba-shield { font-size: 1.4rem; }
.ba-badge { display: inline-block; margin: 8px 0 2px; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: #1a1205; font-weight: 700; font-size: .78rem; }
.ba-badge.draw { background: #5b6478; color: #fff; }
.ba-side ul { list-style: none; padding: 0; margin: 8px 0 0; }
.ba-side li { font-size: .88rem; color: #d6dcea; margin: 5px 0; line-height: 1.45; }
.ba-side li span { display: block; color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.ba-vs { align-self: center; font-family: var(--display); font-size: 1.6rem; color: var(--gold); }
.ba-result { grid-column: 1 / -1; margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.ba-result span { color: var(--muted); }

.ba-significance { margin-bottom: 18px; padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(135deg, #f4cf7b, #d99d33); color: #1d1405; box-shadow: var(--shadow); }
.ba-significance h2 { font-family: var(--display); margin: 0 0 6px; font-size: 1.2rem; color: #1d1405; }
.ba-significance p { margin: 0; color: #23190a; font-weight: 500; }

.ba-tl { list-style: none; margin: 0; padding: 4px 0 6px 18px; border-left: 2px solid var(--gold); }
.ba-tl li { position: relative; padding: 0 0 14px 14px; }
.ba-tl li::before { content: ''; position: absolute; left: -26px; top: 3px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--gold); background: var(--bg); }
.ba-tl time { display: block; color: var(--gold2); font-weight: 700; font-size: .88rem; }
.ba-tl strong { color: #eef1f7; }
.ba-tl p { margin: 3px 0 0; color: #c9d1e0; font-size: .92rem; line-height: 1.55; }

.ba-right .facts dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; margin: 0; }
.ba-right .facts dt { color: var(--muted); font-size: .85rem; }
.ba-right .facts dd { margin: 0; font-weight: 600; font-size: .9rem; }
.ba-right .facts dd.ok { color: #9fe39a; }
.ba-people { list-style: none; margin: 0; padding: 0; }
.ba-people li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.ba-people li:last-child { border-bottom: 0; }
.ba-ini { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: #fff; background: #23406f; border: 2px solid rgba(74,163,255,.7); }
.ba-people .ba-pb .ba-ini { background: #6f2323; border-color: rgba(214,40,40,.7); }
.ba-people .ba-px .ba-ini { background: #3b3f4d; border-color: #777; }
.ba-people strong { display: block; font-size: .92rem; }
.ba-people small { color: var(--muted); font-size: .8rem; }
.ba-map { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: #0b1224; }
.ba-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85) brightness(.92); }
.ba-sources ol { padding-left: 20px; margin: 0 0 10px; }
.ba-sources li { margin: 6px 0; color: #d6dcea; font-size: .92rem; line-height: 1.5; word-break: break-word; }

@media (max-width: 1100px) {
  .ba-grid { grid-template-columns: minmax(0, 1fr) 290px; }
  .ba-left { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .ba-left .ba-toc { position: static; max-height: none; grid-row: 1; grid-column: 1; }
  .ba-left > * { margin-bottom: 0; }
}
@media (max-width: 820px) {
  .ba-hero { min-height: 300px; }
  .ba-hero-inner { padding: 30px 0 18px; }
  .ba-title .icon-battle { display: none; }
  .ba-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-top: 16px; }
  .ba-left { display: contents; }
  .ba-toc { order: 0; }
  .ba-main { order: 1; }
  .ba-right { order: 2; }
  .ba-left .ba-related { order: 3; }
  .ba-toc:not([open]) { padding-bottom: 4px; }
  .ba-card { padding: 15px 14px; }
  .ba-sides { grid-template-columns: 1fr; }
  .ba-vs { text-align: center; font-size: 1.2rem; }
  .ba-sec .prose p { font-size: 1rem; }
}
