/* ═══════════════════════════════════════════════
   CanlıMaçİzle Tema — main.css
   ═══════════════════════════════════════════════ */

/* ── Değişkenler ─────────────────────────────── */
:root {
  --accent:       #111111;
  --bg:           #f2f2f2;
  --surface:      #ffffff;
  --surface-2:    #f7f7f7;
  --border:       #e4e4e4;
  --border-light: #ebebeb;
  --border-strong:#cccccc;
  --hover-bg:     #f4f4f4;
  --text:         #111111;
  --text-muted:   #444444;
  --text-subtle:  #999999;
  --accent-subtle:#f0f0f0;
  --footer-bg:    #1a1a1a;
  --footer-text:  #e8e8e8;
  --footer-muted: #777777;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow-md:    0 4px 14px rgba(0,0,0,.1);
  --shadow-lg:    0 8px 28px rgba(0,0,0,.13);
  --radius:       6px;
  --max-w:        1100px;
  --sidebar-w:    300px;
  --header-h:     54px;
  --transition:   .2s ease;
}

[data-theme="dark"] {
  --bg:           #0e1117;
  --surface:      #161b24;
  --surface-2:    #1c2230;
  --border:       #252d3d;
  --border-light: #1f2736;
  --border-strong:#2e3a50;
  --hover-bg:     #1e2840;
  --text:         #d8dfe8;
  --text-muted:   #8a97a8;
  --text-subtle:  #4a5870;
  --accent:       #f07020;
  --accent-subtle:#1e1508;
  --footer-bg:    #090c11;
  --footer-text:  #c8d0da;
  --footer-muted: #4a5870;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.3);
  --shadow-md:    0 4px 14px rgba(0,0,0,.4);
  --shadow-lg:    0 8px 28px rgba(0,0,0,.5);
}

/* Dark modda logo değişimi */
[data-theme="dark"] .logo-light    { display: none; }
[data-theme="dark"] .logo-dark-img { display: block; }
[data-theme="light"] .logo-dark-img { display: none; }

/* ── Reset ───────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body  {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 14px;
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
}
img  { max-width: 200px; height: 50px; display: block; }
a    { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Tipografi yükle ──────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600&family=IBM+Plex+Sans+Condensed:wght@600;700&display=swap');

/* ── HEADER ──────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0; z-index: 200;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 5px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.logo-name {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 17px; font-weight: 700;
  color: var(--text);
  letter-spacing: -.2px;
  white-space: nowrap;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.header-nav a {
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--hover-bg);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.live-pill {
  display: flex; align-items: center; gap: 5px;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  color: #fff;
  background: #111;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
[data-theme="dark"] .live-pill {
  background: var(--accent-subtle);
  color: var(--accent);
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #e02020;
  animation: blink 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
[data-theme="dark"] .live-dot { background: var(--accent); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

.dark-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: transform var(--transition), background var(--transition);
}
.dark-btn:hover { transform: scale(1.1); }

/* ── LAYOUT ──────────────────────────────────── */
.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 18px;
  align-items: start;
}
.main-content { min-width: 0; }

/* ── SEO BLOKLARI ────────────────────────────── */
.seo-top {
  padding: 14px 18px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}
.seo-top h1 {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.seo-top p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}
.seo-bottom {
  margin-top: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.seo-bottom h2 {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 15px; font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.seo-bottom p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── FİLTRE BUTONLARI ────────────────────────── */
.filter-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.f-btn {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: .2px;
  padding: 7px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-muted);
  transition: all var(--transition);
  display: flex; align-items: center; gap: 5px;
}
.f-btn:hover { border-color: var(--accent); color: var(--accent); }
.f-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.f-btn .f-ico { font-size: 14px; line-height: 1; }

/* ── MAÇ KARTI ───────────────────────────────── */
.match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.match-card-head {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: space-between;
}
.match-card-head-title {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-subtle);
  display: flex; align-items: center; gap: 6px;
}
.match-badge {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 11px; font-weight: 600;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 1px 8px;
  border-radius: 10px;
}

