/* ============================================
   Auto Content Engine - Marcador article components
   Shipped by the plugin; enqueued only on marcador-template single posts.
   Mirrors the marcadorint dark theme tokens (#0f1525 / #161d33 / #e8112a /
   #f5b431 / #4d8aff / #34c759). Keep in sync if the theme palette changes.
   ============================================ */

/* --- Stat Cards Row --- */
.mi-stats-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.mi-stat-card {
  flex: 1 1 180px;
  background: linear-gradient(135deg, #161d33 0%, #1f2742 100%);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  color: #eef0f7;
  border-left: 4px solid #e8112a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mi-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}
.mi-stat-card .mi-stat-number {
  font-size: 2.4em;
  font-weight: 800;
  line-height: 1.1;
  color: #e8112a;
}
.mi-stat-card .mi-stat-label {
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: 6px;
  color: #a4abc5;
}
.mi-stat-card.gold .mi-stat-number { color: #f5b431; }
.mi-stat-card.gold              { border-left-color: #f5b431; }
.mi-stat-card.blue .mi-stat-number { color: #4d8aff; }
.mi-stat-card.blue              { border-left-color: #4d8aff; }
.mi-stat-card.green .mi-stat-number { color: #34c759; }
.mi-stat-card.green             { border-left-color: #34c759; }

/* --- Custom Tables --- */
.mi-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  background: #161d33 !important;
}
.mi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
  min-width: 500px;
  color: #eef0f7 !important;
  background: #161d33 !important;
}
.mi-table thead tr {
  background: linear-gradient(90deg, #0a0f1c, #1f2742) !important;
  color: #fff !important;
}
.mi-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.82em;
  letter-spacing: 0.8px;
  color: #fff !important;
  border-bottom: 2px solid #e8112a;
  background: transparent !important;
}
.mi-table tbody tr {
  border-bottom: 1px solid #2a3252 !important;
  transition: background 0.15s;
  background: #161d33 !important;   /* odd rows */
  color: #eef0f7 !important;
}
.mi-table tbody tr:nth-child(even) {
  background: #1a223b !important;   /* even rows - slightly different shade */
}
.mi-table tbody tr:hover,
.mi-table tbody tr:nth-child(even):hover {
  background: rgba(232, 17, 42, 0.12) !important;
}
.mi-table tbody td {
  padding: 12px 16px;
  color: #eef0f7 !important;
  background: transparent !important;
}
.mi-table .mi-highlight-row {
  background: rgba(245, 180, 49, 0.15) !important;
  font-weight: 600;
  color: #fff !important;
}
.mi-table .mi-pos {
  font-weight: 700;
  color: #eef0f7 !important;
  width: 40px;
  text-align: center;
}
.mi-table .mi-champion { color: #f5b431 !important; }
.mi-table .mi-ucl       { color: #4d8aff !important; }
.mi-table .mi-relegate  { color: #e8112a !important; }

/* --- SVG Chart Container --- */
.mi-chart-wrap {
  margin: 28px 0;
  padding: 20px;
  background: #161d33;
  border-radius: 12px;
  border: 1px solid #2a3252;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.mi-chart-wrap .mi-chart-title {
  font-size: 1.1em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.mi-chart-wrap svg {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

/* --- Progress Bars --- */
.mi-progress-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.mi-progress-item {
  margin-bottom: 16px;
}
.mi-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.92em;
  font-weight: 600;
  margin-bottom: 5px;
  color: #eef0f7;
}
.mi-progress-bar {
  height: 24px;
  background: #1f2742;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid #2a3252;
}
.mi-progress-fill {
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(90deg, #e8112a, #ff5468);
  transition: width 0.6s ease;
  display: flex;
  align-items: center;
  padding-left: 10px;
  color: #fff;
  font-size: 0.78em;
  font-weight: 600;
}
.mi-progress-fill.blue {
  background: linear-gradient(90deg, #1565c0, #4d8aff);
}
.mi-progress-fill.gold {
  background: linear-gradient(90deg, #e6a800, #f5b431);
  color: #1a1a2e;
}
.mi-progress-fill.green {
  background: linear-gradient(90deg, #2e7d32, #34c759);
}

/* --- Highlight Box / Callout --- */
.mi-callout {
  border-left: 5px solid #e8112a !important;
  background: #1a2238 !important;       /* solid dark surface, no light gradient */
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 10px 10px 0;
  font-size: 0.95em;
  line-height: 1.7;
  color: #eef0f7 !important;
}
.mi-callout.blue {
  border-left-color: #4d8aff !important;
  background: #18223c !important;
}
.mi-callout.green {
  border-left-color: #34c759 !important;
  background: #182a22 !important;
}
.mi-callout p,
.mi-callout li,
.mi-callout span { color: #eef0f7 !important; }
.mi-callout strong { color: #fff !important; }
.mi-callout a {
  color: #f5b431;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.mi-callout a:hover { color: #e8112a; }

/* --- Callout Box (titled) --- */
.mi-callout-box {
  background: #161d33;
  border: 1px solid #2a3252;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
  color: #eef0f7;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.mi-callout-box h3 {
  margin-top: 0;
  color: #fff;
  font-size: 1.05em;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.mi-callout-box p { color: #eef0f7; margin-bottom: 0; }

/* --- Timeline --- */
.mi-timeline {
  position: relative;
  padding-left: 30px;
  margin: 28px 0;
}
.mi-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #2a3252;
  border-radius: 2px;
}
.mi-timeline-item {
  position: relative;
  margin-bottom: 24px;
  padding-left: 20px;
}
.mi-timeline-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: #e8112a;
  border-radius: 50%;
  border: 3px solid #0f1525;
  box-shadow: 0 0 0 2px #e8112a;
}
.mi-timeline-date {
  font-size: 0.82em;
  font-weight: 700;
  color: #e8112a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mi-timeline-content {
  font-size: 0.95em;
  line-height: 1.6;
  margin-top: 4px;
  color: #eef0f7;
}
.mi-timeline-content strong { color: #fff; }

/* --- Versus Card --- */
.mi-vs-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  color: #fff;
  border-radius: 14px;
  padding: 20px;
  margin: 16px 0;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.mi-vs-team {
  flex: 1;
  font-size: 1.1em;
  font-weight: 700;
}
.mi-vs-badge {
  background: #e8112a;
  color: #fff;
  font-weight: 800;
  font-size: 1.3em;
  padding: 8px 16px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(232, 17, 42, 0.4);
}
.mi-vs-date {
  font-size: 0.78em;
  opacity: 0.7;
  margin-top: 4px;
}

/* --- Badge/Tag --- */
.mi-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mi-tag.red   { background: rgba(232, 17, 42, 0.20); color: #ff5468; }
.mi-tag.blue  { background: rgba(77, 138, 255, 0.20); color: #80a8ff; }
.mi-tag.green { background: rgba(52, 199, 89, 0.20); color: #66db8c; }
.mi-tag.gold  { background: rgba(245, 180, 49, 0.20); color: #ffd070; }

/* --- X (Twitter) account-timeline embed wrapper --- */
.mi-x-embed {
  margin: 28px auto;
  max-width: 550px;
  background: #161d33;
  border: 1px solid #2a3252;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.mi-x-embed .twitter-timeline {
  width: 100% !important;
}
/* Fallback link styling before widgets.js upgrades the anchor into an iframe */
.mi-x-embed > a {
  display: block;
  padding: 16px 18px;
  color: #4d8aff;
  font-weight: 600;
  text-decoration: none;
}
.mi-x-embed > a:hover { color: #f5b431; }

/* --- Real quote from the source article (v2) --- */
.entry-content blockquote.mi-quote,
blockquote.mi-quote {
  margin: 26px 0;
  padding: 18px 22px 16px;
  background: #11182b;
  border: 1px solid #2a3252;
  border-left: 4px solid #f5b431;
  border-radius: 10px;
  font-style: normal;
  position: relative;
}
blockquote.mi-quote::before {
  content: "\201C";
  position: absolute;
  top: 2px;
  right: 14px;
  font-family: Georgia, serif;
  font-size: 52px;
  line-height: 1;
  color: rgba(245, 180, 49, 0.35);
}
blockquote.mi-quote p {
  margin: 0 0 8px;
  color: #eef0f7;
  font-size: 1.05em;
  line-height: 1.6;
  font-style: italic;
}
blockquote.mi-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.82em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #f5b431;
}
blockquote.mi-quote cite::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: #f5b431;
  vertical-align: middle;
  margin-right: 8px;
}

/* --- Hub closer paragraph (v2) --- */
.ace-hub-link {
  margin-top: 24px;
  padding: 14px 18px;
  background: #11182b;
  border: 1px solid #2a3252;
  border-radius: 10px;
  font-size: 0.95em;
  color: #a4abc5;
}
.ace-hub-link a {
  color: #f5b431;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.ace-hub-link a:hover { color: #e8112a; }

/* --- Tweet blockquote fallback (before widgets.js hydrates) --- */
.ace-x-embed blockquote.twitter-tweet {
  margin: 0 auto;
  padding: 14px 16px;
  color: #eef0f7;
  font-size: 0.95em;
  line-height: 1.55;
  border: 0;
  background: transparent;
}
.ace-x-embed blockquote.twitter-tweet a {
  color: #4d8aff;
  text-decoration: none;
}
.ace-x-embed blockquote.twitter-tweet a:hover { color: #f5b431; }
.ace-x-embed .twitter-tweet-rendered { margin: 0 auto !important; }

/* --- Generic links inside marcador components --- */
.entry-content .mi-callout a,
.entry-content .mi-table a {
  color: #f5b431;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .mi-stats-row { flex-direction: column; }
  .mi-stat-card { flex-basis: 100%; }
  .mi-vs-card { flex-direction: column; gap: 8px; }
  .mi-vs-team { font-size: 0.95em; }
  .mi-x-embed { max-width: 100%; }
}

/* --- Key points "Claves" box --- */
.ace-keypoints {
  background: #11182b;
  border: 1px solid #2a3252;
  border-left: 4px solid #e8112a;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 22px 0;
}
.ace-keypoints__h {
  display: block;
  font-family: "Bebas Neue", "Oswald", sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-size: 16px;
  color: #f5b431;
  margin-bottom: 6px;
}
.ace-keypoints ul { margin: 0; padding-left: 18px; }
.ace-keypoints li { color: #eef0f7; margin: 4px 0; line-height: 1.45; }

/* --- Source attribution line --- */
.ace-fuentes {
  margin: 26px 0 0;
  padding-top: 12px;
  border-top: 1px solid #2a3252;
  font-size: 13px;
  color: #a4abc5;
}
.ace-fuentes strong { color: #eef0f7; }

/* --- Related YouTube embed (responsive 16:9) --- */
.ace-youtube { margin: 22px 0; }
.ace-video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}
.ace-video-embed iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: 0;
}
