/* ═══════════════════════════════════════════════════════════════
   GHL AFFILIATE CTA PRO — Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --ghl-orange:        #FF6B2C;
  --ghl-orange-dark:   #E85A1A;
  --ghl-orange-light:  #FF8C54;
  --ghl-teal:          #00C9A7;
  --ghl-teal-dark:     #00A88D;
  --ghl-navy:          #0A1628;
  --ghl-navy-mid:      #142240;
  --ghl-ink:           #1A1D2E;
  --ghl-white:         #FFFFFF;
  --ghl-off-white:     #F8F9FF;
  --ghl-muted:         rgba(255,255,255,0.65);
  --ghl-border-light:  rgba(255,255,255,0.12);
  --ghl-border-dark:   rgba(0,0,0,0.08);
  --ghl-radius-sm:     8px;
  --ghl-radius:        16px;
  --ghl-radius-lg:     24px;
  --ghl-shadow-sm:     0 2px 8px rgba(0,0,0,0.10);
  --ghl-shadow:        0 8px 32px rgba(0,0,0,0.18);
  --ghl-shadow-lg:     0 20px 60px rgba(0,0,0,0.25);
  --ghl-font:          'Segoe UI', system-ui, -apple-system, sans-serif;
  --ghl-grad-brand:    linear-gradient(135deg, #FF6B2C 0%, #FF4081 50%, #9C27B0 100%);
  --ghl-grad-dark:     linear-gradient(145deg, #0A1628 0%, #142240 60%, #1a1f3a 100%);
  --ghl-grad-teal:     linear-gradient(135deg, #00C9A7 0%, #00A3FF 100%);
  --ghl-transition:    all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════════
   BUTTON COMPONENT — [ghl_button]
   ═══════════════════════════════════════════════════════════════ */

.ghl-btn-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px 0;
}
.ghl-align-center { align-items: center; }
.ghl-align-left   { align-items: flex-start; }
.ghl-align-right  { align-items: flex-end; }

.ghl-btn-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--ghl-orange);
  color: #fff;
  font-family: var(--ghl-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  animation: ghl-badge-pulse 2s ease-in-out infinite;
}

@keyframes ghl-badge-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,107,44,0.4); }
  50%       { transform: scale(1.03); box-shadow: 0 0 0 6px rgba(255,107,44,0); }
}

/* Base Button */
.ghl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--ghl-radius);
  font-family: var(--ghl-font);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--ghl-transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.ghl-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s ease;
}
.ghl-btn:hover::before { background: rgba(255,255,255,0.1); }
.ghl-btn:active { transform: translateY(1px); }

.ghl-btn-icon { width: 18px; height: 18px; flex-shrink: 0; }
.ghl-btn-text { flex: 1; }
.ghl-btn-arrow { opacity: 0; transform: translateX(-6px); transition: var(--ghl-transition); }
.ghl-btn:hover .ghl-btn-arrow { opacity: 1; transform: translateX(0); }

/* Sizes */
.ghl-btn--sm  { padding: 10px 20px; font-size: 13px; border-radius: 10px; }
.ghl-btn--md  { padding: 14px 28px; font-size: 15px; }
.ghl-btn--lg  { padding: 18px 36px; font-size: 17px; border-radius: 18px; }

/* Styles */
.ghl-btn--primary {
  background: var(--ghl-orange);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,107,44,0.35);
}
.ghl-btn--primary:hover {
  background: var(--ghl-orange-dark);
  color: #fff;
  box-shadow: 0 6px 28px rgba(255,107,44,0.5);
  transform: translateY(-2px);
}

.ghl-btn--secondary {
  background: var(--ghl-teal);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,201,167,0.3);
}
.ghl-btn--secondary:hover {
  background: var(--ghl-teal-dark);
  color: #fff;
  box-shadow: 0 6px 28px rgba(0,201,167,0.45);
  transform: translateY(-2px);
}

.ghl-btn--outline {
  background: transparent;
  color: var(--ghl-orange);
  border-color: var(--ghl-orange);
}
.ghl-btn--outline:hover {
  background: var(--ghl-orange);
  color: #fff;
  transform: translateY(-2px);
}

.ghl-btn--gradient {
  background: var(--ghl-grad-brand);
  color: #fff;
  box-shadow: 0 4px 24px rgba(255,107,44,0.4);
  border: none;
}
.ghl-btn--gradient:hover {
  box-shadow: 0 8px 36px rgba(255,107,44,0.6);
  transform: translateY(-2px);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   CTA CONTAINER BASE
   ═══════════════════════════════════════════════════════════════ */

.ghl-cta {
  font-family: var(--ghl-font);
  border-radius: var(--ghl-radius-lg);
  overflow: hidden;
  position: relative;
  margin: 24px 0;
  box-sizing: border-box;
}
.ghl-cta *, .ghl-cta *::before, .ghl-cta *::after { box-sizing: border-box; }

/* ── BADGE ── */
.ghl-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  position: relative;
}
.ghl-badge-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  animation: ghl-dot-pulse 1.5s ease-in-out infinite;
}
@keyframes ghl-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

