/* ==========================================================================
   GTA Cache — Cheat page stylesheet
   ========================================================================== */

/* -------- Hero (compact — codes need to be near the top) -------- */

.cheat-hero {
  margin-top: 16px;
  padding: 38px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 88% 12%, rgba(127,181,57,.16), transparent 55%),
    linear-gradient(160deg, var(--bg-2) 0%, var(--bg-1) 100%);
}
.cheat-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.cheat-hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  margin: 0 0 10px;
}
.cheat-hero__tagline {
  font-size: 17px;
  color: #d2d5dc;
  max-width: 680px;
  margin: 0;
}

/* -------- Section titles (shared by codes + content) -------- */

.cheat-codes h2,
.cheat-content h2 {
  font-size: 26px;
  margin: 0 0 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.cheat-codes h2::before,
.cheat-content h2::before {
  content: "";
  width: 4px;
  height: 21px;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
}
.section-intro {
  color: var(--text-dim);
  font-size: 15px;
  margin: 12px 0 18px;
}

/* -------- The codes panel -------- */

.cheat-codes { margin-top: 36px; }

.code-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.code-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.code-card--wide { grid-column: 1 / -1; }

.code-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.code-card__platform {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.code-card__platform svg {
  width: 20px;
  height: 20px;
  color: var(--accent-hi);
}
.code-card__sub {
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Copy button */
.copy-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.copy-btn:hover {
  color: var(--text);
  border-color: var(--accent-dim);
}
.copy-btn.is-copied {
  background: rgba(127,181,57,.16);
  color: var(--accent-hi);
  border-color: rgba(127,181,57,.4);
}
.copy-btn svg { width: 14px; height: 14px; }

/* Plain code (PC word / phone number) */
.cheat-code {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent-hi);
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: block;
}

/* Console button sequence */
.key-seq {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--border-2);
  border-bottom-width: 3px;
  border-radius: 7px;
  font-family: ui-monospace, "Consolas", monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.key--face { font-size: 18px; }
.key--green  { color: #66c294; }
.key--red    { color: #e3737d; }
.key--blue   { color: #8295e6; }
.key--pink   { color: #e086b8; }
.key--yellow { color: #e6bf52; }

/* -------- Two-column layout -------- */

.cheat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  margin-top: 44px;
}
.cheat-content > section { margin-bottom: 38px; }
.cheat-content h2 { margin-bottom: 16px; }
.cheat-content p { color: #c9ccd3; }
.cheat-content ul { padding-left: 22px; color: #c9ccd3; }
.cheat-content li { margin-bottom: 8px; }
.cheat-content ul li::marker { color: var(--accent); }

/* How-to cards */
.howto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.howto-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.howto-card h3 {
  font-size: 15px;
  margin: 0 0 8px;
  color: var(--accent-hi);
}
.howto-card p {
  font-size: 14px;
  margin: 0;
  color: #c4c8d0;
  line-height: 1.6;
}

/* Callout */
.callout {
  background: linear-gradient(135deg, rgba(245,197,24,.08), rgba(245,197,24,.02));
  border: 1px solid rgba(245,197,24,.28);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--gold); }

/* -------- Sidebar -------- */

.cheat-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.side-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.side-card__title {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Fact list */
.cheat-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cheat-facts li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.cheat-facts li:last-child { border-bottom: none; }
.cheat-facts dt {
  color: var(--text-faint);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cheat-facts dd {
  margin: 0;
  color: var(--text);
  font-weight: 500;
  text-align: right;
}
.cheat-facts .yes { color: var(--accent-hi); }
.cheat-facts .no  { color: var(--red); }

/* Related cheats list */
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.link-list li { border-bottom: 1px solid var(--border); }
.link-list li:last-child { border-bottom: none; }
.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  color: var(--text-dim);
  font-size: 14px;
}
.link-list a:hover { color: var(--accent-hi); }
.link-list svg {
  width: 14px;
  height: 14px;
  opacity: .45;
}

/* -------- Responsive -------- */

@media (max-width: 1080px) {
  .cheat-layout { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .cheat-hero { padding: 28px 22px; }
  .code-grid { grid-template-columns: 1fr; }
  .howto-grid { grid-template-columns: 1fr; }
  .cheat-code { font-size: 21px; }
}
