/* GTAVI INSIDER — Comparison Tables (compare.css)
 * Neon-noir Vice City theme. Scoped under .gti-compare so it never
 * leaks into the rest of the page. Load BEFORE compare.js (defer):
 *   <link rel="stylesheet" href="assets/compare/compare.css">
 *   <script src="assets/compare/compare.js" defer></script>
 */

.gti-compare {
  --gti-bg: #0d0d16;
  --gti-panel: #14141f;
  --gti-panel-2: #1a1a2a;
  --gti-line: rgba(255, 45, 120, 0.28);
  --gti-line-soft: rgba(255, 255, 255, 0.09);
  --gti-pink: #ff2d78;
  --gti-pink-deep: #c2144f;
  --gti-cyan: #25e5f5;
  --gti-acid: #c8f04b;
  --gti-ink: #f4f1ff;
  --gti-muted: #b9b3d6;
  --gti-radius: 14px;
  color: var(--gti-ink);
  background:
    radial-gradient(1200px 320px at 50% -120px, rgba(255, 45, 120, 0.16), transparent 70%),
    radial-gradient(900px 260px at 80% 0, rgba(37, 229, 245, 0.1), transparent 70%),
    var(--gti-bg);
  border: 1px solid var(--gti-line);
  border-radius: var(--gti-radius);
  padding: clamp(16px, 3vw, 32px);
  margin: clamp(20px, 4vw, 48px) auto;
  max-width: 1180px;
  box-shadow: 0 18px 60px -28px rgba(255, 45, 120, 0.55), 0 8px 30px -18px rgba(0, 0, 0, 0.9);
}

/* ---------- headers ---------- */
.gti-compare__kicker {
  margin: 0 0 6px;
  font: 600 11px/1.4 "Manrope", system-ui, sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gti-cyan);
}

.gti-compare__title {
  margin: 0 0 8px;
  font-family: "Pricedown", "Pricedown Bl", "Arial Black", Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--gti-ink);
  text-shadow: 0 0 22px rgba(255, 45, 120, 0.45), 2px 2px 0 rgba(0, 0, 0, 0.65);
}

.gti-compare__intro {
  margin: 0 0 18px;
  color: var(--gti-muted);
  font: 400 15px/1.6 "Manrope", system-ui, sans-serif;
  max-width: 70ch;
}

/* ---------- disclosures ---------- */
.gti-compare__disclose {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px dashed var(--gti-line);
  border-radius: 10px;
  background: rgba(255, 45, 120, 0.06);
  color: var(--gti-muted);
  font: 500 12.5px/1.6 "Manrope", system-ui, sans-serif;
}
.gti-compare__disclose--bottom { margin: 18px 0 0; }

/* ---------- table shell ---------- */
.gti-compare__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--gti-line-soft);
  border-radius: 12px;
  background: var(--gti-panel);
  scroll-snap-type: x proximity;
}

.gti-compare__table {
  width: 100%;
  min-width: 760px; /* forces the horizontal scroll on small screens */
  border-collapse: separate;
  border-spacing: 0;
  font: 400 14.5px/1.55 "Manrope", system-ui, sans-serif;
}

.gti-compare__caption {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.gti-compare__table thead th {
  background: linear-gradient(180deg, var(--gti-panel-2), var(--gti-panel));
  color: var(--gti-cyan);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 2px solid var(--gti-line);
  white-space: nowrap;
}

.gti-compare__table td,
.gti-compare__table tbody th {
  padding: 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--gti-line-soft);
  text-align: left;
}

.gti-compare__table tbody tr:last-child td,
.gti-compare__table tbody tr:last-child th { border-bottom: 0; }

.gti-compare__table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.022); }

.gti-compare__table tbody tr:hover { background: rgba(255, 45, 120, 0.06); }

/* top-pick row gets the neon treatment */
.gti-compare__row--pick {
  background: linear-gradient(90deg, rgba(255, 45, 120, 0.12), rgba(255, 45, 120, 0.02)) !important;
  box-shadow: inset 3px 0 0 var(--gti-pink);
}

/* ---------- sticky first column ---------- */
.gti-compare__table thead th:first-child,
.gti-compare__table tbody th:first-child {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 168px;
  max-width: 240px;
  background: var(--gti-panel);
  box-shadow: 10px 0 18px -10px rgba(0, 0, 0, 0.85);
  border-right: 1px solid var(--gti-line-soft);
}

.gti-compare__table tbody th:first-child {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--gti-ink);
}

.gti-compare__table thead th:first-child {
  background: var(--gti-panel-2);
  z-index: 3;
}

/* ---------- badges ---------- */
.gti-compare__badge {
  display: inline-block;
  margin: 0 0 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gti-pink-deep), var(--gti-pink));
  color: #fff;
  font: 700 10.5px/1.3 "Manrope", system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 14px rgba(255, 45, 120, 0.55);
}

.gti-compare__celltext { display: block; color: var(--gti-ink); }

/* ---------- CTAs ---------- */
.gti-compare__linkstate {
  display: block;
  margin-bottom: 6px;
  font: 600 11px/1.4 "Manrope", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gti-cyan);
}

.gti-compare__cta {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--gti-pink-deep), var(--gti-pink));
  color: #fff;
  font: 700 14px/1.2 "Manrope", system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 22px -8px rgba(255, 45, 120, 0.8);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gti-compare__cta:hover,
.gti-compare__cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -8px rgba(255, 45, 120, 0.95);
  outline: 2px solid var(--gti-cyan);
  outline-offset: 2px;
}

/* ---------- placeholder row ---------- */
.gti-compare__placeholder-row td {
  padding: 30px 22px;
  text-align: left;
  background: rgba(37, 229, 245, 0.04);
}

.gti-compare__placeholder-title {
  display: block;
  margin-bottom: 8px;
  font-family: "Pricedown", "Arial Black", sans-serif;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--gti-cyan);
  text-shadow: 0 0 16px rgba(37, 229, 245, 0.35);
}

.gti-compare__placeholder-row p { margin: 0; color: var(--gti-muted); max-width: 72ch; }

/* ---------- verdict ---------- */
.gti-compare__verdict {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--gti-line);
  border-left: 4px solid var(--gti-acid);
  border-radius: 10px;
  background: rgba(200, 240, 75, 0.05);
}

.gti-compare__verdict-title {
  margin: 0 0 6px;
  font-family: "Pricedown", "Arial Black", sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--gti-acid);
  text-transform: uppercase;
}

.gti-compare__verdict p:last-child { margin: 0; color: var(--gti-ink); font-size: 14.5px; line-height: 1.65; }

/* ---------- responsible gambling ---------- */
.gti-compare__responsible {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--gti-acid);
  font: 700 13px/1.5 "Manrope", system-ui, sans-serif;
}

/* ---------- errors ---------- */
.gti-compare__error { color: var(--gti-pink); font-weight: 600; }

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .gti-compare { padding: 16px 12px; }
  .gti-compare__table { font-size: 14px; }
  .gti-compare__table td,
  .gti-compare__table tbody th { padding: 12px 10px; }
  .gti-compare__table thead th:first-child,
  .gti-compare__table tbody th:first-child {
    min-width: 132px;
    box-shadow: 14px 0 20px -12px rgba(0, 0, 0, 0.9);
  }
  .gti-compare__scroll::after {
    content: "swipe →";
    display: block;
    text-align: right;
    padding: 6px 10px 0;
    font: 600 11px/1 "Manrope", sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gti-muted);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gti-compare__cta { transition: none; }
  .gti-compare__cta:hover { transform: none; }
  .gti-compare__scroll { scroll-snap-type: none; }
}