/* ── MAÇ SATIRI ──────────────────────────────── */
.match-row {
  display: grid;
  grid-template-columns: 28px 54px 1fr;
  align-items: center;
  padding: 0 14px;
  height: 42px;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}
.match-row:last-child { border-bottom: none; }
.match-row:hover { background: var(--hover-bg); }
.match-row:hover .m-teams { color: var(--accent); }
.match-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.m-ico {
  font-size: 13px;
  opacity: .65;
  text-align: center;
}
.m-time {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 15px; font-weight: 700;
  color: var(--accent);
  letter-spacing: .2px;
  white-space: nowrap;
}
.m-teams {
  font-size: 13px; font-weight: 500;
  color: var(--text);
  padding-left: 10px;
  border-left: 1px solid var(--border-light);
  height: 100%;
  display: flex; align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition);
}
.m-vs {
  font-size: 10px; font-weight: 600;
  color: var(--text-subtle);
  flex-shrink: 0;
  margin: 0 2px;
}
.m-t1, .m-t2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-in-list {
  height: 50px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-subtle);
  font-family: 'IBM Plex Sans Condensed', sans-serif;
}
.no-match {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-subtle);
}

/* Yükleniyor animasyonu */
.match-list.loading {
  opacity: .5;
  pointer-events: none;
  min-height: 80px;
}

/* ── SIDEBAR ─────────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: var(--sidebar-w);
}
.sidebar-ad {
  width: 300px; height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
}
.sidebar-ad-placeholder {
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-subtle);
  font-family: 'IBM Plex Sans Condensed', sans-serif;
}
.sidebar-chat {
  width: 300px;
  border-radius: var(--radius);
  overflow: hidden;
}
.sidebar-chat-placeholder {
  height: 550px;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-subtle);
  font-family: 'IBM Plex Sans Condensed', sans-serif;
}

/* ── POST / SINGLE SAYFA ─────────────────────── */
.post-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Breadcrumb */
.post-nav {
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
  font-size: 12px; color: var(--text-subtle);
}
.post-nav a {
  color: var(--accent);
  transition: opacity var(--transition);
}
.post-nav a:hover { opacity: .75; }
.post-nav-current {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* Başlık */
.post-title-area {
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--border);
}
.post-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.post-h1 {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 20px; font-weight: 700; line-height: 1.25;
  color: var(--text);
  flex: 1;
}
.live-tag {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .8px;
  background: #111; color: #fff;
  padding: 3px 8px; border-radius: 3px;
  display: flex; align-items: center; gap: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}
