/* ============================================================
   VegasBet — Promotions CSS
   ============================================================ */

/* ── Page wrapper ───────────────────────────────────────────── */
.promos-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 0 48px;
}

/* ── Hero Banner ────────────────────────────────────────────── */
.promos-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 48px;
  margin-bottom: 36px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 16px;
  /* Darker purple that gently shimmers across the whole banner */
  background: linear-gradient(120deg, #0b0518 0%, #17092f 28%, #24105a 50%, #17092f 72%, #0b0518 100%);
  background-size: 220% 220%;
  animation: promoHeroShimmer 14s ease-in-out infinite;
}
@keyframes promoHeroShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Soft glow behind the logo so it stands out on the dark banner */
.promos-hero::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 20px;
  width: 300px;
  height: 300px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.30), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .promos-hero { animation: none; }
}

.promos-hero-text {
  position: relative;
  z-index: 1;
}

.promos-hero-text h1 {
  color: var(--text-primary);
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 14px;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

.promos-hero-text p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 480px;
  line-height: 1.65;
  margin: 0;
}

/* Brand logo — right side, made to pop */
.promos-hero-logo {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 60px;
}
.promos-hero-logo img {
  width: 132px;
  height: auto;
  filter: drop-shadow(0 0 22px rgba(168, 85, 247, 0.8))
          drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

/* ── Section Heading ────────────────────────────────────────── */
.promos-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
}

.promos-section-icon {
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}

/* ── Promotions Grid ────────────────────────────────────────── */
.promos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── Promo Card ─────────────────────────────────────────────── */
.promo-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease,
              box-shadow 0.2s ease;
  min-height: 148px;
}

.promo-card:hover {
  border-color: rgba(124, 58, 237, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.18);
}

.promo-card-img {
  flex: 0 0 140px;
  min-height: 148px;
}

