/* ============================================================
   MEA Reviews — SEO Text Canvas
   Long-form SEO prose block for review pages (casino / betting /
   slots / crash games). Kicker + title, structured body with h3
   sub-heads, lists and a highlighted "editor's note" callout, plus
   a pure-CSS "read more" toggle so the tail stays crawlable while
   the page keeps a compact first paint. Light "tech / computer"
   theme, matching top3-cards / category-cards / footer. Tokens are
   scoped to .mea-seo so they won't clash with page :root vars.
   Needs only this stylesheet — no external CSS or JS.
   ============================================================ */

.mea-seo {
  /* ---- Design tokens (mirror of top3-cards / footer) ---- */
  --seo-bg: #ffffff;
  --seo-surface: #f4f4f4;
  --seo-surface-2: #eef2f8;
  --seo-border: #e0e0e0;
  --seo-text: #1f2733;
  --seo-muted: #5b6676;
  --seo-faint: #8a94a6;
  --seo-accent: #0f62fe;      /* electric blue */
  --seo-accent-2: #06b6d4;    /* cyan */

  --seo-radius: 0;
  --seo-radius-sm: 0;
  --seo-space: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);

  --seo-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --seo-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --seo-duration: 200ms;
  --seo-ease: cubic-bezier(0.16, 1, 0.3, 1);

  background: var(--seo-bg);
  color: var(--seo-text);
  font-family: var(--seo-sans);
  padding: var(--seo-space) 0;
}

.mea-seo__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 0.5rem + 2vw, 2.5rem);
}

/* ---------- Heading ---------- */
.mea-seo__head { margin: 0 0 clamp(1.25rem, 1rem + 1vw, 1.9rem); }

.mea-seo__kicker {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--seo-border);
  border-radius: 0;
  background: var(--seo-surface);
  color: var(--seo-faint);
  font-family: var(--seo-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mea-seo__title {
  margin: 0.9rem 0 0;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.14;
}

/* ---------- Prose body ---------- */
.mea-seo__body { font-size: clamp(0.95rem, 0.92rem + 0.25vw, 1.02rem); line-height: 1.72; }

.mea-seo__body > p { margin: 0 0 1.05rem; color: var(--seo-muted); }
.mea-seo__body > p:last-child { margin-bottom: 0; }
.mea-seo__body strong { color: var(--seo-text); font-weight: 700; }

.mea-seo__body a {
  color: var(--seo-accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--seo-accent) 35%, transparent);
  transition: border-color var(--seo-duration) var(--seo-ease);
}
.mea-seo__body a:hover,
.mea-seo__body a:focus-visible { border-bottom-color: var(--seo-accent); }

/* sub-heads carry a small monospace circuit tick */
.mea-seo__subhead {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.9rem 0 0.75rem;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--seo-text);
}
.mea-seo__subhead::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 0;
  background: linear-gradient(135deg, var(--seo-accent), var(--seo-accent-2));
}

/* ---------- Lists ---------- */
.mea-seo__list {
  margin: 0 0 1.05rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.mea-seo__list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--seo-muted);
}
.mea-seo__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: var(--seo-accent);
  box-shadow: none;
}
.mea-seo__list li strong { color: var(--seo-text); }

/* ---------- Editor's note callout ---------- */
.mea-seo__note {
  display: flex;
  gap: 0.8rem;
  margin: 1.5rem 0;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--seo-border);
  border-left: 3px solid var(--seo-accent);
  border-radius: var(--seo-radius-sm);
  background: var(--seo-surface);
}
.mea-seo__note svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  color: var(--seo-accent);
}
.mea-seo__note p { margin: 0; color: var(--seo-muted); font-size: 0.92rem; line-height: 1.6; }
.mea-seo__note strong { color: var(--seo-text); }

/* ---------- Read-more toggle (pure CSS, crawlable) ---------- */
.mea-seo__toggle { position: absolute; opacity: 0; pointer-events: none; }

/* collapsed tail — clipped, but present in the DOM for crawlers */
.mea-seo__more {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 320ms var(--seo-ease);
}
.mea-seo__more > div { min-height: 0; }

.mea-seo__toggle:checked ~ .mea-seo__more { grid-template-rows: 1fr; }

/* fade veil over the collapsed edge */
.mea-seo__fade {
  position: relative;
  margin-top: -3.5rem;
  height: 3.5rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--seo-bg));
  pointer-events: none;
}
.mea-seo__toggle:checked ~ .mea-seo__fade { display: none; }

.mea-seo__morebtn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius-sm);
  background: var(--seo-surface);
  color: var(--seo-accent);
  font-family: var(--seo-sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--seo-duration) var(--seo-ease),
              background var(--seo-duration) var(--seo-ease);
}
.mea-seo__morebtn:hover { border-color: color-mix(in srgb, var(--seo-accent) 45%, var(--seo-border)); }
.mea-seo__morebtn svg { width: 15px; height: 15px; transition: transform var(--seo-duration) var(--seo-ease); }

.mea-seo__morebtn .mea-seo__lessword { display: none; }
.mea-seo__toggle:checked ~ .mea-seo__morebtn .mea-seo__moreword { display: none; }
.mea-seo__toggle:checked ~ .mea-seo__morebtn .mea-seo__lessword { display: inline; }
.mea-seo__toggle:checked ~ .mea-seo__morebtn svg { transform: rotate(180deg); }

.mea-seo__toggle:focus-visible ~ .mea-seo__morebtn {
  outline: 2px solid var(--seo-accent);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .mea-seo__note { flex-direction: column; gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mea-seo__more,
  .mea-seo__morebtn,
  .mea-seo__morebtn svg { transition: none !important; }
}
