/* ============================================================================
   Delta Executor — components.css
   Script cards, injector cards, tokens/chips, code listings, anchors, FAQ,
   install steps, feature lists, platform tiles.
   ========================================================================== */

/* ── Card grid ─────────────────────────────────────────────────────────── */
.feed {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  align-items: start;
}
.feed--wide { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }

/* ── Script card (.dxc) — full border + hover lime; flagship = dashed lime
   border + ">_ ТОП" mono label. Deliberately NOT a left-border card (that is
   deltascripts' motif). ────────────────────────────────────────────────── */
.dxc {
  position: relative;
  background: var(--plate); border: 1px solid var(--edge); border-radius: var(--rad-lg);
  padding: 18px; transition: border-color .15s, transform .12s;
}
.dxc:hover { border-color: var(--volt); transform: translateY(-1px); }
.dxc--top { border: 1px dashed var(--volt); box-shadow: 0 0 0 1px rgba(46,155,240,.16); }
.dxc__flag {
  position: absolute; top: -11px; left: 16px;
  font-family: var(--ff-code); font-weight: 500; font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--on-volt); background: var(--volt);
  padding: 3px 9px; border-radius: var(--rad-sm);
}
.dxc__games { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; }
.dxc__title { font-size: 19px; margin: 0 0 10px; line-height: 1.25; }
.dxc__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.dxc__shots { display: grid; gap: 8px; margin: 0 0 12px; }
.dxc__shot { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--edge); border-radius: var(--rad-md); background: var(--pit); }
.dxc__desc { color: var(--faint); margin: 0 0 12px; }
.dxc__perks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 4px; }
.dxc__perks li { position: relative; padding-left: 20px; font-size: 14px; }
.dxc__perks li::before { content: '>'; position: absolute; left: 0; color: var(--volt); font-family: var(--ff-code); font-weight: 500; }
.dxc__dl { width: 100%; margin-bottom: 12px; }

/* ── Tokens (chips) ────────────────────────────────────────────────────── */
.token {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: var(--rad-sm); font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; padding: 4px 8px; line-height: 1.2;
  background: var(--volt-lo); color: var(--volt);
}
.token--game { background: transparent; border: 1px solid var(--edge); color: var(--fore); text-transform: none; font-weight: 500; font-size: 12px; }
.token--ver { font-family: var(--ff-code); text-transform: none; letter-spacing: 0; background: transparent; border: 1px solid var(--volt); }
.token--key { background: var(--volt); color: var(--on-volt); }
.token--live { background: transparent; border: 1px solid rgba(46,155,240,.5); color: var(--volt); }
.token--warn { background: transparent; border: 1px solid rgba(242,185,75,.5); color: var(--amber); }

/* ── Feature list ──────────────────────────────────────────────────────── */
.perks { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.perks--grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.perks li { position: relative; padding-left: 24px; color: var(--fore); }
.perks li::before { content: '>_'; position: absolute; left: 0; color: var(--volt); font-family: var(--ff-code); font-weight: 500; font-size: 13px; }

/* ── Platform tiles ────────────────────────────────────────────────────── */
.devices {
  display: grid; gap: 12px; margin: 8px 0 8px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.device {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--plate); border: 1px solid var(--edge); border-radius: var(--rad-lg);
  padding: 16px 18px; transition: border-color .15s, transform .12s;
}
.device:hover { border-color: var(--volt); transform: translateY(-2px); }
.device__name { font-family: var(--ff-head); font-size: 15px; letter-spacing: .3px; }
.device__go { color: var(--volt); font-weight: 600; font-size: 14px; white-space: nowrap; }

/* ── Install / ordered steps ───────────────────────────────────────────── */
.setup { list-style: none; padding: 0; margin: 0 0 18px; counter-reset: step; display: grid; gap: 12px; }
.setup__step {
  position: relative; padding: 14px 16px 14px 52px; counter-increment: step;
  background: var(--plate); border: 1px solid var(--edge); border-radius: var(--rad-lg); color: var(--fore);
}
.setup__step::before {
  content: counter(step); position: absolute; left: 14px; top: 12px;
  width: 26px; height: 26px; border-radius: var(--rad-sm);
  background: var(--volt-lo); color: var(--volt); font-family: var(--ff-code); font-weight: 500;
  display: grid; place-items: center; font-size: 14px;
}

/* ── Code listing — pit background, a 2px lime rule down the left edge, a bar
   with the "Lua" label + Copy button. ──────────────────────────────────── */
.listing { background: var(--pit); border: 1px solid var(--edge); border-left: 2px solid var(--volt); border-radius: var(--rad-lg); overflow: hidden; }
.listing__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: rgba(255,255,255,.02); border-bottom: 1px solid var(--edge);
}
.listing__lang { font-family: var(--ff-code); font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.listing__copy {
  font-family: var(--ff-text); font-size: 13px; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--fore); border: 1px solid var(--edge);
  border-radius: var(--rad-sm); padding: 4px 12px; transition: color .15s, border-color .15s;
}
.listing__copy:hover { color: var(--volt); border-color: var(--volt); }
.listing__copy.copied { color: var(--volt); border-color: var(--volt); }
.listing__body {
  margin: 0; padding: 14px; font-family: var(--ff-code); font-size: 13px; line-height: 1.6;
  color: var(--fore); white-space: pre-wrap; word-break: break-all; max-height: 230px; overflow: auto;
}