[data-theme="dark"] .live-tag { background: var(--accent); color: #fff; }
.live-tag .live-dot { background: #e02020; width: 5px; height: 5px; }
[data-theme="dark"] .live-tag .live-dot { background: #fff; }

/* Yayın sekme butonları */
.post-tabs {
  padding: 10px 16px;
  display: flex; gap: 6px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.s-tab {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 13px; font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-muted);
  border: 1.5px solid var(--border-strong);
  text-decoration: none;
  transition: all var(--transition);
}
.s-tab.active, .s-tab:hover {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* Oynatıcı */
.player-area {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.player-area iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 4px;
  display: block;
}
/* Bottan gelen yayin-embed için stil */
.yayin-embed {
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}
.yayin-embed iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* Post metin */
.post-body {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.post-body p, .post-seo-text p {
  font-size: 13px; line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.post-body p:last-child { margin-bottom: 0; }
.post-body strong { color: var(--text); }

/* Alt meta */
.post-meta-footer {
  padding: 10px 16px;
  background: var(--surface-2);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.pm-item {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-subtle);
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-weight: 500;
}

/* ── 404 ─────────────────────────────────────── */
.error-404 {
  text-align: center;
  padding: 60px 20px;
}
.error-404 h1 {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 80px; font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}
.error-404 p {
  font-size: 16px; color: var(--text-muted);
  margin-bottom: 24px;
}
.btn-primary {
  display: inline-block;
  background: var(--accent); color: #fff;
  padding: 10px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: 14px;
  transition: opacity var(--transition);
}
.btn-primary:hover { opacity: .85; }

/* ── FOOTER ──────────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  margin-top: 28px;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 20px 16px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}
.footer-brand {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--footer-text);
  margin-bottom: 6px;
}
.footer-desc {
  font-size: 12px; color: var(--footer-muted); line-height: 1.6;
}
.footer-col-title {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.footer-col a {
  display: block;
  font-size: 12px; color: var(--footer-muted);
  padding: 2px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--footer-text); }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  padding: 10px 20px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 6px;
  font-size: 11px; color: var(--footer-muted);
}

/* ── MOBİL NAV TOGGLE ───────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-md);
  z-index: 199;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  padding: 10px 12px;
  border-radius: var(--radius);
  display: block;
  transition: all var(--transition);
}
.mobile-nav a:hover {
  color: var(--text);
  background: var(--hover-bg);
}

/* ── MOBİL ───────────────────────────────────── */
@media (max-width: 900px) {
  .page-wrap {
    grid-template-columns: 1fr;
    padding: 12px 14px;
  }
  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .sidebar-ad,
  .sidebar-chat { width: 100%; max-width: 100%; }
  .sidebar-ad   { height: auto; min-height: 100px; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 14px; gap: 12px; }
  .header-nav { display: none; }
  .nav-toggle { display: flex; }
  .post-h1 { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col-brand { grid-column: 1/-1; }
  .player-area iframe,
  .yayin-embed iframe { height: 240px; }
  .match-row { height: 40px; }
}

@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr; }
  .filter-row { gap: 4px; }
  .f-btn { padding: 6px 10px; font-size: 12px; }
}

/* ── Erişilebilirlik ─────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Yardımcı sınıflar ───────────────────────── */
.text-muted  { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }

/* ── İç Linkleme Blokları ─────────────────────────── */
.ic-link-blok {
    margin: 20px 0;
    border: 1px solid var(--border, #e5e5e5);
    border-radius: 8px;
    overflow: hidden;
}
.ic-link-baslik {
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--text-muted, #888);
    border-bottom: 1px solid var(--border, #e5e5e5);
    background: var(--bg-card2, #f9f9f9);
}
.ic-link-satirlar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}
.ic-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text, #333);
    font-size: 13px;
    font-weight: 600;
    border-right: 1px solid var(--border, #e5e5e5);
    border-bottom: 1px solid var(--border, #e5e5e5);
    transition: background .15s;
    flex: 1;
    min-width: 140px;
}
.ic-link-item:hover {
    background: var(--bg-hover, #f0f0f0);
    color: var(--accent, #e63946);
    text-decoration: none;
}
.ic-link-ico { font-size: 16px; }
.ic-link-ok  { margin-left: auto; color: var(--text-muted, #aaa); font-size: 14px; }

/* İlgili maçlar grid */
.ic-link-maclar { margin-top: 24px; }
.ic-link-mac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0;
}
.ic-mac-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    text-decoration: none;
    border-right: 1px solid var(--border, #e5e5e5);
    border-bottom: 1px solid var(--border, #e5e5e5);
    transition: background .15s;
}
.ic-mac-item:hover { background: var(--bg-hover, #f5f5f5); text-decoration: none; }
.ic-mac-saat  { font-size: 11px; color: var(--accent, #e63946); font-weight: 700; }
.ic-mac-baslik { font-size: 12px; font-weight: 600; color: var(--text, #333); line-height: 1.4; }
.ic-mac-lig   { font-size: 10px; color: var(--text-muted, #999); }
.ic-mac-tumunu {
    display: block;
    padding: 10px 16px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent, #e63946);
    text-decoration: none;
    border-top: 1px solid var(--border, #e5e5e5);
}
.ic-mac-tumunu:hover { background: var(--bg-hover, #f5f5f5); }

@media (max-width: 640px) {
    .ic-link-item { min-width: 100%; border-right: none; }
    .ic-link-mac-grid { grid-template-columns: 1fr 1fr; }
}