/* ── LOGO ── */
.ghl-cta__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ghl-logo-icon { width: 36px; height: 36px; flex-shrink: 0; }
.ghl-logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ── TITLE ── */
.ghl-cta__title {
  font-size: clamp(18px, 3.5vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
}

/* ── SUBTITLE ── */
.ghl-cta__subtitle {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
  margin: 0 0 18px 0 !important;
}

/* ── FEATURES ── */
.ghl-cta__features {
  list-style: none !important;
  margin: 0 0 18px 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.ghl-cta__feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
  padding: 0 !important;
  margin: 0 !important;
}
.ghl-cta__feature::before { display: none !important; }
.ghl-check { width: 20px; height: 20px; flex-shrink: 0; }

/* ── PRICING ── */
.ghl-cta__pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: var(--ghl-radius-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.ghl-price-label { font-size: 12px; opacity: 0.7; font-weight: 500; }
.ghl-price-amount {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.ghl-price-amount span { font-size: 14px; font-weight: 600; opacity: 0.8; }
.ghl-price-note {
  font-size: 11px;
  opacity: 0.65;
  margin-left: auto;
}

/* ── ACTIONS ── */
.ghl-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.ghl-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--ghl-radius);
  font-family: var(--ghl-font);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  cursor: pointer;
  transition: var(--ghl-transition);
  border: 2px solid transparent;
  white-space: nowrap;
  flex: 1;
  min-width: 200px;
  justify-content: center;
}

.ghl-cta__btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.ghl-arrow { transition: transform 0.2s ease; }
.ghl-cta__btn:hover .ghl-arrow { transform: translateX(4px); }

.ghl-cta__btn--primary {
  background: var(--ghl-orange);
  color: #fff;
  box-shadow: 0 4px 24px rgba(255,107,44,0.4);
}
.ghl-cta__btn--primary:hover {
  background: var(--ghl-orange-dark);
  color: #fff;
  box-shadow: 0 8px 36px rgba(255,107,44,0.6);
  transform: translateY(-2px);
}

.ghl-cta__btn--secondary {
  background: rgba(255,255,255,0.1);
  color: inherit;
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}
.ghl-cta__btn--secondary:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

/* ── TIMER ── */
.ghl-cta__timer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: var(--ghl-radius-sm);
  background: rgba(255,107,44,0.15);
  border: 1px solid rgba(255,107,44,0.3);
}
.ghl-timer-label { font-size: 12px; font-weight: 600; opacity: 0.85; }
.ghl-timer-units { display: flex; align-items: center; gap: 4px; }
.ghl-timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 36px;
}
.ghl-timer-unit b {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}
.ghl-timer-unit small { font-size: 9px; opacity: 0.65; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.ghl-timer-sep { font-size: 16px; font-weight: 800; opacity: 0.5; padding-bottom: 10px; }

/* ── DISCLAIMER ── */
.ghl-cta__disclaimer {
  font-size: 11px !important;
  opacity: 0.5 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.5 !important;
}
.ghl-cta__disclaimer a { color: inherit; opacity: 0.8; text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   THEMES
   ═══════════════════════════════════════════════════════════════ */

/* GRADIENT THEME */
.ghl-theme--gradient {
  background: var(--ghl-grad-dark);
  color: var(--ghl-white);
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--ghl-shadow-lg);
}
.ghl-theme--gradient::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ghl-grad-brand);
}
.ghl-theme--gradient .ghl-cta__badge {
  background: rgba(255,107,44,0.2);
  color: var(--ghl-orange-light);
  border: 1px solid rgba(255,107,44,0.3);
}
.ghl-theme--gradient .ghl-cta__title { color: var(--ghl-white); }
.ghl-theme--gradient .ghl-check { color: var(--ghl-teal); }
.ghl-theme--gradient .ghl-logo-text { color: var(--ghl-white); }
.ghl-theme--gradient .ghl-logo-icon { color: var(--ghl-orange-light); }

/* DARK THEME */
.ghl-theme--dark {
  background: var(--ghl-navy);
  color: var(--ghl-white);
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--ghl-shadow);
}
.ghl-theme--dark::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ghl-grad-teal);
}
.ghl-theme--dark .ghl-cta__badge {
  background: rgba(0,201,167,0.15);
  color: var(--ghl-teal);
  border: 1px solid rgba(0,201,167,0.25);
}
.ghl-theme--dark .ghl-check { color: var(--ghl-teal); }
.ghl-theme--dark .ghl-logo-text { color: var(--ghl-white); }
.ghl-theme--dark .ghl-logo-icon { color: var(--ghl-teal); }

