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

/* -------- Hero (image background) -------- */

.guide-hero {
  position: relative;
  margin-top: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.guide-hero__bg {
  position: absolute;
  inset: 0;
  background-color: #191b27;
  background-image:
    radial-gradient(circle at 78% 18%, rgba(127,181,57,.12), transparent 55%),
    linear-gradient(135deg, #23252f 0%, #14141c 100%);
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.guide-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(19,20,28,.30) 0%, rgba(19,20,28,.97) 100%),
    linear-gradient(90deg, rgba(19,20,28,.82) 0%, rgba(19,20,28,.40) 60%, rgba(19,20,28,.66) 100%);
  z-index: -1;
}
.guide-hero__inner {
  padding: 48px 40px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.guide-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.guide-hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  margin: 0 0 10px;
  max-width: 800px;
  text-shadow: 0 2px 18px rgba(0,0,0,.5);
}
.guide-hero__tagline {
  font-size: 17px;
  color: #d6d9e0;
  max-width: 720px;
  margin: 0;
}

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

.guide-meta {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 14px;
}
.guide-meta__item {
  padding: 16px 20px;
  border-right: 1px solid var(--border);
}
.guide-meta__item:last-child { border-right: none; }
.guide-meta__label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
}
.guide-meta__value {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin-top: 4px;
}

/* -------- Quick answer (TL;DR) -------- */

.quick-answer {
  display: flex;
  gap: 18px;
  margin-top: 24px;
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(127,181,57,.10), rgba(127,181,57,.03));
  border: 1px solid rgba(127,181,57,.30);
  border-radius: var(--radius);
}
.quick-answer__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(127,181,57,.16);
  color: var(--accent-hi);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-answer__icon svg { width: 22px; height: 22px; }
.quick-answer h2 {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-hi);
  margin: 3px 0 6px;
}
.quick-answer p {
  margin: 0;
  color: #d4d7de;
}

/* -------- Layout -------- */

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  margin-top: 40px;
}
.guide-content > section { margin-bottom: 40px; }
.guide-content > section > h2 {
  font-size: 24px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.guide-content > section > h2::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
}
.guide-content p { color: #c9ccd3; }
.guide-content p:last-child { margin-bottom: 0; }

/* Plain prose lists (not the carded .req-list / .tips-list) */
.guide-content ul:not(.req-list):not(.tips-list),
.guide-content ol {
  color: #c9ccd3;
  padding-left: 22px;
  margin: 0 0 18px;
  line-height: 1.6;
}
.guide-content ul:not(.req-list):not(.tips-list) li,
.guide-content ol li {
  margin-bottom: 10px;
}
.guide-content ul:not(.req-list):not(.tips-list) li:last-child,
.guide-content ol li:last-child {
  margin-bottom: 0;
}
.guide-content ul:not(.req-list):not(.tips-list) li::marker,
.guide-content ol li::marker {
  color: var(--accent-hi);
}

/* Requirements checklist */
.req-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.req-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
}
.req-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent-hi);
}

/* -------- Content figure -------- */

.guide-figure {
  margin: 0 0 40px;
}
.guide-figure__frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}
.guide-figure__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.guide-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
}

/* -------- Step timeline -------- */

.guide-steps { margin-top: 4px; }
.step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 22px;
  position: relative;
  padding-bottom: 34px;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 54px;
  bottom: -2px;
  width: 2px;
  background: var(--border);
}
.step:last-child::before { display: none; }
.step__num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #13141c;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.step__body { padding-top: 6px; min-width: 0; }
.step__body h2 {
  font-size: 21px;
  margin: 0 0 10px;
}
.step__body p:last-child { margin-bottom: 0; }

/* -------- Callout (pro tip) -------- */

.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;
  margin: 18px 0;
}
.callout p { margin: 0; color: #d4d7de; }
.callout strong { color: var(--gold); }

/* -------- Tips list -------- */

.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.tips-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
}
.tips-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent-hi);
}

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

.guide-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);
}

/* Table of contents */
.toc {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.toc li { margin-bottom: 2px; }
.toc a {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 14px;
}
.toc a:hover { background: var(--bg-2); color: var(--accent-hi); }
.toc a::before {
  counter-increment: toc;
  content: counter(toc);
  color: var(--text-faint);
  font-weight: 700;
  font-size: 12px;
  min-width: 14px;
}

/* Guide facts */
.guide-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.guide-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;
}
.guide-facts li:last-child { border-bottom: none; }
.guide-facts dt {
  color: var(--text-faint);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.guide-facts dd {
  margin: 0;
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

/* Related guides 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;
  gap: 10px;
  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;
  flex-shrink: 0;
  opacity: .45;
}

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

@media (max-width: 1080px) {
  .guide-layout { grid-template-columns: 1fr; gap: 32px; }
  .guide-meta { grid-template-columns: repeat(3, 1fr); }
  .guide-meta__item:nth-child(3) { border-right: none; }
  .guide-meta__item:nth-child(n+4) { border-top: 1px solid var(--border); }
}
@media (max-width: 620px) {
  .guide-hero__inner { padding: 32px 22px; min-height: 240px; }
  .guide-meta { grid-template-columns: repeat(2, 1fr); }
  .guide-meta__item:nth-child(odd) { border-right: 1px solid var(--border); }
  .guide-meta__item:nth-child(even) { border-right: none; }
  .guide-meta__item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .quick-answer { flex-direction: column; gap: 12px; }
  .step { gap: 16px; }
}
