/* === OddsShift Guide Hub Page — Prediction Markets Guide === */
/* Base: style.css (shared header, footer, theme, typography) */
/* Pattern reference: accuracy.css (compact hero, sections, FAQ accordion) */

/* Page-level layout uses shared header from style.css */


/* -- Reused components -- */

.platform-pill {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
}
.platform-pill.pm { background: rgba(37,99,235,0.12); color: #2563EB; }
.platform-pill.k { background: rgba(19,78,74,0.12); color: #134e4a; }
html:not(.light) .platform-pill.k { background: rgba(94,234,212,0.1); color: #5eead4; }

.green { color: #16A34A; }
.red { color: #f85149; }
.text-accent { color: var(--accent); }
.accent { color: var(--accent); }


/* -- Hero (compact, same pattern as /accuracy /legal) -- */

.gd-hero-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 0 12px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}
.gd-hero-left { flex: 1; min-width: 0; }
.gd-hero-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
}
.gd-hero-sub {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-top: 4px;
}
.gd-hero-stats {
  display: flex;
  gap: 2rem;
  flex-shrink: 0;
}
.gd-hero-stat { text-align: center; }
.gd-hero-stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.gd-hero-stat-value.accent { color: var(--accent); }
.gd-hero-stat-value.green { color: #16A34A; }
.gd-hero-stat-label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}


/* -- Direct Answer (AI citation paragraph) -- */

.gd-direct-answer {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.65;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}
.gd-direct-answer strong { color: var(--text); }
.gd-updated {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
}


/* -- Section shared -- */

.gd-section { margin-bottom: 2.5rem; }
.gd-section:first-of-type { margin-bottom: 2rem; margin-top: 0; }
.gd-section-header { margin-bottom: 1rem; }
.gd-section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.gd-section-title .sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-left: 6px;
  text-transform: uppercase;
}
.gd-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--accent-border);
  transition: opacity 0.15s;
}
.gd-link:hover { opacity: 0.8; }


/* -- SEC 3: 4-Step Explainer (numbered circles, same as acc-method) -- */

.gd-explainer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 1.25rem;
}
.gd-explainer-step {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1rem;
  background: var(--bg);
}
.gd-explainer-icon {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.gd-explainer-content h3 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}
.gd-explainer-content p {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}
.gd-explainer-content strong {
  color: var(--text);
  font-weight: 700;
}

.gd-explainer-note {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.6;
  padding: 1.25rem;
  background: var(--bg2);
  border-radius: 8px;
}
.gd-explainer-note strong { color: var(--text); }


/* -- SEC 4: Platform Cards (2 columns, NO colored borders) -- */

.gd-platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 1.25rem;
}
.gd-platform-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  background: var(--bg);
}
.gd-platform-stat {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin: 12px 0;
  font-variant-numeric: tabular-nums;
}
.gd-platform-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.gd-platform-list li {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.55;
  padding: 4px 0 4px 1.2rem;
  position: relative;
}
.gd-platform-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
}
.gd-platform-link {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
}
.gd-platform-link:hover { opacity: 0.8; }

.gd-platform-verdict {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.6;
  padding: 1.25rem;
  background: var(--bg2);
  border-radius: 8px;
}
.gd-platform-verdict strong { color: var(--text); }


/* -- SEC 5: Hub Card Grid (PRIMARY navigation section) -- */

.gd-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gd-hub-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.gd-hub-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.gd-hub-card-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 8px;
  color: var(--accent);
}
.gd-hub-card-content { min-width: 0; flex: 1; }
.gd-hub-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.25;
}
.gd-hub-card-content p {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}


/* -- SEC 6: FAQ Accordion (same pattern as /accuracy /legal) -- */

.gd-faq-list {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.gd-faq-item {
  border-bottom: 1px solid var(--border);
}
.gd-faq-item:last-child { border-bottom: none; }
.gd-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
  list-style: none;
}
.gd-faq-question::-webkit-details-marker { display: none; }
.gd-faq-question::after { content: "+"; font-size: 1.2rem; color: var(--text-muted); font-weight: 400; }
.gd-faq-item[open] .gd-faq-question::after { content: "\2212"; }
.gd-faq-question:hover { background: var(--bg2); }
.gd-faq-question h3 {
  margin: 0;
  font: inherit;
  display: inline;
}
.gd-faq-answer {
  padding: 0 20px 16px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.65;
}
.gd-faq-answer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}


/* -- SEC 7: Footer extras -- */

.gd-last-updated {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.gd-footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.gd-footer-social a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.gd-footer-social a:hover { color: var(--accent); }


/* ===================================================
   DARK MODE OVERRIDES
   =================================================== */

html:not(.light) .gd-platform-card { background: var(--bg2); }
html:not(.light) .gd-hub-card { background: var(--bg2); }
html:not(.light) .gd-hub-card:hover { background: var(--bg2); border-color: var(--accent); }
html:not(.light) .gd-explainer-step { background: var(--bg2); }
html:not(.light) .gd-explainer-note { background: var(--bg2); }
html:not(.light) .gd-platform-verdict { background: var(--bg2); }
html:not(.light) .gd-faq-list { border-color: rgba(255,255,255,0.06); }
html:not(.light) .gd-faq-item { border-bottom-color: rgba(255,255,255,0.06); }


/* ===================================================
   MOBILE RESPONSIVE (max-width: 768px)
   =================================================== */

@media (max-width: 768px) {

  /* -- Hero: stack column -- */
  .gd-hero-compact {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 0 16px;
  }
  .gd-hero-title {
    font-size: 1.25rem;
    white-space: normal;
  }
  .gd-hero-stats {
    display: flex;
    gap: 0;
    width: 100%;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    justify-content: space-between;
  }
  .gd-hero-stat {
    flex: 1;
    text-align: center;
    position: relative;
  }
  .gd-hero-stat + .gd-hero-stat {
    border-left: 1px solid var(--border);
  }
  .gd-hero-stat-value { font-size: 1.15rem; }
  .gd-hero-stat-label { font-size: 0.58rem; }

  /* -- Explainer: 1 column -- */
  .gd-explainer {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .gd-explainer-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 1rem;
  }
  .gd-explainer-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  /* -- Platform cards: 1 column -- */
  .gd-platform-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* -- Hub grid: 1 column -- */
  .gd-hub-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* -- FAQ: tighter padding -- */
  .gd-faq-question { padding: 14px 16px; font-size: 0.88rem; }
  .gd-faq-answer { padding: 0 16px 14px; font-size: 0.85rem; }

  /* -- Section titles -- */
  .gd-section-title { font-size: 1.05rem; }
}


/* Mid-range responsive (769-1024) */
@media (min-width: 769px) and (max-width: 1024px) {
  .gd-explainer {
    grid-template-columns: repeat(2, 1fr);
  }
  .gd-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
