/**
 * Hub Page Styles — alpha50 (2026-04-19).
 *
 * Self-contained, mobile-first. CSS custom properties so themes can
 * override the palette via `:root` overrides without forking.
 */

.aiseo-hub {
  --aiseo-hub-bg:        #ffffff;
  --aiseo-hub-card-bg:   #f8fafc;
  --aiseo-hub-border:    #e2e8f0;
  --aiseo-hub-text:      #0f172a;
  --aiseo-hub-muted:     #64748b;
  --aiseo-hub-accent:    #3b82f6;
  --aiseo-hub-accent-bg: #eff6ff;
  --aiseo-hub-tier3-bg:  #fef3c7;
  --aiseo-hub-tier3-tag: #b45309;

  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px;
  color: var(--aiseo-hub-text);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Header ─────────────────────────────────────────────────────── */
.aiseo-hub__header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--aiseo-hub-border);
}
.aiseo-hub__title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.2;
}
.aiseo-hub__description {
  color: var(--aiseo-hub-muted);
  font-size: 15px;
  margin: 0 0 8px;
}
.aiseo-hub__meta {
  color: var(--aiseo-hub-muted);
  font-size: 13px;
  margin: 0;
}

/* ── Sub-category pills ─────────────────────────────────────────── */
.aiseo-hub__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding: 12px 0;
}
.aiseo-hub__category-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: var(--aiseo-hub-card-bg);
  border: 1px solid var(--aiseo-hub-border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--aiseo-hub-text);
  text-decoration: none;
  transition: all 0.2s;
}
.aiseo-hub__category-pill:hover {
  background: var(--aiseo-hub-accent-bg);
  border-color: var(--aiseo-hub-accent);
  color: var(--aiseo-hub-accent);
}
.aiseo-hub__category-count {
  color: var(--aiseo-hub-muted);
  font-size: 12px;
}

/* ── Sport / Region tabs (alpha52 — overview pages) ─────────────── */
.aiseo-hub__sport-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding: 16px;
  background: var(--aiseo-hub-card-bg);
  border-radius: 12px;
  border: 1px solid var(--aiseo-hub-border);
}
.aiseo-hub__sport-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--aiseo-hub-border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--aiseo-hub-text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}
.aiseo-hub__sport-tab:hover {
  background: var(--aiseo-hub-accent-bg);
  border-color: var(--aiseo-hub-accent);
  color: var(--aiseo-hub-accent);
}
.aiseo-hub__sport-icon { font-size: 18px; line-height: 1; }
.aiseo-hub__sport-label { font-weight: 600; }
.aiseo-hub__sport-count { font-size: 12px; color: var(--aiseo-hub-muted); }

.aiseo-hub__section {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--aiseo-hub-border);
}
.aiseo-hub__section-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.aiseo-hub__section-count {
  font-size: 13px;
  color: var(--aiseo-hub-muted);
  font-weight: 400;
}
.aiseo-hub__section-cta {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--aiseo-hub-accent);
  text-decoration: none;
  padding: 8px 0;
}
.aiseo-hub__section-cta:hover { text-decoration: underline; }

.aiseo-hub__breadcrumb {
  font-size: 13px;
  color: var(--aiseo-hub-muted);
  margin: 0 0 8px;
}
.aiseo-hub__breadcrumb a {
  color: var(--aiseo-hub-accent);
  text-decoration: none;
}
.aiseo-hub__breadcrumb a:hover { text-decoration: underline; }

/* alpha53 — overview sections render one card per row instead of
 * 2-up. The 2-up grid left an awkward empty cell when a sport had
 * an odd item count (e.g. 3 matches → 2+1 with a blank slot).
 * Single-column is cleaner for the limited 3-card preview shown
 * on the overview page. The full sport-page (`/analysis/baseball/`)
 * still uses the 2-up `.aiseo-hub__list` for its larger feed. */
.aiseo-hub__list--compact {
  grid-template-columns: 1fr;
  gap: 12px;
}

/* ── Item list ──────────────────────────────────────────────────── */
.aiseo-hub__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 16px;
}
@media (max-width: 600px) {
  .aiseo-hub__list { grid-template-columns: 1fr; }
}

