/* Tribuna Home — ported from Tribuna Home.dc.html (claude.ai/design) */

:root {
  --bg: #020617;
  --frame: #1e293b;
  --screen: #0f172a;
  --card: #1e293b;
  --ink: #f1f5f9;
  --muted: #64748b;
  --dim: #475569;
  --soft: #cbd5e1;
  --accent: #10b981;
  --accent-ink: #022c22;
  --live: #ef4444;
  --hair: rgba(255,255,255,0.07);
  --hair-soft: rgba(255,255,255,0.06);
  --tag-bg: rgba(255,255,255,0.05);
}

* { box-sizing: border-box; }
*::-webkit-scrollbar { width: 0; height: 0; }

@keyframes tribunaPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: .35; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes tribunaRing {
  0% { transform: scale(.6); opacity: .6; }
  100% { transform: scale(2.4); opacity: 0; }
}

.stage {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; background: var(--bg);
  font-family: 'Inter', system-ui, sans-serif; padding: 24px;
}

.phone {
  width: 375px; height: 812px; background: var(--screen);
  position: relative; overflow: hidden; border-radius: 42px;
  box-shadow: 0 0 0 11px var(--bg), 0 0 0 12px var(--frame);
  display: flex; flex-direction: column;
}

/* STATUS BAR */
.statusbar {
  flex: none; height: 44px; padding: 0 26px;
  display: flex; align-items: center; justify-content: space-between; color: var(--ink);
}
.statusbar__time { font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.statusbar__icons { display: flex; align-items: center; gap: 6px; }
.statusbar__battery {
  width: 22px; height: 11px; border: 1.5px solid rgba(241,245,249,.5);
  border-radius: 3px; padding: 1.5px; display: flex; position: relative;
}
.statusbar__battery::after {
  content: ""; position: absolute; right: -3.5px; top: 3.5px;
  width: 1.5px; height: 4px; background: rgba(241,245,249,.5); border-radius: 0 1px 1px 0;
}
.statusbar__battery-fill { width: 80%; height: 100%; background: var(--ink); border-radius: 1px; }

/* SCROLL */
.scroll { flex: 1; overflow-y: auto; padding: 0 20px 200px; }

/* GREETING */
.greeting {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0 10px;
}
.greeting__hi { font-size: 15px; font-weight: 500; color: var(--ink); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--accent); background: var(--frame);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: var(--ink);
}

/* PILLS */
.pill-row { display: flex; gap: 8px; margin-bottom: 6px; }
.pill {
  height: 44px; display: flex; align-items: center; gap: 7px;
  background: var(--frame); border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: 24px; padding: 0 12px; font-family: inherit; overflow: hidden;
}
.pill--search { flex: 1; gap: 8px; padding: 0 14px; }
.pill__muted { font-size: 14px; font-weight: 500; color: var(--muted); }
.search-input {
  flex: 1; background: transparent; border: none; outline: none;
  -webkit-appearance: none; appearance: none;
  font-family: inherit; font-size: 14px; font-weight: 500;
  color: var(--ink); min-width: 0; caret-color: var(--accent);
}
.search-input::placeholder { color: var(--muted); }
.search-input:-webkit-autofill,
.search-input:-webkit-autofill:hover,
.search-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--frame) inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* CATEGORY TABS */
.cat-scroll { overflow-x: auto; margin: 8px -20px 0; }
.cat-tabs { display: flex; padding: 0 20px; }
.cat-tab {
  flex: none; background: none; border: none; cursor: pointer; font-family: inherit;
  border-bottom: 2px solid transparent; min-width: 58px;
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 14px;
  color: var(--dim);
}
.cat-tab.is-active { border-bottom-color: var(--accent); color: var(--accent); }
.cat-tab i { font-size: 22px; }
.cat-tab span { font-size: 11px; font-weight: 600; white-space: nowrap; }

.divider { height: 0.5px; background: var(--hair); }
.divider--cat { margin: 0 -20px 4px; }

