/* Hero teasers shelf — 5 mini-cards horizontales debajo del hero
 * match-of-day. Patrón Claude Design Home-Remix: una "subnav editorial"
 * que da varios atajos rápidos a contenido relevante del día.
 *
 * Layout: grid 5-col en ≥1200px (laptop+) y horizontal scroll en
 * <1200px (no debería verse porque la home desktop es opt-in, pero
 * está por seguridad).
 *
 * Cada card tiene un gradient sutil distinto por tipo (next-round /
 * last-results / top-scorers / standings-top / predictions) para que
 * sean reconocibles de un vistazo.
 */

@layer components {
  .hero-shelf {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 10px;
  }

  .hero-shelf__card {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid rgb(255 255 255 / 8%);
    background:
      linear-gradient(135deg, rgb(255 255 255 / 4%) 0%, rgb(255 255 255 / 0%) 50%),
      var(--color-surface);
    color: var(--color-text);
    text-decoration: none;
    min-width: 0;
    overflow: hidden;
    transition:
      transform var(--duration-fast) var(--easing-default),
      border-color var(--duration-fast) var(--easing-default);
  }

  @media (hover: hover) {
    .hero-shelf__card:hover {
      transform: translateY(-2px);
      border-color: rgb(255 255 255 / 18%);
    }
  }

  .hero-shelf__card:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
  }

  /* Per-type accent: a left-side colored bar (3px) + a faint matching
     glow on the top-left corner. Names neutral (next-round, etc.) so
     uBlock doesn't strip these. */
  .hero-shelf__card--next-round {
    box-shadow: inset 3px 0 0 var(--color-accent);
  }

  .hero-shelf__card--last-results {
    box-shadow: inset 3px 0 0 var(--color-accent-secondary);
  }

  .hero-shelf__card--top-scorers {
    box-shadow: inset 3px 0 0 var(--color-rating-elite);
  }

  .hero-shelf__card--standings-top {
    box-shadow: inset 3px 0 0 var(--color-zone-champions);
  }

  .hero-shelf__card--predictions {
    box-shadow: inset 3px 0 0 var(--color-purple);
  }

  .hero-shelf__card-eyebrow {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-text-muted);
  }

  .hero-shelf__card-headline {
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-shelf__card-lines {
    list-style: none;
    padding: 0;
    margin: var(--space-2) 0 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .hero-shelf__card-line {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--color-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }

  /* On the wider breakpoint the shelf grows a bit (more horizontal
     breathing room since the shell hits its max-width). */
  @media (width >= 1600px) {
    .hero-shelf {
      gap: var(--space-4);
    }

    .hero-shelf__card {
      padding: var(--space-4) var(--space-5);
    }

    .hero-shelf__card-headline {
      font-size: 16px;
    }
  }
}
