/* ARGPT :: autotrade followers. The LIVE UPDATE strip (landing + /autotrade/)
   and the /autotrade/ cards. Builds on site.css (tokens) and landing.css
   (.sec, .label, .h2, .bot-facts, .risk, .btn). Green and red carry meaning
   (average up / down); everything else stays neutral. */

/* ------------------------------------------------------------ strip */

.at-strip { list-style: none; display: grid; gap: 10px; margin-top: 24px; }
.at-row {
  display: grid; align-items: center; gap: 8px 12px;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, max-content) minmax(0, max-content);
  padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface);
}
.at-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--accent);
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--accent-line); background: var(--deep);
  white-space: nowrap;
}
.at-badge i, .at-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(57, 217, 138, 0.6);
  animation: at-pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes at-pulse {
  0% { box-shadow: 0 0 0 0 rgba(57, 217, 138, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(57, 217, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(57, 217, 138, 0); }
}
@media (prefers-reduced-motion: reduce) { .at-badge i, .at-dot { animation: none; } }
.at-name { font-size: 16px; font-weight: 700; letter-spacing: -0.015em; color: var(--text); }
.at-name:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.at-sep { display: none; }
.at-stale { grid-column: 1 / -1; }
.at-row.skeleton .at-chip, .at-row > .at-chip.is-empty:only-of-type { grid-column: 3 / -1; }
.at-chip {
  display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px;
  padding: 5px 12px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 14px;
}
.at-chip b { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
html[lang=ar] .at-chip b, html[lang=zh] .at-chip b { letter-spacing: 0.02em; }
.at-n { font-weight: 600; color: var(--text); }
.at-avg { font-weight: 700; }
.at-chip.is-empty { color: var(--text-faint); }
.at-stale { font-size: 12.5px; color: var(--gold); }
.at-fresh-line, [data-at-fresh] { color: var(--text-faint); font-size: 13.5px; }
p[data-at-fresh] { margin-top: 12px; }
.at-row .pos, .at-card .pos { color: var(--win); }
.at-row .neg, .at-card .neg { color: var(--loss); }
.at-row .nil, .at-card .nil { color: var(--text-dim); }
.at-name:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------ /autotrade/ */

.at-hero { padding-bottom: 8px; }
.at-h1 {
  font-size: clamp(34px, 5.6vw, 60px);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.045em;
  margin: 20px 0 18px; max-width: 20ch; text-wrap: balance;
}
.at-fresh-line { display: flex; align-items: center; gap: 9px; margin-top: 18px; }

.at-totals {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  margin-top: 26px; max-width: 760px;
}
.at-totals div {
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
}
.at-totals dt { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
html[lang=ar] .at-totals dt, html[lang=zh] .at-totals dt { letter-spacing: 0.02em; }
.at-totals dd { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.15; margin-top: 4px; }
html[dir=rtl] .at-totals dd { text-align: right; }

.at-sec { padding-top: 56px; }
.at-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.at-card {
  display: flex; flex-direction: column;
  padding: 24px 22px 20px;
  border: 1px solid var(--line); border-radius: 24px;
  background: var(--surface);
  scroll-margin-top: calc(var(--topbar-h, 64px) + 16px);
}
.at-card.is-focus { border-color: var(--accent-line); }
.at-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.at-card-head h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.25; }
.at-kind { font-size: 13px; color: var(--text-faint); margin-top: 2px; }
.at-what { color: var(--text-dim); font-size: 15px; margin: 12px 0 16px; }

.at-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.at-g { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.at-g-h { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
html[lang=ar] .at-g-h, html[lang=zh] .at-g-h { letter-spacing: 0.02em; }
.at-g-n { font-size: 30px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.at-g-avg { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; margin-top: 10px; }
.at-g-k { font-size: 12.5px; color: var(--text-faint); line-height: 1.4; }
.at-g-empty { font-size: 14px; color: var(--text-faint); }
html[dir=rtl] .at-g-n, html[dir=rtl] .at-g-avg { text-align: right; }

[data-at-card-fresh].is-stale { color: var(--gold); }
.at-links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: auto; }

.at-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.at-way { padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.at-way h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.at-way p { color: var(--text-dim); font-size: 15px; }

.at-method { list-style: none; display: grid; gap: 12px; margin: 8px 0 26px; }
.at-method li {
  position: relative; padding-inline-start: 22px;
  color: var(--text-dim); font-size: 15.5px; line-height: 1.6;
}
.at-method li::before {
  content: ''; position: absolute; inset-inline-start: 2px; top: 0.7em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong);
}

/* ------------------------------------------------------------ phones */

@media (max-width: 760px) {
  .at-cards, .at-ways { grid-template-columns: 1fr; }
  .at-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .at-totals div { padding: 12px 12px; border-radius: 14px; }
  .at-totals dd { font-size: 26px; }
  .at-totals dt { font-size: 10.5px; letter-spacing: 0.04em; }
  .at-row { padding: 12px 14px; grid-template-columns: auto minmax(0, 1fr); }
  .at-row .at-chip { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .at-groups { grid-template-columns: 1fr; }
  .at-card { padding: 20px 16px 18px; }
}
