/* Competition Hub — sayfa blok stilleri (mobil + masaüstü). landing.css üstüne. */
.hub-main { max-width: 1080px; margin: 0 auto; padding: 96px 20px 56px; }
.hub-breadcrumb { display: flex; align-items: center; gap: 6px; color: var(--fog); font-size: 13px; margin-bottom: 18px; flex-wrap: wrap; }
.hub-breadcrumb a { color: var(--aqua); text-decoration: none; }
.hub-breadcrumb a:hover { text-decoration: underline; }

/* Hero */
.hub-hero { display: flex; align-items: center; gap: 18px; background: linear-gradient(135deg, rgba(120,184,176,.10), rgba(167,139,250,.08)); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 28px; }
.hub-hero img { height: 64px; width: auto; flex-shrink: 0; }
.hub-hero-txt h1 { font-size: 26px; font-weight: 800; color: var(--cream); margin: 0 0 6px; }
.hub-hero-txt p { color: var(--fog); font-size: 14px; margin: 0; }
.hub-hero-dates { font-family: 'Roboto Mono', monospace; color: var(--aqua); font-size: 13px; margin-top: 4px; }

/* Section */
.hub-section { margin-bottom: 34px; }
.hub-section h2 { font-size: 20px; font-weight: 700; color: var(--cream); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }

/* News */
.hub-news-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.hub-news-item h3 { font-size: 16px; font-weight: 700; color: var(--cream); margin: 0 0 4px; }
.hub-news-date { font-family: 'Roboto Mono', monospace; font-size: 11px; color: var(--fog); margin-bottom: 8px; }
.hub-news-body { color: var(--fog); font-size: 14px; line-height: 1.7; position: relative; overflow: hidden; max-height: 4.8em; transition: max-height .25s ease; }
.hub-news-body p { margin: 0 0 8px; }
.hub-news-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.4em; background: linear-gradient(to bottom, rgba(0,0,0,0), var(--card)); pointer-events: none; }
.hub-news-item.expanded .hub-news-body { max-height: 4000px; }
.hub-news-item.expanded .hub-news-body::after { display: none; }
.hub-news-more { margin-top: 10px; background: none; border: 0; color: var(--aqua); font-size: 13px; font-weight: 600; cursor: pointer; padding: 2px 0; }
.hub-news-more:hover { text-decoration: underline; }

