/* ==========================================================================
   RivalsScripts — gate.css
   Стили для двухэтапной воронки скачивания: /confirm/ и /download/.
   Задача — держать пользователя на странице и показывать рекламу.
   ========================================================================== */

.gate-page {
  min-height: calc(100vh - var(--header-h) - 1px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(28px, 6vw, 64px) 20px 64px;
}

.gate-card {
  width: 100%;
  max-width: 620px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 40px);
  text-align: center;
}

.gate-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.gate-card h1 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin: 0 0 14px;
  text-transform: none;
}

.gate-text {
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 auto 26px;
}

/* --- Progress bar -------------------------------------------------------- */
.gate-progress {
  height: 8px;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 12px;
}
.gate-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 999px;
  transition: width 0.9s linear;
}

.gate-timer {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin: 0 0 24px;
}
.gate-timer #gateSeconds { color: var(--accent); font-weight: 500; }

/* --- Action button ------------------------------------------------------- */
.gate-card .btn-primary { min-width: 260px; }
.gate-hidden { display: none !important; }

/* состояние «файл скачан» */
.btn-primary.gate-done {
  background: transparent;
  color: var(--ok);
  border-color: var(--ok);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

/* маленький «спиннер»-намёк пока идёт таймер */
.gate-wait {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 24px;
}

/* --- Info block ---------------------------------------------------------- */
.gate-info {
  text-align: left;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.gate-info h2 {
  font-size: 1.1rem;
  margin: 0 0 12px;
}
.gate-info p { margin: 6px 0; color: var(--text-muted); font-size: 0.92rem; }
.gate-info .mono { color: var(--text-primary); }
.gate-info ul {
  list-style: none;
  margin: 0; padding: 0;
}
.gate-info ul li {
  position: relative;
  padding-left: 20px;
  margin: 8px 0;
  color: var(--text-primary);
  font-size: 0.92rem;
}
.gate-info ul li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }

/* --- Steps indicator ----------------------------------------------------- */
.gate-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.gate-steps .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border);
  display: inline-block;
}
.gate-steps .dot.is-active { background: var(--accent); }

/* --- Ad slots on gate pages (агрессивнее, чем в других местах) ----------- */
.ad-slot--gate {
  min-height: 100px;
  margin: 24px 0 0;
}
.ad-slot--gate:empty::before { height: 100px; }

/* --- Security note ------------------------------------------------------- */
.gate-secure {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ok);
  margin-top: 18px;
  letter-spacing: 0.3px;
}
