/**
 * TomGarrattBets — global component CSS.
 *
 * WHY THIS FILE EXISTS: Elementor's per-element "Custom CSS" and the page-level
 * "Custom CSS" (Page Settings → Custom CSS) are Elementor PRO features. This site
 * runs free Elementor only. Every template previously carried these shared rules
 * as page_settings.custom_css, which free Elementor silently ignores. This file is
 * the single, site-wide replacement — enqueued once (see tgb-global-css.php) so it
 * applies on every page regardless of Elementor tier.
 *
 * Re-skin note: colours reference the Elementor kit's CSS custom properties
 * (--e-global-color-*), which the active kit always outputs site-wide — so a kit
 * colour swap re-skins this file too, no edits needed here.
 */

/* ─── PAGE AMBIENT ─────────────────────────────────────────────────────────── */
.tgb-page {
  background: radial-gradient(900px 500px at 50% -5%, rgba(27,45,107,0.35), transparent 60%), var(--e-global-color-primary);
}

/* ─── EYEBROWS ─────────────────────────────────────────────────────────────── */
.tgb-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.tgb-hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.tgb-hero-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--e-global-color-text);
  display: inline-block;
}

/* ─── HEADINGS ─────────────────────────────────────────────────────────────── */
.tgb-h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.84;
  letter-spacing: 0.005em;
}
.tgb-h1 .g, .tgb-deal .g, .tgb-brand .g {
  color: var(--e-global-color-text);
}
.tgb-h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 42px;
  line-height: 0.95;
}
.tgb-sub {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
.tgb-desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  max-width: 620px;
}

/* ─── FILTER PILLS ─────────────────────────────────────────────────────────── */
.tgb-pill {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  min-height: 38px;
  color: rgba(255,255,255,0.7);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  cursor: pointer;
}
.tgb-pill.on {
  background: var(--e-global-color-text);
  color: var(--e-global-color-goldink);
  border-color: var(--e-global-color-text);
}

/* ─── HERO TOM CUT-OUT (shared helper, opt-in via this class) ───────────────── */
.tgb-hero-tom {
  position: absolute;
  right: -58px;
  bottom: 0;
  height: 92%;
  width: auto;
  z-index: 2;
}
.tgb-hero-tom img {
  height: 100%;
  width: auto;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,0.55)) contrast(1.04) saturate(1.05) brightness(0.98);
  display: block;
}
@media (min-width: 768px) {
  .tgb-hero-tom { right: 56px; height: 104%; }
}

/* ─── CARD GRADIENTS (also targeted by the [tgb_oplist] shortcode markup) ──── */
.tgb-card {
  background: linear-gradient(180deg, #121A30 0%, #0D1322 100%);
  border: 1px solid var(--e-global-color-line);
  border-radius: 16px;
  padding: 16px;
  position: relative;
}
.tgb-card-feat {
  background: linear-gradient(120deg, var(--e-global-color-secondary) 0%, var(--e-global-color-navy2) 52%, var(--e-global-color-navy3) 100%);
  border: 1px solid rgba(245,195,0,0.40);
  border-radius: 18px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.tgb-card-feat::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 40px, rgba(255,255,255,0.04) 40px 42px);
  -webkit-mask-image: linear-gradient(115deg, #000, transparent 60%);
  mask-image: linear-gradient(115deg, #000, transparent 60%);
}

/* ─── OPERATOR LIST — [tgb_oplist] shortcode output ─────────────────────────
   Class reference lives in mu-plugins/tgb-oplists.php's own doc block; mirrored
   here so the dynamically-rendered cards match the design system. ────────── */
.tgb-oplist {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tgb-oplist .tgb-card-feat { grid-column: 1 / -1; }
.tgb-pick-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--e-global-color-text);
  color: var(--e-global-color-goldink);
  padding: 5px 11px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 6px 16px -4px rgba(245,195,0,0.6);
}
.tgb-feat-body { position: relative; z-index: 1; }
.tgb-op-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.tgb-op-logo {
  width: 52px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.tgb-op-logo img { width: 100%; height: 100%; object-fit: contain; }
.tgb-op-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
}
.tgb-op-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--e-global-color-accent);
}
.tgb-op-stars {
  color: var(--e-global-color-text);
  font-size: 12px;
  letter-spacing: 2px;
  margin-top: 3px;
}
.tgb-op-deal {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 27px;
  line-height: 0.92;
  color: var(--e-global-color-accent);
  margin: 2px 0 8px;
  position: relative;
  z-index: 1;
}
.tgb-op-deal .text-dark-blue { color: var(--e-global-color-text); }
.tgb-op-terms {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--e-global-color-muted);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.tgb-btn-gold, .tgb-btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 11px;
  cursor: pointer;
  border: none;
  position: relative;
  z-index: 1;
  text-decoration: none;
  box-sizing: border-box;
}
.tgb-btn-gold {
  background: var(--e-global-color-text);
  color: var(--e-global-color-goldink);
}
.tgb-btn-outline {
  background: transparent;
  color: var(--e-global-color-text);
  border: 1.5px solid rgba(245,195,0,0.45);
}

/* ─── AS FEATURED WITH — [tgb_featured] shortcode output ────────────────────── */
.tgb-featured-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tgb-featured-chip {
  height: 36px;
  padding: 0 18px;
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tgb-featured-chip img { max-height: 20px; max-width: 100px; object-fit: contain; }
.tgb-featured-chip-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.62);
  text-transform: uppercase;
}

/* ─── DESKTOP (≥768px) ───────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .tgb-oplist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .tgb-card, .tgb-card-feat { padding: 24px; border-radius: 18px; }
  .tgb-card-feat {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
    align-items: center;
  }
  .tgb-pick-badge { top: -12px; left: 24px; font-size: 13px; padding: 6px 13px; border-radius: 7px; }
  .tgb-op-header { margin-bottom: 16px; }
  .tgb-op-logo { width: 64px; height: 44px; border-radius: 9px; }
  .tgb-op-name { font-size: 18px; }
  .tgb-op-stars { font-size: 14px; }
  .tgb-op-deal { font-size: 30px; margin: 4px 0 10px; }
  .tgb-card-feat .tgb-op-deal { font-size: 44px; margin: 0 0 12px; }
  .tgb-op-terms { font-size: 12px; margin-bottom: 18px; }
  .tgb-card-feat .tgb-op-terms { margin-bottom: 0; }
  .tgb-btn-gold, .tgb-btn-outline { min-height: 52px; font-size: 18px; border-radius: 12px; }
  .tgb-card-feat .tgb-btn-gold, .tgb-card-feat .tgb-btn-outline { min-height: 56px; font-size: 20px; }
}

/* ─── MOBILE (<768px) OVERRIDES ──────────────────────────────────────────── */
@media (max-width: 767px) {
  .tgb-eyebrow, .tgb-hero-eyebrow { font-size: 10px; }
  .tgb-hero-eyebrow::before { width: 18px; }
  .tgb-h1 { line-height: 0.9; }
  .tgb-h2 { font-size: 28px; }
  .tgb-sub { font-size: 13px; }
  .tgb-card-feat {
    border-radius: 16px;
  }
  .tgb-card-feat::before {
    border-radius: 16px;
    background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255,255,255,0.04) 22px 24px);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
    mask-image: linear-gradient(180deg, #000, transparent 70%);
  }
}
