/* ==========================================================================
   BetPro Pakistan — Comparison table, pre-footer CTA, and programmatic
   city "dealer" landing pages. Built on the same tokens as the rest of the
   theme so it inherits the dark/green look automatically.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Comparison — "BetPro vs Everyone Else"
   -------------------------------------------------------------------------- */
.cmp-table {
  position: relative;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: hsl(220 15% 11%);
}

.cmp-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: stretch;
}

.cmp-row + .cmp-row {
  border-top: 1px solid hsl(var(--border));
}

.cmp-c {
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  line-height: 1.4;
  color: hsl(var(--foreground) / 0.9);
}

.cmp-c + .cmp-c {
  border-left: 1px solid hsl(var(--border));
}

.cmp-c .icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

/* feature label column */
.cmp-c.feat {
  font-weight: 600;
  color: hsl(var(--foreground));
}

/* the BetPro column gets a subtle green wash to pull the eye */
.cmp-row .cmp-c.us {
  background: hsl(var(--primary) / 0.06);
  color: hsl(var(--foreground));
}

.cmp-c.us .icon {
  color: hsl(var(--primary));
}

.cmp-c.them {
  color: hsl(var(--muted-foreground));
}

.cmp-c.them .icon {
  color: #f87171;
}

/* header row */
.cmp-head .cmp-c {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  text-transform: none;
  background: hsl(220 15% 14%);
}

.cmp-head .cmp-c.us {
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
}

.cmp-head .cmp-c .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cmp-note {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
}

@media (max-width: 640px) {
  .cmp-row {
    grid-template-columns: 1.25fr 0.9fr 0.9fr;
  }
  .cmp-c {
    padding: 0.85rem 0.7rem;
    font-size: 0.82rem;
    gap: 0.4rem;
  }
  .cmp-head .cmp-c {
    font-size: 0.8rem;
  }
  .cmp-c .icon {
    width: 0.95rem;
    height: 0.95rem;
  }
}

/* --------------------------------------------------------------------------
   Pre-footer CTA band
   -------------------------------------------------------------------------- */
.precta-card {
  position: relative;
  overflow: hidden;
  border: 1px solid hsl(var(--primary) / 0.22);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(ellipse 80% 130% at 50% 0%, hsl(var(--primary) / 0.12), transparent 70%),
    hsl(220 16% 10%);
  padding: 3.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.precta-card .eyebrow {
  margin-bottom: 0.85rem;
}

.precta-card h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 20ch;
  margin-inline: auto;
}

.precta-card h2 .accent {
  color: hsl(var(--primary));
}

.precta-card p {
  margin-top: 1rem;
  max-width: 46ch;
  margin-inline: auto;
  color: hsl(var(--muted-foreground));
  font-size: 1.08rem;
  line-height: 1.8;
}

.precta-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.precta-chips {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.precta-chips .chip {
  padding: 0.4rem 0.85rem;
}

.precta-chips .chip .icon {
  width: 0.85rem;
  height: 0.85rem;
  color: hsl(var(--primary));
}

/* --------------------------------------------------------------------------
   Dealer (programmatic city) landing page
   -------------------------------------------------------------------------- */
.dealer-hero {
  position: relative;
  padding-block: 4.5rem 3rem;
  overflow: hidden;
}

.dealer-hero .l-wash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 90% at 50% -10%, hsl(var(--primary) / 0.1), transparent 70%);
  pointer-events: none;
}

.dealer-hero .inner {
  position: relative;
  max-width: 820px;
}

.dealer-hero .hero-title {
  margin-top: 1rem;
}

.dealer-hero .hero-lead {
  max-width: 60ch;
}