/* ── Anchors (table of contents) ───────────────────────────────────────── */
.anchors {
  background: var(--plate); border: 1px solid var(--edge); border-left: 3px solid var(--volt);
  border-radius: var(--rad-lg); padding: 14px 18px; margin: 0 0 26px;
}
.anchors__label { display: block; font-family: var(--ff-code); font-weight: 500; color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.anchors__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.anchors__list a { color: var(--volt); font-weight: 600; }
.anchors__list a:hover { text-decoration: underline; }

/* ── FAQ (details/summary) ─────────────────────────────────────────────── */
.ask { display: grid; gap: 10px; max-width: 80ch; }
.ask__item { background: var(--plate); border: 1px solid var(--edge); border-radius: var(--rad-lg); overflow: hidden; }
.ask__q { cursor: pointer; padding: 15px 44px 15px 18px; font-family: var(--ff-head); font-size: 16px; list-style: none; position: relative; }
.ask__q::-webkit-details-marker { display: none; }
.ask__q::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--volt); font-family: var(--ff-code); font-size: 20px; line-height: 1; }
.ask__item[open] .ask__q::after { content: '\2013'; }
.ask__a { padding: 0 18px 16px; color: var(--faint); }
.ask__a p { margin: 0; }

/* ── Injector cards (/alternativy/) ────────────────────────────────────── */
.altc { background: var(--plate); border: 1px solid var(--edge); border-radius: var(--rad-lg); padding: 20px; }
.altc:hover { border-color: var(--volt); }
.altc__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.altc__mono { width: 46px; height: 46px; flex: none; border-radius: var(--rad-md); background: var(--volt-lo); color: var(--volt); font-family: var(--ff-head); font-size: 22px; display: grid; place-items: center; }
.altc__id { min-width: 0; }
.altc__name { font-size: 19px; margin: 0; }
.altc__platform { color: var(--faint); font-size: 13px; margin: 2px 0 0; font-family: var(--ff-code); }
.altc__flags { margin-left: auto; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.altc__desc { color: var(--faint); margin: 0 0 12px; }
.altc__perks { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.altc__perks li { position: relative; padding-left: 22px; font-size: 14px; }
.altc__perks li::before { content: '>'; position: absolute; left: 0; color: var(--volt); font-family: var(--ff-code); }
.altc__steps { margin: 0 0 14px; padding-left: 1.2em; color: var(--faint); font-size: 14px; }
.altc__steps li { margin-bottom: 4px; }
.altc__btn { width: 100%; }

/* ── Long-form content (longreads): sub-headings, lead paragraph ──────────── */
.seg h3 { font-family: var(--ff-head); font-weight: 700; font-size: clamp(17px, 2.6vw, 21px); text-transform: none; margin: 26px 0 10px; }
.seg h4 { font-family: var(--ff-head); font-weight: 700; font-size: 16px; text-transform: none; margin: 18px 0 8px; }
.leadp { font-size: 18px; color: var(--fore); }
.seg > ul:not([class]), .seg > ol:not([class]) { display: grid; gap: 8px; color: var(--fore); }
.seg > ul:not([class]) li, .seg > ol:not([class]) li { padding-left: 4px; }

/* ── Breadcrumbs ─────────────────────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; font-size: 13px; color: var(--faint); }
.crumbs__link { color: var(--volt); }
.crumbs__link:hover { text-decoration: underline; }
.crumbs__sep { color: var(--edge); }

/* ── E-E-A-T byline / page meta bar ──────────────────────────────────────── */
.pagemeta {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 22px; padding: 12px 16px;
  background: var(--plate); border: 1px solid var(--edge); border-radius: var(--rad-lg);
  font-size: 13px; color: var(--faint);
}
.pagemeta__item { display: inline-flex; align-items: center; gap: 6px; }
.pagemeta strong { color: var(--fore); font-weight: 600; }

/* ── Content tables (scroll on mobile) ───────────────────────────────────── */
.tablewrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--edge); border-radius: var(--rad-lg); }
.dxtable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.dxtable th, .dxtable td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--edge); vertical-align: top; }
.dxtable thead th { background: rgba(46,155,240,.08); color: var(--fore); font-weight: 600; font-family: var(--ff-text); white-space: nowrap; }
.dxtable tbody tr:last-child td { border-bottom: 0; }
.dxtable td:first-child { color: var(--fore); font-weight: 500; }
.dxtable caption { caption-side: top; text-align: left; color: var(--faint); font-size: 13px; padding: 0 14px 8px; }

