/* SEO / erişilebilirlik katmanı
   Sunucudan basılan anlamlı içerik JS açıkken gizlenir (görünüm değişmez),
   JS kapalıyken ve önizleme botlarında tam içerik olarak kalır. */

.seo-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 16px 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.seo-wrap h1 { font-size: 20px; color: var(--text); margin: 4px 0 8px; letter-spacing: -0.2px; }
.seo-wrap h2 { font-size: 14px; color: var(--text); margin: 18px 0 6px; }
.seo-wrap h3 { font-size: 12.5px; color: var(--text); margin: 12px 0 3px; font-weight: 650; }
.seo-wrap p { margin: 0 0 8px; }
.seo-wrap ul { margin: 0 0 8px; padding-left: 18px; }
.seo-wrap a { color: var(--accent); text-decoration: none; }
.seo-wrap a:hover { text-decoration: underline; }

/* JS çalıştığında SPA görünümü devralır */
body.js-ready .seo-wrap { display: none; }

/* JS yoksa: sekmeler/liste boş kalmasın, içerik görünsün */
html:not(.js) .tabs,
html:not(.js) .sports,
html:not(.js) .toolbar,
html:not(.js) .list,
html:not(.js) #detail { display: none; }

/* ---------- hamburger menü ---------- */
#mainMenu.main-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 240px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.main-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 9px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.13s;
}
.main-menu a:hover { background: var(--surface-2); }
.main-menu a.current {
  color: var(--accent);
  background: var(--accent-soft);
}
/* rtl düzeninde menü sola açılır */
[dir="rtl"] #mainMenu.main-menu { right: auto; left: 0; }
#menuBtn[aria-expanded="true"] { background: var(--surface-2); }

/* klavye ile gezinme */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #06120a;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
  font-size: 13px;
}
.skip-link:focus { left: 0; }

/* marka yazısı */
.brand-name { font-weight: 750; letter-spacing: -0.3px; }
.brand-tld { color: var(--accent); }

/* ---------- çok dilli font yığını ----------
   Latin dışı yazı sistemlerinde (CJK, Kiril, Arap, Devanagari, Yunan)
   metin kutuya dönüşmesin diye geniş kapsamlı yığın kullanılır. */
html[lang="zh"] body, html[lang="ja"] body, html[lang="ko"] body,
html[lang="hi"] body, html[lang="ar"] body, html[lang="el"] body,
html[lang="ru"] body, html[lang="uk"] body, html[lang="sr"] body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", Meiryo,
    "Noto Sans CJK JP", "Noto Sans CJK SC", "Noto Sans KR", "Malgun Gothic",
    "Noto Sans Devanagari", "Nirmala UI", "Noto Sans Arabic", "Segoe UI",
    "Noto Sans", system-ui, -apple-system, Arial, sans-serif;
}

/* CJK başlıklar 11px'te okunmaz — bu dillerde biraz büyütülür */
html[lang="zh"] .st-table thead th,
html[lang="ja"] .st-table thead th,
html[lang="ko"] .st-table thead th,
html[lang="hi"] .st-table thead th { font-size: 12px; letter-spacing: 0; }

/* ---------- çerez izni banner'ı ---------- */
.consent-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  animation: consent-in 0.22s ease-out;
}
@keyframes consent-in {
  from { transform: translateY(14px); opacity: 0; }
}
.consent-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.consent-txt {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.consent-txt b { font-size: 13px; color: var(--text); }
.consent-txt span { font-size: 12.5px; line-height: 1.55; color: var(--muted); }

/* banner açıkken içerik altta kalmasın */
body.has-consent { padding-bottom: 110px; }
@media (max-width: 520px) {
  body.has-consent { padding-bottom: 150px; }
}

/* Sabit altlık (footer) son satırı örtmesin; iOS güvenli alanı dahil */
body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }

/* Sekme şeritleri dar ekranda taşmak yerine yatay kaydırılsın */
@media (max-width: 520px) {
  .tabs {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-left: 10px;
    padding-right: 10px;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; }
}
.consent-actions { display: flex; gap: 8px; margin-left: auto; }
.consent-btn {
  font-size: 12.5px;
  font-weight: 650;
  padding: 9px 16px;
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid var(--line);
  white-space: nowrap;
  transition: background 0.14s, border-color 0.14s;
}
.consent-btn.ghost { background: transparent; color: var(--muted); }
.consent-btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.consent-btn.solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #06120a;
}
.consent-btn.solid:hover { filter: brightness(1.08); }

@media (max-width: 520px) {
  .consent-bar { left: 8px; right: 8px; bottom: 8px; }
  .consent-inner { padding: 12px; gap: 10px; }
  .consent-actions { margin-left: 0; width: 100%; }
  .consent-btn { flex: 1; text-align: center; }
}

/* ---------- maç detay SEO sayfası (/match/:id) ---------- */
.match-lead { color: var(--muted); font-size: 14.5px; }
.match-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 22px 0;
  padding: 18px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.match-score .ms-team {
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
  text-align: center;
  flex: 1;
}
.match-score .ms-num {
  font-size: 30px;
  font-weight: 850;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}
.match-score .ms-open, .ms-open {
  display: inline-block;
  margin-top: 4px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--accent);
  color: #06120a;
  font-weight: 750;
  text-decoration: none;
}
.ms-open:hover { filter: brightness(1.08); }
.seo-content a { color: var(--accent); }