.promo-card-body {
  flex: 1;
  padding: 15px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/* ── Badge variants ─────────────────────────────────────────── */
.promo-badge {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  width: fit-content;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
}

.promo-badge.hot      { background: #ef4444; }
.promo-badge.new      { background: #10b981; }
.promo-badge.vip      { background: #f59e0b; color: #000; }
.promo-badge.live     { background: #ef4444; }
.promo-badge.boost    { background: #f59e0b; color: #000; }
.promo-badge.crypto   { background: #6366f1; }
.promo-badge.weekly   { background: var(--purple); }
.promo-badge.bonus    { background: #10b981; }
.promo-badge.exclusive { background: #f59e0b; color: #000; }

/* ── Card text ──────────────────────────────────────────────── */
.promo-card-title {
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  font-family: 'Inter', sans-serif;
}

.promo-card-desc {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.promo-read-more {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
  display: inline-block;
}

.promo-card:hover .promo-read-more {
  text-decoration: underline;
}

/* ── Detail page ────────────────────────────────────────────── */
.promo-breadcrumb {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

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

.promo-breadcrumb .sep { opacity: 0.5; }

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

.promo-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 24px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: color 0.15s;
}

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

.promo-detail-hero {
  width: 100%;
  height: 280px;
  border-radius: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  flex-direction: column;
  padding: 28px 36px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

/* ── Non-image hero (all promos except Meet Ronaldo) ─────────────────────────
   Was a flat, gridded mesh. Now a rich single-colour banner: the per-promo base
   colour stays as the backdrop, dressed up with a big centred title, a slow-
   drifting luminous glow and a gentle diagonal light sweep. Subtle by design. */
.promo-detail-hero:not(.promo-detail-hero--img) {
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 300px;
}

/* drifting luminous glow (top-light + bottom-shadow) — gives the flat gradient depth */
.promo-detail-hero:not(.promo-detail-hero--img)::before {
  content: '';
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(38% 52% at 24% 22%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(46% 60% at 80% 96%, rgba(0, 0, 0, 0.32), transparent 66%);
  pointer-events: none;
  z-index: 0;
  animation: promoHeroDrift 13s ease-in-out infinite alternate;
}

/* slow diagonal sheen sweeping across the banner */
.promo-detail-hero:not(.promo-detail-hero--img)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.13) 50%, transparent 60%);
  background-size: 250% 100%;
  pointer-events: none;
  z-index: 1;
  animation: promoHeroSheen 8s linear infinite;
}

.promo-detail-hero:not(.promo-detail-hero--img) .promo-detail-hero-inner {
  z-index: 2;
  margin-top: 0;
}

/* big, bold, glowing promo title */
.promo-detail-hero:not(.promo-detail-hero--img) .promo-detail-hero-title {
  font-size: clamp(22px, 4.6vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 820px;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.5), 0 0 46px rgba(168, 85, 247, 0.28);
  animation: promoTitleRise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.promo-detail-hero:not(.promo-detail-hero--img) .promo-detail-hero-badge {
  font-size: 12px;
  padding: 5px 15px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: promoTitleRise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes promoHeroDrift {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.09); }
}
@keyframes promoHeroSheen {
  0%   { background-position: 200% 0; }
  100% { background-position: -90% 0; }
}
@keyframes promoTitleRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.promo-detail-hero-inner {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.promo-detail-hero-badge {
  display: inline-block;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
}

.promo-detail-hero-title {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  font-family: 'Inter', sans-serif;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  max-width: 600px;
}

.promo-detail-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 44px;
  color: var(--text-primary);
  line-height: 1.7;
}

.promo-detail-content h2 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
}

.promo-detail-content h2:first-child { margin-top: 0; }

.promo-detail-content p {
  color: var(--text-secondary);
  margin: 0 0 12px;
}

/* Muted fine-print line (responsible-play notice etc.) */
.promo-detail-note {
  margin-top: 20px;
  color: var(--text-muted);
}
.promo-detail-note small { font-size: 0.86rem; line-height: 1.5; }

.promo-detail-content ul {
  color: var(--text-secondary);
  padding-left: 22px;
  margin: 0 0 12px;
}

.promo-detail-content ul li { margin-bottom: 7px; }

/* ── Artwork cards ──────────────────────────────────────────── */

/* All three artwork cards show the FULL image (object-fit: contain → nothing
   cropped, quality preserved). The card height is driven by its text, and the
   letterbox is painted with a gradient sampled from each artwork's own top/
   bottom edge colours — so the fill blends into the art and reads as no bars
   at any card height. */
.promo-card--portrait .promo-card-img,
.promo-card--art .promo-card-img {
  position: relative;
  overflow: hidden;
}
.promo-card--portrait .promo-card-image,
.promo-card--portrait img.promo-card-image,
.promo-card--art .promo-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Featured Ronaldo card — bright animated neon backdrop that pops */
.promo-card--portrait .promo-card-img {
  background: radial-gradient(circle at 50% 34%, #6a2fc0 0%, #34176e 48%, #180b34 100%);
}
/* drifting purple glow behind the cut-out */
.promo-card--portrait .promo-card-img::before {
  content: '';
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle, rgba(190, 120, 255, 0.6), transparent 60%);
  z-index: 0;
  pointer-events: none;
  animation: promoRonaldoGlow 6.5s ease-in-out infinite alternate;
}
@keyframes promoRonaldoGlow {
  0%   { transform: translate(-7%, 6%) scale(1);   opacity: 0.55; }
  100% { transform: translate(7%, -6%) scale(1.2); opacity: 1;    }
}
/* neon shine sweeping across the backdrop */
.promo-card--portrait .promo-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 34%, rgba(216, 160, 255, 0.22) 50%, transparent 66%);
  background-size: 250% 100%;
  z-index: 0;
  pointer-events: none;
  animation: promoRonaldoShine 4.5s linear infinite;
}
@keyframes promoRonaldoShine {
  0%   { background-position: 200% 0; }
  100% { background-position: -80% 0; }
}
/* neon pulse around the whole card so it stands out from the rest */
.promo-card--portrait {
  border-color: rgba(168, 85, 247, 0.55);
  animation: promoNeonPulse 3.2s ease-in-out infinite;
}
@keyframes promoNeonPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(168, 85, 247, 0.30), inset 0 0 22px rgba(124, 58, 237, 0.12); border-color: rgba(168, 85, 247, 0.45); }
  50%      { box-shadow: 0 0 30px rgba(168, 85, 247, 0.62), inset 0 0 30px rgba(168, 85, 247, 0.22); border-color: rgba(205, 130, 255, 0.85); }
}
.promo-card--portrait .promo-card-image,
.promo-card--portrait img.promo-card-image {
  position: relative;
  z-index: 1;
}

/* Edge-matched letterbox fills for the artwork cards (invisible bars) */
.promo-img--welcome  { background: linear-gradient(180deg, #31105a, #441c6e); }
.promo-img--refer    { background: linear-gradient(180deg, #152e21, #203b2c); }
.promo-img--cashback { background: linear-gradient(180deg, #200d34, #311547); }
.promo-img--freebet  { background: linear-gradient(180deg, #664406, #795006); }
.promo-img--vip      { background: linear-gradient(180deg, #592406, #702e07); }
.promo-img--crypto   { background: linear-gradient(180deg, #092c21, #0e3426); }
.promo-img--live     { background: linear-gradient(180deg, #440818, #4d0b1d); }

@media (prefers-reduced-motion: reduce) {
  .promo-card--portrait,
  .promo-card--portrait .promo-card-img::before,
  .promo-card--portrait .promo-card-img::after,
  .promo-detail-hero:not(.promo-detail-hero--img)::before,
  .promo-detail-hero:not(.promo-detail-hero--img)::after,
  .promo-detail-hero:not(.promo-detail-hero--img) .promo-detail-hero-title,
  .promo-detail-hero:not(.promo-detail-hero--img) .promo-detail-hero-badge { animation: none; }
}


/* ── Detail hero — image variant ────────────────────────────── */
.promo-detail-hero--img {
  height: 400px;
  background: #111;
  padding: 28px 36px;
}

.promo-detail-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.promo-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0) 100%);
  z-index: 1;
}

.promo-detail-hero--img .promo-detail-hero-inner {
  z-index: 2;
}

/* ── Detail hero — cut-out variant (Meet Ronaldo), PHONES ONLY ─────
   On desktop the composed banner fits the wide hero and stays; only a
   phone-width hero cropped it badly enough to chop the artwork's own title
   off. Below 768px the <picture> swaps in the transparent cut-out the
   /promotions card uses and this block dresses it: whole (never cropped) over
   a deep purple backdrop with a drifting glow and a slow neon sheen.
   The breakpoint MUST match the <source media> in promotion_detail.html —
   otherwise one of the two images gets the wrong treatment. */
@media (max-width: 768px) {
  .promo-detail-hero--cutout {
    background: radial-gradient(circle at 50% 34%, #6a2fc0 0%, #34176e 48%, #180b34 100%);
    padding: 0;
  }

  /* drifting purple glow behind the cut-out */
  .promo-detail-hero--cutout::before {
    content: '';
    position: absolute;
    inset: -25%;
    background: radial-gradient(circle, rgba(190, 120, 255, 0.55), transparent 60%);
    z-index: 0;
    pointer-events: none;
    animation: promoRonaldoGlow 6.5s ease-in-out infinite alternate;
  }

  /* neon shine sweeping across the backdrop */
  .promo-detail-hero--cutout::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 34%, rgba(216, 160, 255, 0.20) 50%, transparent 66%);
    background-size: 250% 100%;
    z-index: 0;
    pointer-events: none;
    animation: promoRonaldoShine 4.5s linear infinite;
  }

  /* whole artwork, standing on the bottom edge of the banner */
  .promo-detail-hero--cutout .promo-detail-hero-photo {
    object-fit: contain;
    object-position: center bottom;
    z-index: 1;
    filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.55));
  }

  /* the photo hero's dark bottom scrim would only mute the backdrop here */
  .promo-detail-hero--cutout .promo-detail-hero-overlay {
    background: radial-gradient(70% 60% at 50% 108%, rgba(0, 0, 0, 0.45), transparent 70%);
    z-index: 2;
  }

  .promo-detail-hero--cutout .promo-detail-hero-badge {
    z-index: 3;
  }
}

/* ── Gold badge variant on detail hero ──────────────────────── */
.promo-detail-hero-badge--exclusive {
  background: #f59e0b;
  color: #000;
}

/* ── Badge pinned to bottom-right of image hero ─────────────── */
.promo-detail-hero--img .promo-detail-hero-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  top: auto;
  left: auto;
  z-index: 2;
}

/* ── Checkmark bullet list ──────────────────────────────────── */
.promo-detail-check-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 12px;
}

.promo-detail-check-list li {
  color: var(--text-secondary);
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
}

.promo-detail-check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #a855f7;
  font-weight: 700;
}

/* ── Detail CTA button ──────────────────────────────────────── */
.promo-detail-cta {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 32px;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

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

  .promos-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 24px;
    gap: 20px;
  }

  /* Mobile: drop the logo + glow → just clean, centred text */
  .promos-hero-logo,
  .promos-hero::after { display: none; }
  .promos-hero-text p { max-width: none; }

  .promos-page { padding: 16px 0 32px; }

  .promo-detail-content { padding: 24px 20px; }

  .promo-detail-hero { height: 200px; padding: 20px 24px; }

  .promo-detail-hero--img { height: 260px; }

  .promo-detail-hero-title { font-size: 20px; }
}

@media (max-width: 768px) {
  .promo-detail-hero-img {
    object-fit: cover;
    object-position: center top;
    width: 100%;
    height: 300px;
  }

  /* the cut-out is never cropped — it fills the banner height and stays whole,
     and a portrait figure needs the height back to read at phone widths */
  .promo-detail-hero--cutout { height: 320px; }

  .promo-detail-hero--cutout .promo-detail-hero-img {
    object-fit: contain;
    object-position: center bottom;
    height: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-detail-hero--cutout::before,
  .promo-detail-hero--cutout::after { animation: none; }
}

/* Promo cards keep their desktop row layout at every width (only the grid
   drops to one column at <=900px) so the cards + images look identical on
   phone and desktop — no per-breakpoint restructuring that would "break" them. */