/* LIGHT THEME */
.ghl-theme--light {
  background: var(--ghl-off-white);
  color: var(--ghl-ink);
  padding: 32px;
  border: 1px solid var(--ghl-border-dark);
  box-shadow: var(--ghl-shadow-sm);
}
.ghl-theme--light::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--ghl-grad-brand);
}
.ghl-theme--light .ghl-cta__badge {
  background: rgba(255,107,44,0.1);
  color: var(--ghl-orange-dark);
  border: 1px solid rgba(255,107,44,0.2);
}
.ghl-theme--light .ghl-cta__title { color: var(--ghl-ink); }
.ghl-theme--light .ghl-cta__subtitle { color: #444; }
.ghl-theme--light .ghl-cta__feature { color: #333; }
.ghl-theme--light .ghl-check { color: var(--ghl-teal-dark); }
.ghl-theme--light .ghl-logo-text { color: var(--ghl-ink); }
.ghl-theme--light .ghl-logo-icon { color: var(--ghl-orange); }
.ghl-theme--light .ghl-cta__pricing {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
  color: var(--ghl-ink);
}
.ghl-theme--light .ghl-cta__btn--secondary {
  background: rgba(0,0,0,0.05);
  color: var(--ghl-ink);
  border-color: rgba(0,0,0,0.15);
}
.ghl-theme--light .ghl-cta__btn--secondary:hover {
  background: rgba(0,0,0,0.1);
  border-color: rgba(0,0,0,0.25);
}
.ghl-theme--light .ghl-cta__timer {
  background: rgba(255,107,44,0.08);
}
.ghl-theme--light .ghl-cta__disclaimer { color: #666; }

/* ═══════════════════════════════════════════════════════════════
   CTA STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ── CARD (default) ── */
.ghl-cta--card {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ── BANNER ── */
.ghl-cta--banner {
  width: 100%;
  max-width: 100%;
}
.ghl-cta--banner .ghl-cta__features {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

/* ── SIDEBAR ── */
.ghl-cta--sidebar {
  max-width: 340px;
  padding: 22px !important;
}
.ghl-cta--sidebar .ghl-cta__title { font-size: 17px !important; }
.ghl-cta--sidebar .ghl-cta__subtitle { font-size: 12.5px !important; }
.ghl-cta--sidebar .ghl-cta__features {
  grid-template-columns: 1fr;
}
.ghl-cta--sidebar .ghl-cta__btn {
  min-width: unset;
  width: 100%;
  font-size: 13.5px;
  padding: 12px 16px;
}
.ghl-cta--sidebar .ghl-cta__actions { flex-direction: column; }
.ghl-cta--sidebar .ghl-cta__pricing {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.ghl-cta--sidebar .ghl-price-note { margin-left: 0; }

/* ── MINIMAL ── */
.ghl-cta--minimal { padding: 20px !important; }
.ghl-cta--minimal .ghl-cta__features { display: none; }
.ghl-cta--minimal .ghl-cta__pricing { display: none; }
.ghl-cta--minimal .ghl-cta__subtitle { font-size: 13px !important; margin-bottom: 14px !important; }

/* ── FEATURED ── */
.ghl-cta--featured {
  padding: 48px !important;
  text-align: center;
}
.ghl-cta--featured .ghl-cta__logo { justify-content: center; }
.ghl-cta--featured .ghl-cta__title { font-size: clamp(22px, 4vw, 32px) !important; }
.ghl-cta--featured .ghl-cta__features { justify-items: center; }
.ghl-cta--featured .ghl-cta__actions { justify-content: center; }
.ghl-cta--featured .ghl-cta__btn { min-width: unset; flex: unset; }
.ghl-cta--featured .ghl-cta__disclaimer { text-align: center; }
.ghl-cta--featured .ghl-cta__timer { justify-content: center; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .ghl-cta {
    border-radius: var(--ghl-radius);
    margin: 16px 0;
  }
  .ghl-theme--gradient,
  .ghl-theme--light,
  .ghl-theme--dark { padding: 22px; }

  .ghl-cta__features { grid-template-columns: 1fr 1fr; }
  .ghl-cta__actions { flex-direction: column; }
  .ghl-cta__btn { min-width: unset; width: 100%; font-size: 14px; padding: 13px 18px; }

  .ghl-cta--featured { padding: 28px !important; }
  .ghl-cta--featured .ghl-cta__actions { align-items: center; }

  .ghl-cta__title { font-size: 18px !important; }
  .ghl-price-note { display: none; }
}

@media (max-width: 480px) {
  .ghl-cta__features { grid-template-columns: 1fr; }
  .ghl-cta__pricing { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ghl-price-amount { font-size: 22px; }
  .ghl-btn--lg { padding: 14px 22px; font-size: 15px; }
}

/* ── Astra Sidebar Compatibility ── */
.widget .ghl-cta--sidebar,
.sidebar .ghl-cta,
[class*="ast-"] .ghl-cta--sidebar {
  max-width: 100%;
  margin: 0 0 20px 0;
}
.widget .ghl-cta__features {
  grid-template-columns: 1fr;
}

/* ── Astra Post Content Compatibility ── */
.entry-content .ghl-cta,
.post-content .ghl-cta,
.ast-post-format .ghl-cta {
  clear: both;
}

/* ── Hover lift effect on desktop ── */
@media (hover: hover) {
  .ghl-cta--card:hover,
  .ghl-cta--sidebar:hover,
  .ghl-cta--minimal:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 70px rgba(0,0,0,0.28) !important;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s ease;
  }
}