/* ── Real screenshots ────────────────────────────────────────────────────── */
.pic { margin: 18px 0; }
.pic__img { width: 100%; height: auto; display: block; border: 1px solid var(--edge); border-radius: var(--rad-lg); background: var(--pit); }
.pic__cap { margin: 8px 2px 0; font-size: 13px; color: var(--faint); }

/* ── Image placeholders (figures for future screenshots) ─────────────────── */
.shotbox { margin: 18px 0; }
.shotbox__frame {
  aspect-ratio: 16 / 9; border: 1px dashed var(--edge); border-radius: var(--rad-lg); background: var(--pit);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--faint); text-align: center; padding: 18px;
}
.shotbox__ico { font-size: 26px; opacity: .7; }
.shotbox__hint { font-family: var(--ff-code); font-size: 12px; letter-spacing: .04em; }
.shotbox__cap { margin: 8px 2px 0; font-size: 13px; color: var(--faint); }
.shotbox__cap b { color: var(--fore); font-weight: 600; }

/* ── Callouts / notes ────────────────────────────────────────────────────── */
.callbox { border: 1px solid var(--edge); border-left: 3px solid var(--volt); border-radius: var(--rad-lg); background: var(--plate); padding: 14px 18px; margin: 18px 0; }
.callbox--warn { border-left-color: var(--amber); }
.callbox__t { display: block; font-weight: 600; color: var(--fore); margin-bottom: 4px; }
.callbox p:last-child { margin-bottom: 0; }

/* ── Glossary / definition list ──────────────────────────────────────────── */
.gloss { display: grid; gap: 10px; margin: 18px 0; }
.gloss__item { background: var(--plate); border: 1px solid var(--edge); border-radius: var(--rad-lg); padding: 12px 16px; }
.gloss__t { font-weight: 600; color: var(--fore); }
.gloss__d { color: var(--faint); margin: 2px 0 0; }

/* ── Pros / cons ─────────────────────────────────────────────────────────── */
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.verdict__col { background: var(--plate); border: 1px solid var(--edge); border-radius: var(--rad-lg); padding: 16px; }
.verdict__col h4 { margin: 0 0 8px; }
.verdict--pro h4 { color: var(--volt); }
.verdict--con h4 { color: var(--amber); }
.verdict__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.verdict__col li { position: relative; padding-left: 20px; font-size: 14px; color: var(--faint); }
.verdict--pro li::before { content: '+'; position: absolute; left: 0; color: var(--volt); font-family: var(--ff-code); font-weight: 700; }
.verdict--con li::before { content: '\2212'; position: absolute; left: 0; color: var(--amber); font-family: var(--ff-code); font-weight: 700; }
@media (max-width: 560px) { .verdict { grid-template-columns: 1fr; } }

/* Ad slot on content pages (gate.css restyles it narrower on the funnel pages). */
.adzone { min-height: 90px; margin: 20px 0; }
.adzone:empty { min-height: 90px; }

@media (max-width: 480px) {
  .feed, .feed--wide { grid-template-columns: 1fr; }
}