/* SECTIONS */
.section { margin-bottom: 12px; }
.section:first-of-type { margin-top: 20px; }
.section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px; }
.section__head--spaced { margin-bottom: 12px; }
.section__title { font-size: 14px; font-weight: 800; color: var(--ink); }
.section__title--label {
  font-size: 12px; font-weight: 700; color: var(--muted);
  letter-spacing: .8px; text-transform: uppercase;
}
.section__sub { font-size: 11px; font-weight: 500; color: var(--muted); }
.section__sub--dim { font-size: 10px; color: var(--dim); }
.see-all {
  background: none; border: none; font-family: inherit; cursor: pointer; padding: 0;
  font-size: 12px; font-weight: 600; color: var(--accent);
}

/* HORIZONTAL ROW */
.row { position: relative; margin: 0 -20px 24px; }
.row__scroll { overflow-x: auto; }
.row__track { display: flex; gap: 12px; padding: 0 20px 4px; }
.row__fade {
  position: absolute; right: 0; top: 0; bottom: 4px; width: 56px; pointer-events: none;
  background: linear-gradient(to right, rgba(15,23,42,0), rgba(15,23,42,0.85));
}

/* shared atoms */
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--tag-bg); border-radius: 6px; padding: 3px 8px;
}
.tag span:first-child { font-size: 10px; }
.tag span:last-child { font-size: 10px; font-weight: 600; color: var(--soft); }
.btn-apuntar {
  background: transparent; border: 1px solid rgba(16,185,129,.35); border-radius: 9px;
  padding: 7px 12px; font-family: inherit; font-size: 11px; font-weight: 700;
  color: var(--accent); cursor: pointer; white-space: nowrap;
}
.btn-link {
  background: none; border: none; font-family: inherit; cursor: pointer; padding: 0;
  font-size: 11px; font-weight: 700; color: var(--accent);
}

