/* sitebahis — modernleştirme katmanı (site.css = eski Astro teması, renk ve düzen korunur).
   H3: Google Fonts yerine sistem fontu · V1: parlama gradyanları sadeleşti · V4/V7: mobil ve erişilebilirlik
   Yeni bileşenler: sunucuda üretilen pano, önceki/sonraki, sabit buton, sorumlu oyun notu, popup (A5) */
:root {
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}
body { background: var(--bg); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { letter-spacing: -.02em; }
.ticker { background: var(--surface); }
.board-row.is-vip { background: var(--amber-soft); }
.contact-card--main { background: var(--surface-2); border-color: rgba(245, 179, 46, .35); }
.letter-tile { background: var(--surface-2); }
.score-track i { background: var(--amber); }

/* Odak çerçevesi (V7) */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* Pano artık sunucuda: ana sayfada ve sayfa içinde boşluk */
.board { margin: 28px 0; }
.row-logo img { object-fit: contain; }
.row-name span { color: var(--text); font-weight: 700; }
.board-foot a { white-space: nowrap; }

/* Ana sayfa tanıtım ve marka kampanya satırı */
.sb-about { margin: 40px 0 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sb-about h2 { margin: 0 0 10px; font-size: 1.3rem; }
.sb-about p { color: var(--muted); margin: 0 0 10px; }
.sb-about p:last-child { margin-bottom: 0; }
.sb-campaign { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.sb-campaign strong { color: var(--text); }

/* Önceki / sonraki site (T9) */
.sb-prevnext { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; margin: 32px 0 8px; }
.sb-prevnext a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); font-weight: 700; text-decoration: none; }
.sb-prevnext a span { font-size: .78rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.sb-prevnext a[rel="next"] { text-align: right; }
.sb-prevnext .sb-prevnext-all { justify-content: center; color: var(--amber); font-weight: 600; }
.sb-prevnext a:hover { border-color: var(--amber); }
@media (max-width: 640px) { .sb-prevnext { grid-template-columns: 1fr 1fr; } .sb-prevnext .sb-prevnext-all { grid-column: 1 / -1; grid-row: 2; text-align: center; } }

/* Sorumlu oyun notu (K4) */
.sb-responsible { margin: 28px 0 8px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: var(--radius); background: var(--surface); color: var(--muted); font-size: .92rem; }
.sb-responsible strong { color: var(--amber); margin-right: 6px; }

/* Rehber gövdesindeki listeler (bilgi sayfaları) */
.article-body ul { padding-left: 1.2em; }
.article-body li { margin: 6px 0; }

/* Mobil sabit "Siteye Git" çubuğu (V4) */
.sb-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(16, 21, 31, .97); border-top: 1px solid var(--line); }
.sb-sticky[hidden] { display: none; }
.sb-sticky-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 900px) { .sb-sticky { display: none !important; } }
@media (max-width: 899px) { .page-site .site-footer { padding-bottom: 80px; } }

/* Uzun marka/bonus adları taşmasın */
.dir-name, .similar-name, .row-name a, .row-bonus { overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Betlink popup (A5) */
.sb-popup { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sb-popup-box { position: relative; max-width: 480px; width: 100%; }
.sb-popup-box img { width: 100%; height: auto; border-radius: 12px; display: block; }
.sb-popup-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
@media (max-width: 520px) { .sb-popup-close { top: 6px; right: 6px; } }
