/* ── Design tokens (mirror bio/styles.css) ──────────────────────────────── */
:root {
  --bg:   #0b1018;
  --bg2:  #0a1626;
  --card: #112240;
  --acc:  #16e0a6;
  --accdim: rgba(22,224,166,.13);
  --accbd:  rgba(22,224,166,.35);
  --live: #ff5a6a;
  --tp:   #e8edf5;
  --ts:   #8ea0ba;
  --tm:   #4a6080;
  --bd:   rgba(255,255,255,.07);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body {
  color: var(--tp);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(120% 42% at 50% 0, rgba(22,224,166,.10), transparent 60%),
    var(--bg);
  display: flex;
  justify-content: center;
}
a { color: inherit; text-decoration: none; }

/* ── Hub container (IG-mirror, max 480 px) ──────────────────────────────── */
.hub {
  width: 100%;
  max-width: 480px;
  padding: 20px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.hub-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 0 14px;
}

/* Avatar circle with green gradient */
.hub-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #15d6a0, #0e9c8f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  color: #06231d;
  flex-shrink: 0;
}

.hub-head > div:nth-child(2) { flex: 1; }

.hub-nm {
  font-weight: 800;
  font-size: 16px;
  color: var(--tp);
}
.hub-tag {
  font-size: 11px;
  color: var(--ts);
  margin-top: 2px;
}

/* ── Social icons row (A1 variant — lives in header) ────────────────────── */
.hub-socials {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.hub-soc {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  transition: opacity .15s ease, transform .15s ease;
}
.hub-soc:hover { opacity: .82; transform: translateY(-1px); }

/* IG gradient */
.hub-soc.ig {
  background: linear-gradient(135deg, #feda75, #d62976, #962fbf);
  color: #fff;
}
/* Threads — white bg, black text */
.hub-soc.th {
  background: #fff;
  color: #000;
}
/* X — black bg, white text */
.hub-soc.xx {
  background: #000;
  color: #fff;
  border: 1px solid #333;
}

/* ── Primary CTA button ─────────────────────────────────────────────────── */
.hub-primary {
  display: block;
  text-align: center;
  background: var(--acc);
  color: #04221d;
  font-weight: 800;
  font-size: 15px;
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: 0 6px 22px rgba(22,224,166,.25);
  transition: transform .15s ease, filter .15s ease;
}
.hub-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }

/* ── Section heading ────────────────────────────────────────────────────── */
.hub-sec-h {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ts);
  padding: 0 2px;
  margin: 14px 0 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Stories row ─────────────────────────────────────────────────────────── */
.hub-stories {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 4px;
  /* hide scrollbar on webkit */
  scrollbar-width: none;
}
.hub-stories::-webkit-scrollbar { display: none; }

/* Each story is a link wrapping the circle */
.hub-story {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  /* gradient ring: padding + outer circle */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #16e0a6, #37c2ff);
  transition: opacity .15s ease;
}
.hub-story:hover { opacity: .85; }

/* Image fills the inner circle */
.hub-st-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background-size: cover;
  background-position: center;
  background-color: var(--card);
}

/* ── Hoje section ────────────────────────────────────────────────────────── */
.hub-hoje {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 4px;
}

/* Each game row is an <a> tag */
.hub-grow {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border-top: 1px solid rgba(255,255,255,.05);
  font-size: 12px;
  transition: background .12s ease;
}
.hub-grow:first-child { border-top: none; }
.hub-grow:hover { background: rgba(255,255,255,.04); }

/* Kickoff time */
.hub-t {
  font-weight: 800;
  width: 46px;
  color: #cfe8db;
  flex-shrink: 0;
}

/* AO VIVO badge */
.hub-lv {
  font-weight: 900;
  font-size: 9px;
  width: 46px;
  color: var(--live);
  flex-shrink: 0;
  animation: pulse 1.4s infinite;
}

/* Match name */
.hub-vs {
  flex: 1;
  font-weight: 700;
  color: var(--tp);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* "ver jogo →" CTA */
.hub-go {
  font-size: 11px;
  color: var(--acc);
  font-weight: 800;
  flex-shrink: 0;
}

/* ── Feed — 3-col square grid ────────────────────────────────────────────── */
.hub-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

/* Each tile is an <a> tag */
.hub-feed-t {
  display: block;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  transition: opacity .15s ease, transform .15s ease;
}
.hub-feed-t:hover { opacity: .88; transform: scale(.98); }

/* Image span fills the tile */
.hub-ft-img {
  display: block;
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--card);
  /* subtle fallback gradient */
  background-image: linear-gradient(160deg, #13314f, #0a1626);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.hub-foot {
  text-align: center;
  font-size: 10px;
  color: var(--tm);
  margin-top: auto;
  padding-top: 20px;
}

/* ── Live pulse animation ────────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}

/* ── Focus styles ────────────────────────────────────────────────────────── */
a:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