/* SECTION 1 — Selección cards */
.card-sel { flex: none; width: 240px; border-radius: 16px; padding: 14px; background: var(--card); }
.card-sel__match {
  background: var(--screen); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; text-align: center;
}
.card-sel__match-teams { font-size: 11px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.card-sel__match-time { font-size: 10px; font-weight: 500; color: var(--muted); }
.card-sel__name { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.card-sel__loc { display: flex; align-items: center; gap: 4px; margin-bottom: 9px; }
.card-sel__loc span:first-child { font-size: 11px; }
.card-sel__loc span:last-child { font-size: 12px; font-weight: 500; color: var(--muted); }
.card-sel .tags { margin-bottom: 12px; }
.card-sel__foot { display: flex; align-items: center; justify-content: space-between; }
.attend { display: flex; align-items: center; gap: 5px; }
.attend__count { font-size: 11px; font-weight: 600; color: var(--muted); }
.avatar-stack { display: flex; }
.mini-avatar {
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--frame);
  display: flex; align-items: center; justify-content: center;
  font-size: 7px; font-weight: 800; color: #fff;
}
.mini-avatar + .mini-avatar { margin-left: -5px; }

/* SECTION 2 — World cards */
.card-world {
  flex: none; width: 220px; border-radius: 16px; overflow: hidden;
  background: var(--card); border: 1px solid var(--hair-soft);
}
.card-world.is-live { border-color: rgba(16,185,129,.35); }
.card-world__head {
  background: var(--screen); padding: 11px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 5px;
}
.team { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.team__flag { font-size: 22px; line-height: 1; }
.team__name { font-size: 11px; font-weight: 700; color: var(--ink); text-align: center; white-space: nowrap; }
.score-col { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 72px; }
.score-col__score { font-size: 18px; font-weight: 900; color: var(--ink); letter-spacing: .5px; line-height: 1; }
.score-col__kickoff { font-size: 16px; font-weight: 900; color: var(--ink); letter-spacing: -.3px; line-height: 1; }
.score-col__status { font-size: 9px; font-weight: 600; color: var(--muted); }
.live-flag { display: flex; align-items: center; gap: 4px; }
.live-flag__text { font-size: 9px; font-weight: 800; color: var(--live); }
.live-dot { position: relative; width: 6px; height: 6px; }
.live-dot__ring, .live-dot__core { position: absolute; inset: 0; border-radius: 50%; background: var(--live); }
.live-dot__ring { animation: tribunaRing 1.4s ease-out infinite; }
.live-dot__core { animation: tribunaPulse 1.4s ease-in-out infinite; }
.card-world__body { padding: 9px 12px 11px; }
.card-world__venue { font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.card-world__venue span { font-weight: 500; color: var(--muted); font-size: 11px; }
.card-world .tags { gap: 4px; margin-bottom: 9px; }
.card-world .tag { padding: 3px 7px; }
.card-world .tag span:first-child { font-size: 9px; }
.card-world .tag span:last-child { font-size: 9px; }

/* SECTION 3 — Recap cards */
.card-recap {
  flex: none; width: 180px; border-radius: 14px; overflow: hidden;
  background: var(--card); border: 1px solid var(--hair-soft);
}
.card-recap__hero {
  height: 88px; background: #1a2c40; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.card-recap__hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(16,185,129,.07) 0%, transparent 65%);
}
.card-recap__pitch { position: absolute; bottom: 0; left: 0; right: 0; opacity: .15; }
.card-recap__vs { position: relative; z-index: 1; display: flex; gap: 6px; align-items: center; }
.recap-flag {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.recap-flag--arg { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.2); }
.recap-flag--opp { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.card-recap__vs-label { font-size: 11px; font-weight: 700; color: var(--muted); }
.card-recap__body { padding: 11px 12px 13px; text-align: center; }
.card-recap__result { font-size: 14px; font-weight: 900; color: var(--ink); letter-spacing: -.3px; margin-bottom: 3px; }
.card-recap__stage { font-size: 10px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.card-recap__body .divider { margin-bottom: 8px; }
.card-recap__cronica {
  display: block; font-size: 11px; font-weight: 700; color: var(--accent);
  margin-bottom: 3px; background: none; border: none; padding: 0;
  cursor: pointer; font-family: inherit; text-align: left;
}
.card-recap__photos { font-size: 10px; font-weight: 500; color: var(--dim); }

/* SECTION 4 — Upcoming cards */
.card-up {
  flex: none; width: 240px; border-radius: 16px; overflow: hidden;
  background: var(--card); border: 1px solid var(--hair-soft);
}
.card-up__head {
  background: var(--screen); padding: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.when { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 84px; }
.when__date { font-size: 11px; font-weight: 600; color: #94a3b8; letter-spacing: .2px; }
.when__kickoff { font-size: 18px; font-weight: 900; color: var(--ink); letter-spacing: -.3px; line-height: 1.1; }
.when__countdown { font-size: 9px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.card-up__body { padding: 10px 12px 12px; }
.card-up__venue { font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.card-up__loc { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.card-up__loc span:first-child { font-size: 10px; }
.card-up__loc span:last-child { font-size: 11px; font-weight: 500; color: var(--muted); }
.card-up .tags { gap: 4px; margin-bottom: 10px; }
.card-up .tag { padding: 3px 7px; }
.card-up .tag span { font-size: 9px; }
.card-up__foot { display: flex; justify-content: flex-end; }

/* CATEGORY TABS — hidden per FEST-12 */
.cat-scroll, .divider--cat { display: none; }

/* VER TODOS — hidden per FEST-12 */
.see-all { display: none; }

/* BOTTOM NAV */
.bottomnav {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 10;
  background: rgba(15,23,42,.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--frame); padding: 12px 16px 26px;
}
.live-bar {
  background: var(--accent); border-radius: 16px; padding: 11px 12px 11px 16px;
  align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px;
}
.live-bar:not([hidden]) {
  display: flex;
}
.live-bar__info { min-width: 0; }
.live-bar__label {
  font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: var(--accent-ink); opacity: .65;
}
.live-bar__match {
  font-size: 15px; font-weight: 900; color: var(--accent-ink); letter-spacing: -.3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.live-bar__cta {
  flex: none; background: var(--accent-ink); border: none; border-radius: 11px;
  padding: 10px 14px; font-family: inherit; font-size: 13px; font-weight: 800;
  color: var(--accent); cursor: pointer; white-space: nowrap;
}
.navtabs { display: flex; align-items: flex-start; justify-content: space-between; }
.navtab {
  flex: 1; background: none; border: none; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 2px 0;
  color: var(--dim);
}
.navtab.is-active { color: var(--accent); }
.navtab span {
  font-size: 9px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
}
.navtab__dot { width: 4px; height: 4px; border-radius: 50%; background: transparent; }
.navtab.is-active .navtab__dot { background: var(--accent); }