.aiseo-hub__item {
  display: flex;
  flex-direction: column;
  background: var(--aiseo-hub-card-bg);
  border: 1px solid var(--aiseo-hub-border);
  border-radius: 12px;
  padding: 16px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.aiseo-hub__item:hover {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  border-color: var(--aiseo-hub-accent);
}

/* Tier visual differentiation. */
.aiseo-hub__item--tier3 {
  background: linear-gradient(180deg, #fffbeb 0%, var(--aiseo-hub-card-bg) 50%);
  border-color: #fde68a;
}
.aiseo-hub__item--tier3 .aiseo-hub__item-title::before {
  content: "⭐ ";
  color: var(--aiseo-hub-tier3-tag);
}

.aiseo-hub__item-thumb {
  margin: -16px -16px 12px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
}
.aiseo-hub__item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aiseo-hub__item-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.aiseo-hub__item-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}
.aiseo-hub__item-title a {
  color: var(--aiseo-hub-text);
  text-decoration: none;
}
.aiseo-hub__item-title a:hover {
  color: var(--aiseo-hub-accent);
}
.aiseo-hub__item-summary {
  color: var(--aiseo-hub-text);
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.aiseo-hub__item-metaline {
  font-size: 12px;
  color: var(--aiseo-hub-muted);
  margin: 0;
}
.aiseo-hub__item-cta {
  display: inline-block;
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--aiseo-hub-accent);
  text-decoration: none;
  padding-top: 8px;
}
.aiseo-hub__item-cta:hover { text-decoration: underline; }

.aiseo-hub__item-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--aiseo-hub-accent-bg);
  color: var(--aiseo-hub-accent);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  align-self: flex-start;
}
.aiseo-hub__item-tag--score {
  background: var(--aiseo-hub-tier3-bg);
  color: var(--aiseo-hub-tier3-tag);
}
.aiseo-hub__item-tag--featured {
  background: linear-gradient(90deg, #fef3c7, #fde68a);
  color: #92400e;
  font-weight: 700;
}

/* ── alpha54 Rich match card (sports bettor edition) ─────────────── */

.aiseo-hub__match {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  background: var(--aiseo-hub-card-bg);
  border: 1px solid var(--aiseo-hub-border);
  border-radius: 12px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.aiseo-hub__match:hover {
  box-shadow: 0 4px 14px rgba(15,23,42,0.08);
  border-color: var(--aiseo-hub-accent);
}

.aiseo-match__header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--aiseo-hub-muted);
  flex-wrap: wrap;
}
.aiseo-match__league { font-weight: 600; color: var(--aiseo-hub-text); }
.aiseo-match__time { margin-left: auto; }

.aiseo-match__score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--aiseo-hub-border);
  border-bottom: 1px solid var(--aiseo-hub-border);
}
.aiseo-match__team { display: flex; flex-direction: column; gap: 2px; }
.aiseo-match__team--home { text-align: right; }
.aiseo-match__team--away { text-align: left; }
.aiseo-match__team-name { font-size: 16px; font-weight: 700; color: var(--aiseo-hub-text); }
.aiseo-match__xg { font-size: 12px; color: var(--aiseo-hub-muted); }
.aiseo-match__numbers {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.aiseo-match__num {
  font-size: 32px;
  font-weight: 800;
  color: var(--aiseo-hub-text);
  min-width: 32px;
  text-align: center;
}
.aiseo-match__sep { font-size: 22px; color: var(--aiseo-hub-muted); }

.aiseo-match__goals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 13px;
  color: var(--aiseo-hub-text);
}
.aiseo-match__goal-team {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.aiseo-match__goal-team--away { text-align: right; }

.aiseo-match__stats,
.aiseo-match__odds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.aiseo-match__stat,
.aiseo-match__odd {
  display: inline-block;
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid var(--aiseo-hub-border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--aiseo-hub-text);
}
.aiseo-match__odd { background: #fffbeb; border-color: #fde68a; color: #92400e; }

.aiseo-match__cta {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--aiseo-hub-accent);
  text-decoration: none;
}
.aiseo-match__cta:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .aiseo-match__num { font-size: 26px; }
  .aiseo-match__team-name { font-size: 14px; }
  .aiseo-match__goals { grid-template-columns: 1fr; }
  .aiseo-match__goal-team--away { text-align: left; }
}

/* ── Pagination ─────────────────────────────────────────────────── */
.aiseo-hub__pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--aiseo-hub-border);
  font-size: 14px;
}
.aiseo-hub__page-link {
  color: var(--aiseo-hub-accent);
  text-decoration: none;
  font-weight: 500;
}
.aiseo-hub__page-link:hover { text-decoration: underline; }
.aiseo-hub__page-current { color: var(--aiseo-hub-muted); font-size: 13px; }

/* ── Empty state ────────────────────────────────────────────────── */
.aiseo-hub__empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--aiseo-hub-muted);
  font-size: 14px;
}