.dealer-stats-strip {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.dealer-stats-strip .stat {
  background: hsl(220 16% 10%);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dealer-stats-strip .stat .v {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.dealer-stats-strip .stat .k {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--muted-foreground));
}

/* local areas chips */
.dealer-areas {
  margin-top: 2.5rem;
}

.dealer-areas h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.dealer-areas .list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dealer-areas .area {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: hsl(var(--foreground) / 0.85);
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
}

.dealer-areas .area .icon {
  width: 0.8rem;
  height: 0.8rem;
  color: hsl(var(--primary));
}

/* --------------------------------------------------------------------------
   Alternating image / text blocks (editable via Customizer)
   -------------------------------------------------------------------------- */
.s-dealer-blocks .dealer-block,
.support-blocks .dealer-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.s-dealer-blocks .dealer-block + .dealer-block {
  margin-top: 4.5rem;
}

.db-media {
  position: relative;
}

.db-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
  border: 1px solid hsl(var(--border));
  object-fit: cover;
  aspect-ratio: 16 / 11;
}

/* styled placeholder shown when no image is set */
.db-ghost {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-2xl);
  border: 1px solid hsl(var(--border));
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, hsl(var(--primary) / 0.1), transparent 70%),
    hsl(220 16% 10%);
  overflow: hidden;
}

.db-ghost .icon {
  width: 3.5rem;
  height: 3.5rem;
  color: hsl(var(--primary));
}

.db-ghost span {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground) / 0.85);
}

.db-text .eyebrow {
  display: block;
  margin-bottom: 0.85rem;
}

.db-text h2 {
  margin-bottom: 1rem;
}

.db-text p {
  color: hsl(var(--muted-foreground));
  font-size: 1.08rem;
  line-height: 1.85;
  margin-bottom: 1.75rem;
  max-width: 56ch;
}

@media (min-width: 900px) {
  .s-dealer-blocks .dealer-block,
  .support-blocks .dealer-block {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  /* zig-zag: even blocks have the image on the right */
  .s-dealer-blocks .dealer-block.reverse .db-media,
  .support-blocks .dealer-block.reverse .db-media {
    order: 2;
  }
}

/* Support section reuses the alternating block layout, with per-channel brand
   colour on the media icon, the handle line, and the CTA. */
.support-blocks .dealer-block + .dealer-block {
  margin-top: 3rem;
}

.support-blocks .db-text .handle {
  font-family: var(--font-sans);
  font-weight: 600;
  color: hsl(var(--foreground) / 0.85);
  margin-bottom: 0.75rem;
}

.s-support .ch-whatsapp .db-ghost .icon { color: #25d366; }
.s-support .ch-telegram .db-ghost .icon { color: #229ed9; }
.s-support .ch-email    .db-ghost .icon { color: hsl(var(--foreground) / 0.85); }

.s-support .ch-whatsapp .btn-cta { background: #25d366; color: #04210f; }
.s-support .ch-telegram .btn-cta { background: #229ed9; color: #04141f; }
.s-support .ch-email .btn-cta {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  box-shadow: none;
}

/* dealer index grid */
.dealer-index-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.dealer-index-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-xl);
  background: hsl(220 15% 12%);
  color: hsl(var(--foreground));
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dealer-index-card:hover {
  border-color: hsl(var(--primary) / 0.4);
  background: hsl(var(--primary) / 0.05);
}

.dealer-index-card .city {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.15rem;
}

.dealer-index-card .prov {
  font-size: 0.82rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.15rem;
}

.dealer-index-card .icon {
  width: 1.1rem;
  height: 1.1rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

/* footer "dealer by city" internal-link strip */
.footer-cities {
  border-top: 1px solid hsl(var(--border));
  padding-top: 2rem;
  margin-top: 1rem;
}

.footer-cities h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--foreground) / 0.85);
  margin-bottom: 1rem;
}

.footer-cities .city-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-cities .city-links a {
  font-size: 0.88rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}

.footer-cities .city-links a:hover {
  color: hsl(var(--primary));
}

.footer-cities .city-links a.all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: hsl(var(--primary));
  font-weight: 600;
}

.footer-cities .city-links a.all .icon {
  width: 0.85rem;
  height: 0.85rem;
}

@media (min-width: 640px) {
  .dealer-stats-strip {
    grid-template-columns: repeat(4, 1fr);
  }
  .dealer-index-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .dealer-index-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
