/* =========================
   GadgetGems Base Styling
   ========================= */

:root {
  --gg-primary: #2563eb;   /* blue */
  --gg-text: #1f2937;      /* dark gray */
  --gg-muted: #6b7280;     /* gray */
  --gg-bg-soft: #f9fafb;  /* soft background */
  --gg-border: #e5e7eb;
}

/* Global text tweaks */
body {
  color: var(--gg-text);
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  line-height: 1.7;
}

/* Hub sections */
.gg-section {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--gg-bg-soft);
  border: 1px solid var(--gg-border);
  border-radius: 8px;
}

.gg-section h2 {
  margin-top: 0;
}

/* Simple list links */
.gg-links a {
  display: block;
  padding: 0.4rem 0;
  color: var(--gg-primary);
  font-weight: 600;
  text-decoration: none;
}

.gg-links a:hover {
  text-decoration: underline;
}

/* CTA placeholder (future money pages) */
.gg-cta {
  margin-top: 2rem;
  padding: 1.5rem;
  background: white;
  border-left: 4px solid var(--gg-primary);
}
/* =========================
   Comparison table + buttons
   ========================= */

.gg-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.gg-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--gg-border);
  border-radius: 8px;
  overflow: hidden;
}

.gg-table th,
.gg-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--gg-border);
  vertical-align: top;
}

.gg-table th {
  text-align: left;
  background: var(--gg-bg-soft);
  font-weight: 700;
}

.gg-table tr:last-child td {
  border-bottom: 0;
}

.gg-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--gg-border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--gg-muted);
  background: white;
}

.gg-btn {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--gg-border);
}

.gg-btn-primary {
  background: var(--gg-primary);
  color: white;
  border-color: var(--gg-primary);
}

.gg-btn-primary:hover {
  filter: brightness(0.95);
}

.gg-btn-ghost {
  background: white;
  color: var(--gg-primary);
}

.gg-btn-ghost:hover {
  background: var(--gg-bg-soft);
}
.gg-table td:last-child {
  white-space: nowrap;
}

.gg-btn {
  min-width: 84px;
  text-align: center;
}
/* =========================
   Affiliate disclosure
   ========================= */

.gg-disclosure {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid #fb923c;
  font-size: 0.95rem;
}
/* =========================
   Pros / Cons blocks
   ========================= */

.gg-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1rem 0;
}

.gg-pros,
.gg-cons {
  padding: 1rem;
  border: 1px solid var(--gg-border);
  border-radius: 8px;
  background: white;
}

.gg-pros h4 {
  margin-top: 0;
  color: #15803d; /* green */
}

.gg-cons h4 {
  margin-top: 0;
  color: #b91c1c; /* red */
}

@media (max-width: 700px) {
  .gg-pros-cons {
    grid-template-columns: 1fr;
  }
}
/* ================================
   Premium polish: HUB (ai-content-studio)
   Scope: only .gg-hub and gg-compare-links block
================================== */

/* A) Reduce underline noise, keep hover underline */
.gg-hub a,
.gg-compare-links a {
  text-decoration: none;
}
.gg-hub a:hover,
.gg-compare-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* B) Top comparisons becomes “featured module” */
.gg-compare-links.gg-card {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
  padding: 18px 18px;
}
.gg-compare-links__title {
  font-size: 16px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.gg-compare-links__list {
  margin: 0;
  padding-left: 18px;
}
.gg-compare-links__item + .gg-compare-links__item {
  margin-top: 6px;
}

/* C) Tabs as real “pills” */
.gg-hub-index__tabs {
  display: flex;
  gap: 10px;
  margin: 14px 0 18px;
}
.gg-hub-index__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.75);
  font-weight: 800;
  text-decoration: none;
}
.gg-hub-index__tab.is-active {
  background: rgba(0,0,0,0.92);
  color: #fff;
  border-color: rgba(0,0,0,0.92);
}

/* D) Tile cards: premium depth + hover */
.gg-hub .gg-card.gg-card--tile {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.gg-hub .gg-card.gg-card--tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.10);
  border-color: rgba(0,0,0,0.10);
}

/* E) Improve hierarchy inside card */
.gg-card-title {
  letter-spacing: -0.01em;
}
.gg-card-blurb {
  color: rgba(0,0,0,0.70);
  line-height: 1.35;
}

/* F) Make “View comparison” feel like a CTA */
.gg-cta {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.70);
}
.gg-hub .gg-card.gg-card--tile:hover .gg-cta {
  background: rgba(0,0,0,0.92);
  color: #fff;
  border-color: rgba(0,0,0,0.92);
  text-decoration: none;
}

/* G) Optional: make the pipe text less ugly (CSS-only) */
.gg-card-blurb {
  word-spacing: 0.02em;
}
.gg-card-blurb:where(:not(:empty)) {
  /* nothing functional, but keeps as-is while we do real split later */
}
/* --- Premium polish: make tiles feel like UI cards (not link lists) --- */

/* 1) Remove underlines inside hub cards completely */
.gg-hub .gg-card.gg-card--tile,
.gg-hub .gg-card.gg-card--tile * {
  text-decoration: none !important;
}

/* 2) Title looks like a heading */
.gg-hub .gg-card-title {
  font-size: 18px;
  line-height: 1.2;
  margin-top: 8px;
  margin-bottom: 6px;
}

/* 3) Blurb should read like subtle meta */
.gg-hub .gg-card-blurb {
  color: rgba(0,0,0,0.65);
  font-size: 14px;
  line-height: 1.35;
}

/* 4) CTA becomes a proper button, aligned left */
.gg-hub .gg-cta {
  display: inline-flex;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.92);
  color: #fff;
  margin-top: 12px;
}
.gg-hub .gg-card.gg-card--tile:hover .gg-cta {
  filter: brightness(1.05);
}

/* 5) Make the entire tile click feel “buttony” */
.gg-hub .gg-card.gg-card--tile:hover .gg-card-title {
  text-decoration: none !important;
}
/* Premium polish: HUB tiles v2 (stronger + override GP underline) */
.gg-hub .gg-card.gg-card--tile a,
.gg-hub .gg-card.gg-card--tile a:visited,
.gg-hub .gg-card.gg-card--tile a:hover,
.gg-hub .gg-card.gg-card--tile a:focus {
  text-decoration: none !important;
  border-bottom: 0 !important;
}

.gg-hub .gg-card.gg-card--tile {
  border: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06) !important;
  border-radius: 18px !important;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.gg-hub .gg-card.gg-card--tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.10) !important;
}

.gg-hub .gg-card.gg-card--tile .gg-card-title {
  font-size: 18px !important;
  line-height: 1.2 !important;
  margin: 8px 0 6px !important;
}

.gg-hub .gg-card.gg-card--tile .gg-card-blurb {
  color: rgba(0,0,0,0.62) !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}

.gg-hub .gg-card.gg-card--tile .gg-cta {
  display: inline-flex !important;
  font-weight: 800 !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(0,0,0,0.12) !important;
  background: rgba(0,0,0,0.92) !important;
  color: #fff !important;
  margin-top: 12px !important;
}
