/* The legacy .context-bar styles lived here. They've been replaced
   by the shared ribbon component (shared/_ribbon) + .tournament-hero
   on every screen that used them — see Phase 7 of the boletería
   redesign. */


/* ────────── Tournament hero (show / fixture / ranking / predict) ────────── */
.tournament-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.tournament-hero.-compact { margin-bottom: 18px; }
.tournament-hero__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 210, 63, 0.18), rgba(255, 210, 63, 0.05));
  border: 1px solid rgba(255, 210, 63, 0.3);
  color: var(--gold);
  box-shadow: 0 4px 14px var(--gold-glow);
}
.tournament-hero__icon > svg,
.tournament-hero__icon > img { width: 60%; height: 60%; object-fit: contain; }
.tournament-hero__main { flex: 1; min-width: 0; }
.tournament-hero__title {
  font-family: var(--font-scoreboard);
  font-size: clamp(32px, 6vw, 50px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--ink);
  margin: 0 0 4px;
}
.tournament-hero__title .muted { color: var(--muted); font-weight: inherit; }
.tournament-hero__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}


/* ────────── Action grid (show) ────────── */
.action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 28px;
}
@media (min-width: 560px) {
  .action-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .action-grid { grid-template-columns: repeat(4, 1fr); }
}

.action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  transition: transform 200ms, border-color 200ms, box-shadow 200ms;
}
.action-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
  transition: opacity 200ms;
}
.action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 210, 63, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}
.action-card:hover::before { opacity: 1; }

.action-card__top {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.action-card__title {
  font-family: var(--font-scoreboard);
  font-size: 28px;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--ink);
  margin: 2px 0 0;
}
.action-card__desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.4;
  margin-bottom: 8px;
}

.action-card__badge {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
}
.action-card__badge.-pending {
  color: var(--coral);
  border-color: rgba(255, 120, 102, 0.4);
  background: rgba(255, 120, 102, 0.06);
}
.action-card__badge.-done {
  color: var(--green);
  border-color: rgba(78, 199, 122, 0.32);
  background: rgba(78, 199, 122, 0.06);
}
.action-card__badge.-gold {
  color: var(--gold);
  border-color: rgba(255, 210, 63, 0.4);
  background: rgba(255, 210, 63, 0.08);
}

/* Action card variant: salas with active premium pool — subtle gold halo */
.action-card.-rooms-premium {
  border-color: rgba(255, 210, 63, 0.3);
  background:
    radial-gradient(140% 100% at 0% 0%, rgba(255, 210, 63, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, var(--card), var(--card-2));
}
.action-card.-rooms-premium::before { opacity: 0.85; }
.action-card.-rooms-premium .action-card__badge.-gold {
  background: linear-gradient(90deg, rgba(255, 210, 63, 0.18), rgba(255, 210, 63, 0.06));
  border-color: rgba(255, 210, 63, 0.55);
  color: var(--gold);
}
.action-card.-rooms-premium .action-card__badge.-gold > svg { color: var(--gold); }

/* Dos chips lado a lado (Gratis + Premium) — anclados al fondo igual
   que un badge único, pero sin que se peguen a las descripciones más
   largas. */
.action-card__pills {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.action-card__pills > .action-card__badge { margin-top: 0; }

/* Feed list — upcoming matches with your status (boletería) */
.feed-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}
.feed-match {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px dashed var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 150ms;
}
.feed-list > .feed-match:last-child { border-bottom: 0; }
a.feed-match:hover { background: rgba(255, 255, 255, 0.018); }

.feed-match > .time {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 110px;
}
.feed-match > .teams {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-size: 14px;
  min-width: 0;
}
.feed-match > .teams > .home-name,
.feed-match > .teams > .away-name {
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.feed-match > .teams > .home-name { text-align: right; }
.feed-match > .teams > .away-name { text-align: left; }
.feed-match > .teams > .home-badge,
.feed-match > .teams > .away-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feed-match > .teams > .vs {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.1em;
  padding: 0 4px;
}

.feed-match > .pick {
  flex-shrink: 0;
  text-align: right;
}
.feed-match > .pick .status.-done {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.feed-match > .pick .action {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (max-width: 559px) {
  .feed-match { flex-direction: column; align-items: stretch; gap: 6px; }
  .feed-match > .pick { text-align: left; }
}

/* (Older .feed-match > .pick > .status / .action button styles
   removed — boletería treatment lives in the
   .feed-match > .pick .status / .action descendant rules above.) */


/* ────────── Action card — split variant (Salas: Ver + Crear) ──────────
   La card sigue siendo un contenedor con la misma estética que las
   otras 3, pero agrupa dos links: el body lleva al listado, y el CTA
   inferior abre el form para crear sala. */
.action-card.action-card--split {
  padding: 0;
}
.action-card.action-card--split > .action-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 12px;
  text-decoration: none;
  color: inherit;
  flex: 1;
}
.action-card.action-card--split > .action-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 14px 14px;
  padding: 9px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 150ms, color 150ms, background 150ms;
}
.action-card.action-card--split > .action-card__cta:hover {
  border-color: var(--gold);
  background: rgba(255, 210, 63, 0.08);
  color: var(--gold);
}
.action-card.action-card--split > .action-card__cta > svg { color: inherit; }

/* En la variante con pozo activo, el CTA lleva acento dorado de base */
.action-card.-rooms-premium.action-card--split > .action-card__cta {
  border-color: rgba(255, 210, 63, 0.45);
  background: rgba(255, 210, 63, 0.05);
  color: var(--gold);
}
.action-card.-rooms-premium.action-card--split > .action-card__cta:hover {
  background: rgba(255, 210, 63, 0.12);
  border-style: solid;
}
