/* ═══════════════════════════════════════════════════════
   MATCH PREVIEWS ARCHIVE (/pronosticos/) — mpar- prefix
   Standalone stylesheet, enqueued only by
   archive-ai-match-previews.php. Reuses the --mp-* design
   tokens (mp-variables.css, shipped in the default stylesheet).
   ═══════════════════════════════════════════════════════ */

/* ── Hero ── */
.mpar-hero {
  background: var(--mp-gradient);
  padding: 40px 0 32px;
  position: relative;
  overflow: hidden;
}

.mpar-hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.mpar-hero::after {
  content: ''; position: absolute; bottom: -60px; left: -40px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(233,30,144,0.15);
}

.mpar-hero-inner {
  max-width: var(--mp-max);
  margin: 0 auto;
  padding: 0 16px;
  position: relative; z-index: 1;
}

@media (min-width: 768px) { .mpar-hero-inner { padding: 0 24px; } }

.mpar-hero h1 {
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 900;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.15;
}

.mpar-hero-intro {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  max-width: 720px;
}

.mpar-hero-intro p { margin: 0 0 8px; }

/* ── Page body ── */
.mpar-wrap {
  max-width: var(--mp-max);
  margin: 0 auto;
  padding: 28px 16px 64px;
}

@media (min-width: 768px) { .mpar-wrap { padding: 32px 24px 72px; } }

/* ── Sport pills ── */
.mpar-pills {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 22px; padding: 0;
}

.mpar-pills a {
  display: inline-block;
  font-family: 'Roboto Flex', sans-serif;
  font-size: 13px; font-weight: 600;
  color: var(--mp-text);
  background: var(--mp-white);
  border: 1px solid var(--mp-border);
  border-radius: 20px;
  padding: 7px 16px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.mpar-pills a:hover { border-color: var(--mp-purple); color: var(--mp-purple); }

.mpar-pills a.is-active {
  background: var(--mp-gradient);
  border-color: transparent;
  color: #fff;
}

/* ── Heading bar (title + league select) ── */
.mpar-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  margin: 0 0 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mp-border);
}

.mpar-bar h2 {
  font-family: 'Work Sans', sans-serif;
  font-size: 21px; font-weight: 700;
  color: var(--mp-text);
  margin: 0;
}

.mpar-select label {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--mp-muted);
  margin-right: 8px;
}

.mpar-select select {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 14px;
  color: var(--mp-text);
  background: var(--mp-white);
  border: 1px solid var(--mp-border);
  border-radius: 8px;
  padding: 8px 12px;
  max-width: 260px;
}

/* ── Cards grid ── */
.mpar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.mpar-card {
  background: var(--mp-white);
  border: 1px solid var(--mp-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(14,19,26,0.06);
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex; flex-direction: column;
}

.mpar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(45,31,138,0.14);
}

.mpar-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.mpar-card-media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.mpar-card-media::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; top: 30%;
  background: linear-gradient(to bottom, rgba(14,4,45,0) 0%, rgba(14,4,45,0.85) 100%);
}

.mpar-card-teams {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
}

.mpar-card-flags { display: flex; flex-shrink: 0; }

.mpar-card-flags span {
  width: 34px; height: 34px;
  border-radius: 50%;
  background-color: #fff;
  background-size: 22px 22px;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.mpar-card-flags span + span { margin-left: -10px; }

.mpar-card-title {
  font-family: 'Work Sans', sans-serif;
  font-size: 15px; font-weight: 700; line-height: 1.3;
  color: #fff;
  text-decoration: none;
}

.mpar-card-title:hover { color: #fff; text-decoration: underline; }

.mpar-card-title small {
  display: block;
  font-family: 'Roboto Flex', sans-serif;
  font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}

.mpar-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  margin-top: auto;
}

.mpar-card-league {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--mp-purple);
  background: rgba(123,47,247,0.08);
  border-radius: 20px;
  padding: 4px 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 55%;
}

.mpar-card-time {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 12px; font-weight: 600;
  color: var(--mp-muted);
  text-align: right;
}

/* Finished matches: muted card + badge-like time */
.mpar-card.is-finished .mpar-card-media img { filter: grayscale(1); opacity: 0.75; }
.mpar-card.is-finished .mpar-card-league { color: var(--mp-muted); background: rgba(107,114,128,0.1); }
.mpar-card.is-finished .mpar-card-time { color: var(--mp-loss); }

/* Empty state */
.mpar-empty {
  padding: 48px 20px;
  text-align: center;
  font-family: 'Roboto Flex', sans-serif;
  color: var(--mp-muted);
  border: 1px dashed var(--mp-border);
  border-radius: 14px;
}

/* ── Pagination ── */
.mpar-pagination {
  list-style: none;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px;
  margin: 36px 0 0; padding: 0;
}

.mpar-pagination a,
.mpar-pagination span {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 14px; font-weight: 600;
  min-width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px;
  border-radius: 10px;
  text-decoration: none;
}

.mpar-pagination a {
  color: var(--mp-text);
  background: var(--mp-white);
  border: 1px solid var(--mp-border);
  transition: color 0.15s, border-color 0.15s;
}

.mpar-pagination a:hover { color: var(--mp-purple); border-color: var(--mp-purple); }

.mpar-pagination .is-current {
  background: var(--mp-gradient);
  color: #fff;
}

.mpar-pagination .mpar-gap { color: var(--mp-muted); border: none; }

/* ── Optional SEO content below the grid ──
   Typography mirrors the article body (.content-block, content-block.css)
   so the block reads like any other Relevo article: Helvetica 16/18px,
   line-height 1.6, 18px below headings and paragraphs, disc bullets with
   brand-colored markers. Headings keep their UA default top margin, same
   as in the articles. */
.mpar-content {
  max-width: 720px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--mp-border);
}

.mpar-content p {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 18px;
}

.mpar-content h2,
.mpar-content h3,
.mpar-content h4 { margin-bottom: 18px; }

.mpar-content ul,
.mpar-content ol { margin: 0 0 20px 24px; padding: 0; }

.mpar-content ul { list-style: disc; }
.mpar-content ol { list-style: decimal; }

.mpar-content li {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 6px; padding-left: 4px;
  list-style: inherit;
}

.mpar-content li::marker { color: var(--color-brand); }

.mpar-content a { color: var(--color-brand); text-decoration: underline; text-underline-offset: 2px; }
.mpar-content a:hover { color: var(--color-brand-light); }

.mpar-content strong { font-weight: 700; }

@media (min-width: 768px) {
  .mpar-content p,
  .mpar-content li { font-size: 18px; }
}

/* ── atf-primary header — font alignment ──
   /pronosticos/ renders on the "default" CSS module chain (body 'Roboto Flex',
   h1/h2 'Work Sans'), but the atf-primary design is authored against the
   redesign chain, whose base uses the system font stack. The atf-primary
   elements declare no font-family of their own, so without this they inherit
   the default chain's fonts. Pin the whole block to the same system stack the
   redesign template (/dev/atfs/) uses so the h1/title, competition heading,
   deck and dropdown match. Descendant selectors (0,2,0) beat the default
   chain's element rules on h1/h2/a (0,0,1). */
.atf-primary,
.atf-primary .atf-title,
.atf-primary .atf-deck,
.atf-primary .comp-title,
.atf-primary .comp-label,
.atf-primary .comp-dd-btn,
.atf-primary .comp-dd-item {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
