/* ==========================================================================
   Steal a Brainrot Scripts — components.css
   Кнопки, pill-бейджи, карточки скриптов (.drop), фильтр, info-карточки,
   цифры, сравнение, шаги. Скруглённые «пузырчатые» формы.
   ========================================================================== */

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1px;
  border-radius: var(--radius);
  padding: 13px 24px;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  border: 2px solid transparent;
  transition: background 0.2s, box-shadow 0.2s, transform 0.06s, border-color 0.2s, color 0.2s;
}
.btn--main {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(240, 41, 91, 0.22);
}
.btn--main:hover {
  background: var(--accent-hot);
  border-color: var(--accent-hot);
  box-shadow: 0 8px 26px rgba(240, 41, 91, 0.38);
  text-decoration: none;
  color: #fff;
  transform: translateY(-1px);
}
.btn--main:active { transform: translateY(1px); }

.btn--wire {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn--wire:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.btn--wide { width: 100%; }

/* Кнопка «Скачать скрипт» — крупная, заметная, с иконкой и свечением */
.btn--grab {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-size: 1.06rem;
  padding: 15px 24px;
  box-shadow: 0 0 0 3px var(--accent-soft), 0 8px 22px rgba(240, 41, 91, 0.24);
}
.btn--grab:hover {
  background: var(--accent-hot);
  border-color: var(--accent-hot);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 0 3px var(--accent-soft), 0 10px 30px rgba(240, 41, 91, 0.42);
  transform: translateY(-1px);
}
.btn--grab:active { transform: translateY(1px); }
.btn__ic { width: 20px; height: 20px; flex-shrink: 0; margin-top: -1px; }

/* --- Badges (pill-shape) ------------------------------------------------- */
.tag {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.4px;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}
.tag--nokey {
  background: var(--lime-soft);
  color: var(--lime);
  border: 1px solid var(--lime-dim);
}

/* --- Filter (chips) ------------------------------------------------------ */
.chips-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 26px;
}
.chip-btn {
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.chip-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.chip-btn.is-on {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(240, 41, 91, 0.28);
}

/* --- Drops grid (script cards) ------------------------------------------ */
.drops {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.drop {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.drop:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

/* Превью-изображение скрипта */
.drop__shot {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-code);
  border-bottom: 1px solid var(--border);
}
.drop__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.drop:hover .drop__img { transform: scale(1.04); }
.drop--star .drop__shot { border-bottom-color: var(--accent); }

/* Тело карточки (всё, кроме превью) */
.drop__main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  padding: 24px 24px 22px;
}
.drop--star {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 34px rgba(240, 41, 91, 0.16);
}
.drop--star::after { /* «TOP» ленточка */
  content: "★ ТОП";
  position: absolute;
  top: 16px; right: -1px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
}

.drop__name {
  font-size: 1.22rem;
  margin: 0 0 12px;
  padding-right: 60px;
}
.drop--star .drop__name { color: var(--text-primary); }

.drop__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.drop__live {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 6px;
}
.drop__live--on { color: var(--lime); }
.drop__checked {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
  letter-spacing: 0.2px;
  margin: 0 0 14px;
}
.drop__desc {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin: 0 0 14px;
}
.drop__feats {
  list-style: none;
  margin: 0 0 18px;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
}
.drop__feats li {
  position: relative;
  padding-left: 24px;
  margin: 8px 0;
  font-size: 0.93rem;
  color: var(--text-primary);
}
.drop__feats li::before {
  content: "💰";
  position: absolute;
  left: 0;
  font-size: 0.85rem;
}
.drop__act { margin-top: auto; }
.drop__act .btn--grab { width: 100%; margin-top: 4px; }
.drop__exec {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 12px 0 0;
  letter-spacing: 0.2px;
}

/* --- Код скрипта в карточке (с копированием) --------------------------- */
.codebox {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-code);
  overflow: hidden;
}
.codebox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  background: var(--bg-raise);
  border-bottom: 1px solid var(--border);
}
.codebox__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.codebox__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3px;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.codebox__copy svg { width: 13px; height: 13px; }
.codebox__copy:hover { border-color: var(--accent); color: var(--accent); }
.codebox__copy.is-copied { border-color: var(--lime); color: var(--lime); }
.codebox__text {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-primary);
  padding: 12px 14px;
  overflow-x: auto;
  white-space: nowrap;
}

/* Горизонтальная раскладка на ПК: карточки с превью — картинка слева */
@media (min-width: 760px) {
  .drops .drop--shot { flex-direction: row; }
  .drops .drop--shot .drop__shot {
    width: 320px;
    flex: 0 0 320px;
    aspect-ratio: auto;
    align-self: stretch;
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }
  .drops .drop--star.drop--shot .drop__shot { border-right-color: var(--accent); }

  .drops .drop__feats { columns: 2; column-gap: 30px; padding-top: 16px; }
  .drops .drop__feats li { break-inside: avoid; }
  /* Кнопка «Скачать скрипт» — на всю ширину и над строкой совместимости,
     чтобы было очевидно, что скрипт можно скачать */
  .drops .drop__exec { margin: 12px 0 0; }
}

/* --- Spotlight (flagship intro) ----------------------------------------- */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 34px;
  align-items: start;
}
.spotlight__note { color: var(--text-muted); max-width: 52ch; }
.spotlight__tag {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  display: block;
  margin-top: 14px;
  letter-spacing: 0.3px;
}
@media (max-width: 860px) {
  .spotlight { grid-template-columns: 1fr; gap: 22px; }
}

/* --- Stepline (how-to steps) -------------------------------------------- */
.stepline {
  list-style: none;
  counter-reset: st;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.stepline > li {
  counter-increment: st;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px 18px 66px;
}
.stepline > li::before {
  content: counter(st);
  position: absolute;
  left: 16px; top: 15px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}
.stepline > li strong { display: block; margin-bottom: 2px; }

/* --- Info cards (executors / functions) --------------------------------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--gap);
  margin: 8px 0 12px;
}
.info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.info:hover { border-color: var(--accent); transform: translateY(-3px); }
.info__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.2px;
  margin: 0 0 8px;
}
.info__plat {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid var(--lime-dim);
  border-radius: var(--radius-pill);
  padding: 2px 12px;
  margin-bottom: 12px;
}
.info__text { color: var(--text-muted); font-size: 0.94rem; margin: 0; }

/* --- Figures (game facts) ----------------------------------------------- */
.figs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 24px 0 8px;
}
.fig {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
}
.fig__num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--lime);
  line-height: 1;
  margin: 0 0 8px;
}
.fig__cap {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- Versus (compare) ---------------------------------------------------- */
.vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
.vs__side {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.vs__side--yes { border-color: var(--lime-dim); box-shadow: inset 0 0 0 1px var(--lime-soft); }
.vs__side--meh { border-color: var(--border); }
.vs__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  margin: 0 0 12px;
}
.vs__side ul { list-style: none; margin: 0; padding: 0; }
.vs__side li {
  position: relative;
  padding-left: 24px;
  margin: 8px 0;
  font-size: 0.94rem;
  color: var(--text-primary);
}
.vs__side--yes li::before { content: "✓"; position: absolute; left: 0; color: var(--lime); font-weight: 700; }
.vs__side--meh li::before { content: "•"; position: absolute; left: 3px; color: var(--text-muted); }
@media (max-width: 640px) { .vs { grid-template-columns: 1fr; } }

/* --- Actions (CTA row) --------------------------------------------------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