/* Standings */
.hub-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.hub-group { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.hub-group-name { font-size: 14px; font-weight: 700; color: var(--aqua); margin-bottom: 8px; }
.hub-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.hub-table th { text-align: left; color: var(--fog); font-weight: 600; padding: 4px 5px; border-bottom: 1px solid var(--border); font-size: 10px; text-transform: uppercase; letter-spacing: .3px; }
.hub-table td { padding: 5px 5px; color: var(--cream); border-bottom: 1px solid rgba(255,255,255,.04); }
.hub-table td.num, .hub-table th.num { text-align: center; font-family: 'Roboto Mono', monospace; }
.hub-table .team-cell { display: flex; align-items: center; gap: 6px; }
.hub-table .team-cell img { width: 16px; height: 16px; }
/* En iyi 3.'ler tablosu — qualified satır vurgusu + Q sütunu */
.hub-third-table { max-width: 720px; }
.hub-third-table tr.hub-third-q td { background: rgba(103,232,249,.06); }
.hub-third-table tr.hub-third-q td:first-child { box-shadow: inset 3px 0 0 var(--aqua); }
.hub-q-yes { color: #34d399; font-weight: 700; }
.hub-q-no { color: var(--fog); opacity: .5; }

/* Results + picks */
.hub-matches { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.hub-match { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.hub-match-meta { font-size: 11px; color: var(--fog); margin-bottom: 6px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hub-match-teams { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; color: var(--cream); margin-bottom: 4px; }
.hub-match-teams .t { display: flex; align-items: center; gap: 6px; }
.hub-match-teams img { width: 20px; height: 20px; }
.hub-match-score { font-family: 'Roboto Mono', monospace; color: #A78BFA; font-weight: 700; }
.hub-match-ko { font-family: 'Roboto Mono', monospace; font-size: 12px; color: var(--fog); }
.hub-picks { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.hub-pick { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; padding: 4px 0; border-top: 1px solid rgba(255,255,255,.04); }
.hub-pick-label { color: var(--cream); display: flex; align-items: center; gap: 5px; }
.hub-pick-odds { font-family: 'Roboto Mono', monospace; color: var(--aqua); }
.hub-wl.won { color: #4ade80; } .hub-wl.lost { color: #f87171; }
.hub-wl.push { color: #60A5FA; } .hub-wl.half_win { color: #3B82F6; } .hub-wl.half_loss { color: #FB923C; }
/* Satır renklendirme (W/L/push) — dashboard pick satırlarıyla uyumlu */
.hub-pick.won { background: rgba(16,185,129,.12); border-left: 3px solid #10B981; padding-left: 8px; border-radius: 4px; }
.hub-pick.lost { background: rgba(244,63,94,.12); border-left: 3px solid #f43f5e; padding-left: 8px; border-radius: 4px; }
.hub-pick.push { background: rgba(59,130,246,.12); border-left: 3px solid #3B82F6; padding-left: 8px; border-radius: 4px; }
.hub-pick.half_win { background: rgba(16,185,129,.08); border-left: 3px solid #10B981; padding-left: 8px; border-radius: 4px; }
.hub-pick.half_loss { background: rgba(244,63,94,.08); border-left: 3px solid #f43f5e; padding-left: 8px; border-radius: 4px; }
.hub-badge { font-size: 12px; }

/* CTA */
.hub-cta { background: linear-gradient(135deg, rgba(120,184,176,.12), rgba(167,139,250,.10)); border: 1px solid var(--border); border-radius: 14px; padding: 22px; text-align: center; margin-top: 8px; }
.hub-cta p { color: var(--fog); font-size: 14px; margin: 0 0 14px; }
.hub-empty { color: var(--fog); font-size: 13px; padding: 14px 0; }

@media (max-width: 768px) {
  .hub-main { padding: 84px 14px 48px; }
  .hub-hero { flex-direction: column; text-align: center; padding: 18px; }
  .hub-hero img { height: 54px; }
  .hub-hero-txt h1 { font-size: 21px; }
  .hub-groups, .hub-matches { grid-template-columns: 1fr; }
}

/* Bayraklı/logolu takım chip'leri (standings yokken) */
.hub-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.hub-team-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px; font-size: 13px; color: var(--cream); }
.hub-team-chip img { width: 18px; height: 18px; }
.hub-team.clickable { cursor: pointer; transition: color .15s; }
.hub-team.clickable:hover { color: var(--aqua); }
.hub-team.clickable .tn { text-decoration: underline dotted rgba(120,184,176,.4); text-underline-offset: 2px; }

/* Kadro popup modal */
.hub-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 16px; }
.hub-modal-box { background: linear-gradient(135deg, #141d2e, #0f1722); border: 1px solid var(--border); border-radius: 16px; max-width: 560px; width: 100%; max-height: 84vh; overflow-y: auto; padding: 22px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.hub-modal-close { position: absolute; top: 12px; right: 14px; background: none; border: none; color: var(--fog); font-size: 26px; line-height: 1; cursor: pointer; }
.hub-modal-close:hover { color: var(--cream); }
.hub-modal-title { font-size: 18px; font-weight: 700; color: var(--cream); margin: 0 0 14px; padding-right: 28px; }
.hub-sq-loading { color: var(--fog); font-size: 14px; padding: 20px 0; text-align: center; }
.hub-sq-group { margin-bottom: 14px; }
.hub-sq-pos { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--aqua); margin-bottom: 6px; }
.hub-sq-player { display: flex; align-items: center; gap: 9px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 13px; }
.hub-sq-player img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.06); }
.hub-sq-name { color: var(--cream); flex: 1; }
.hub-sq-name b { color: var(--aqua); font-family: 'Roboto Mono', monospace; margin-right: 2px; }
.hub-sq-club { font-size: 12px; color: var(--fog); font-weight: 500; }
@media (max-width: 768px) { .hub-modal-box { padding: 18px 16px; max-height: 88vh; } }

/* Tarih sekmeleri (haber + maçlar) */
.hub-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 14px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.hub-tab { flex: 0 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 6px 13px; font-size: 12px; font-weight: 600; color: var(--fog); cursor: pointer; font-family: 'Roboto Mono', monospace; white-space: nowrap; transition: all .15s; }
.hub-tab:hover { border-color: var(--aqua); color: var(--cream); }
.hub-tab.active { background: rgba(120,184,176,.14); border-color: var(--aqua); color: var(--aqua); }
.hub-tab-panel { display: none; }
.hub-tab-panel.active { display: block; }

/* Paywall — gelecek maç pick'leri (Pro/Premium) */
.hub-premium-wrap { position: relative; margin-top: 8px; }
.hub-premium { filter: blur(6px); pointer-events: none; user-select: none; opacity: .7; }
.hub-premium-lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center; padding: 6px; }
.hub-premium-lock span { font-size: 12px; font-weight: 600; color: var(--cream); background: rgba(11,20,40,.55); padding: 3px 10px; border-radius: 6px; }
.hub-premium-cta { font-size: 12px; font-weight: 700; color: #0F1923; background: linear-gradient(135deg,#78B8B0,#5A9A92); padding: 6px 16px; border-radius: 8px; text-decoration: none; }
.hub-premium-cta:hover { transform: translateY(-1px); }
body.hub-pro .hub-premium { filter: none; pointer-events: auto; user-select: auto; opacity: 1; }
body.hub-pro .hub-premium-lock { display: none; }
