/* ============================================================
   MayGame.online — Editorial component styles
   Loaded after style.css. Adds the components used by the
   review, article, collection and policy pages.
   ============================================================ */

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Page header band ---------- */
.page-band {
  padding: 44px 0 8px;
}
.page-band__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}
.page-band__title {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 14px;
}
.page-band__lede {
  color: var(--text-soft);
  font-size: 17px;
  max-width: 780px;
}

/* ---------- Editorial callout / disclosure ---------- */
.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  background: rgba(93, 138, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}
.callout strong { color: var(--text); }
.callout--muted {
  border-left-color: var(--text-muted);
  background: rgba(127, 136, 179, 0.08);
}

/* ---------- Score block ---------- */
.score-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.score-ring {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: conic-gradient(var(--accent) calc(var(--score) * 1%), rgba(255,255,255,0.10) 0);
  position: relative;
}
.score-ring::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--bg-card);
}
.score-ring__value {
  position: relative;
  z-index: 1;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
}
.score-ring__value small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: 3px;
}
.score-legend {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
}
.score-legend strong { color: var(--text); display: block; font-size: 15px; margin-bottom: 2px; }

.score-bars { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.score-bar__head {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-soft);
  margin-bottom: 4px;
}
.score-bar__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  overflow: hidden;
}
.score-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--gradient-3);
}

/* ---------- Pros / cons ---------- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 22px 0;
}
.pros-cons__col {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  background: var(--bg-elevated);
}
.pros-cons__col h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pros-cons__col--pro h3 { color: var(--success); }
.pros-cons__col--con h3 { color: var(--danger); }
.pros-cons__col ul { display: flex; flex-direction: column; gap: 9px; }
.pros-cons__col li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.6;
}
.pros-cons__col li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}
.pros-cons__col--pro li::before { content: '+'; color: var(--success); }
.pros-cons__col--con li::before { content: '\2013'; color: var(--danger); }

/* ---------- Numbered tip list ---------- */
.tip-list {
  counter-reset: tip;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 6px 0 4px;
}
.tip-list li {
  counter-increment: tip;
  position: relative;
  padding-left: 44px;
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.7;
  min-height: 30px;
}
.tip-list li::before {
  content: counter(tip);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(93, 138, 255, 0.16);
  color: var(--primary-hover);
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
}

/* ---------- FAQ (native details) ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 46px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform var(--transition);
}
.faq-item[open] summary::after { content: '\2013'; }
.faq-item__body {
  padding: 0 18px 16px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.75;
}

/* ---------- Section block inside a page ---------- */
.block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  margin-bottom: 18px;
}
.block > h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.block > h2:first-child { margin-top: 0; }
.block p { color: var(--text-soft); font-size: 15px; line-height: 1.75; margin-bottom: 12px; }
.block p:last-child { margin-bottom: 0; }

/* ---------- Meta chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-soft);
}
.chip--score {
  background: rgba(255, 182, 72, 0.12);
  border-color: rgba(255, 182, 72, 0.35);
  color: var(--accent-soft);
  font-weight: 700;
}

/* ---------- Article cards ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  color: var(--text);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.article-card__cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}
.article-card__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}
.article-card__excerpt {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}
.article-card__meta {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* ---------- Article page ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
  padding-bottom: 32px;
}
.article-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 38px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-soft);
}
.article-body > p:first-of-type { font-size: 17.5px; color: var(--text); }
.article-body h2 {
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  margin: 34px 0 12px;
  line-height: 1.25;
}
.article-body h3 {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 8px;
}
.article-body p { margin-bottom: 16px; }
.article-body ul,
.article-body ol { margin: 0 0 18px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text); }
.article-body a { color: var(--primary-hover); text-decoration: underline; }
.article-body blockquote {
  border-left: 3px solid var(--primary);
  background: rgba(93, 138, 255, 0.07);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
  font-size: 15.5px;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14.5px;
}
.article-body th,
.article-body td {
  border: 1px solid var(--border);
  padding: 10px 13px;
  text-align: left;
}
.article-body th { background: var(--bg-elevated); color: var(--text); font-weight: 700; }

.article-head { padding: 32px 0 18px; }
.article-head__cat {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.article-head__title {
  font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.article-head__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}
.article-head__meta strong { color: var(--text-soft); font-weight: 600; }

.sidebar-sticky { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 18px; }
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.toc h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 700;
}
.toc ol { display: flex; flex-direction: column; gap: 9px; counter-reset: toc; }
.toc li { counter-increment: toc; font-size: 14px; }
.toc a { color: var(--text-soft); display: flex; gap: 8px; }
.toc a::before {
  content: counter(toc);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 12px;
  flex: 0 0 auto;
  padding-top: 2px;
}
.toc a:hover { color: var(--accent); }

.author-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.7;
}
.author-box h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 700;
}
.author-box strong { color: var(--text); display: block; margin-bottom: 4px; font-size: 14.5px; }

/* ---------- Collection ---------- */
.collection {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 26px;
}
.collection__head { margin-bottom: 18px; }
.collection__title {
  font-size: 25px;
  font-weight: 800;
  margin-bottom: 6px;
}
.collection__sub {
  color: var(--accent-soft);
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 14px;
}
.collection__intro {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
  max-width: 900px;
}
.collection__foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---------- Related links list ---------- */
.link-list { display: flex; flex-direction: column; gap: 12px; }
.link-list a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.55;
}
.link-list a:hover { color: var(--accent); }
.link-list a::before {
  content: '\2192';
  color: var(--primary);
  flex: 0 0 auto;
  font-weight: 700;
}

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.stat-card strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}
.stat-card span { font-size: 13px; color: var(--text-muted); }

/* ---------- Detail page additions ---------- */
.review-summary {
  font-size: 16.5px;
  color: var(--text);
  line-height: 1.75;
  font-weight: 500;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.detail-sections { display: flex; flex-direction: column; }
.section-anchor { scroll-margin-top: 90px; }

/* ---------- Policy page ---------- */
.policy-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding-bottom: 40px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .article-layout,
  .detail-layout,
  .policy-layout { grid-template-columns: 1fr; }
  .sidebar-sticky { position: static; }
  .pros-cons { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .article-body { padding: 24px 20px; }
  .collection { padding: 20px; }
  .article-grid { grid-template-columns: 1fr; }
  .block { padding: 20px; }
  .page-band { padding: 30px 0 4px; }
  .pros-cons { gap: 14px; }
}