/* ============================================================
   Promo Pages — Dark Poker Aesthetic
   ============================================================ */

/* ---- Hero ---- */
.promo-hero {
  background: linear-gradient(160deg, var(--color-surface) 0%, var(--color-bg) 60%);
  border-bottom: 1px solid var(--color-border);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}

.promo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 80% 50%, rgba(204, 24, 29, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.promo-hero__inner {
  position: relative;
  z-index: 1;
}

.promo-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.promo-hero__eyebrow svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.promo-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 16px;
}

.promo-hero__title span {
  color: var(--color-primary);
}

.promo-hero__subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 520px;
  line-height: 1.6;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: var(--color-text);
}

.breadcrumb__sep {
  opacity: 0.4;
  font-size: 0.75rem;
}

.breadcrumb__current {
  color: var(--color-text);
}

/* ---- Promo Grid (listing page) ---- */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding: 48px 0;
}

/* ---- Promo Card (listing page) ---- */
.promo-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
}

.promo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  opacity: 0;
  transition: opacity 0.2s;
}

.promo-card:hover {
  border-color: rgba(204, 24, 29, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.promo-card:hover::before {
  opacity: 1;
}

.promo-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.promo-card__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
}

.promo-card__network {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.promo-card__ambassador-count {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.promo-card__ambassador-count svg {
  width: 14px;
  height: 14px;
  color: var(--color-gold);
}

/* Inline code display in card */
.promo-card__code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-surface-2);
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  padding: 10px 14px;
}

.promo-card__code {
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  flex: 1;
}

.promo-card__oneliner {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.promo-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.promo-card__actions .btn-primary {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 9px 14px;
  font-size: 0.8125rem;
}

.promo-card__actions .btn-ghost {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 9px 14px;
  font-size: 0.8125rem;
}

/* ---- Promo Code Box (detail page) ---- */
.promo-code-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}

.promo-code-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 400px 200px at 50% 0%, rgba(219, 180, 117, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.promo-code-section__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.promo-code-box {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--color-surface-2);
  border: 2px dashed var(--color-gold);
  border-radius: 10px;
  padding: 0;
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.promo-code-box__code {
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  padding: 18px 28px;
  line-height: 1;
}

.promo-copy-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0 24px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  align-self: stretch;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
  border-left: 1px solid rgba(255,255,255,0.1);
}

.promo-copy-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.promo-copy-btn:hover {
  background: #e01e24;
}

.promo-copy-btn:active {
  transform: scale(0.97);
}

.promo-copy-btn.copied {
  background: #1a8a4a;
}

.promo-code-section__hint {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  position: relative;
  z-index: 1;
}

/* ---- How to Use Steps ---- */
.promo-steps {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
}

.promo-steps__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 24px;
}

.promo-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.promo-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.promo-step:first-of-type {
  padding-top: 0;
}

.promo-step__number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.promo-step__text {
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.55;
  padding-top: 6px;
}

.promo-step__text strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ---- About Section ---- */
.promo-about {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
}

.promo-about__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 14px;
}

.promo-about__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: none;
}

/* ---- Ambassador Showcase ---- */
.promo-ambassadors {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
}

.promo-ambassadors__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
}

.promo-ambassadors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.promo-ambassador-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s, transform 0.15s;
}

.promo-ambassador-card:hover {
  border-color: rgba(204, 24, 29, 0.4);
  transform: translateY(-2px);
}

.promo-ambassador-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  margin: 0 auto 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.promo-ambassador-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-ambassador-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.promo-ambassador-card__reach {
  font-size: 0.75rem;
  color: var(--color-gold);
  font-weight: 500;
}

/* ---- CTA / Related Links ---- */
.promo-cta {
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(35, 35, 35, 0.8) 100%);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 32px;
}

.promo-cta:hover {
  border-color: rgba(204, 24, 29, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.promo-cta__content {
  flex: 1;
}

.promo-cta__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.promo-cta__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
}

.promo-cta__arrow {
  color: var(--color-primary);
  flex-shrink: 0;
}

.promo-cta__arrow svg {
  width: 24px;
  height: 24px;
}

/* ---- Detail Layout ---- */
.promo-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  padding: 48px 0;
  align-items: start;
}

.promo-detail-sidebar {
  position: sticky;
  top: 88px;
}

.promo-sidebar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.promo-sidebar-card__title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.promo-sidebar-card__stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
}

.promo-sidebar-card__stat:last-child {
  border-bottom: none;
}

.promo-sidebar-card__stat-label {
  color: var(--color-text-muted);
}

.promo-sidebar-card__stat-value {
  color: var(--color-text);
  font-weight: 600;
}

/* Section header shared utility */
.section-header {
  margin-bottom: 32px;
}

.section-header__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.section-header__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
}

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.15s;
}

.back-btn:hover {
  color: var(--color-text);
}

.back-btn svg {
  width: 16px;
  height: 16px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .promo-detail-layout {
    grid-template-columns: 1fr;
  }

  .promo-detail-sidebar {
    position: static;
  }
}

@media (max-width: 600px) {
  .promo-hero {
    padding: 40px 0 32px;
  }

  .promo-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 32px 0;
  }

  .promo-code-section {
    padding: 24px 16px;
  }

  .promo-code-box__code {
    font-size: 1.5rem;
    padding: 14px 16px;
  }

  .promo-copy-btn {
    padding: 0 14px;
    font-size: 0.8125rem;
  }

  .promo-steps {
    padding: 20px;
  }

  .promo-about,
  .promo-ambassadors,
  .promo-cta {
    padding: 20px;
  }

  .promo-ambassadors__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .promo-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .promo-detail-layout {
    padding: 24px 0;
  }
}

/* ---- Shared Button Styles ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--color-primary);
  color: #fff;
  border: 1px solid var(--color-primary);
  border-radius: 6px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #e01e24;
  border-color: #e01e24;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}

.btn-ghost:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-color: rgba(255,255,255,0.15);
}

.btn-ghost:active {
  transform: scale(0.97);
}
