/* ══════════════════════════════════════════════════════════════════
   CINEMATIC HERO — Background image + premium overlay system
   Applied on top of existing browse.css hero rules
   ══════════════════════════════════════════════════════════════════ */

/* Hero image layer — sits behind all overlays */
.bw-hero {
  /* Slightly more padding to let the image breathe */
  padding: 9rem 0 7rem;
}

.bw-hero-bg {
  /* Image base layer with cinematic overlay stack */
  background:
    /* Layer 1: Strong left-side dark gradient for text readability */
    linear-gradient(90deg, rgba(5,8,16,0.92) 0%, rgba(5,8,16,0.8) 35%, rgba(5,8,16,0.5) 60%, rgba(5,8,16,0.35) 100%),
    /* Layer 2: Top-down cinematic vignette */
    linear-gradient(180deg, rgba(5,8,16,0.7) 0%, rgba(5,8,16,0.15) 30%, rgba(5,8,16,0.1) 60%, rgba(5,8,16,0.85) 100%),
    /* Layer 3: Subtle warm tone wash to match gold accent */
    linear-gradient(135deg, rgba(212,168,83,0.04) 0%, transparent 40%, rgba(212,168,83,0.02) 100%),
    /* Layer 4: The actual image */
    url('/images/coach-night.webp');

  background-size: auto, auto, auto, cover;
  background-position: center, center, center, center 40%;
  background-repeat: no-repeat;
}

/* Keep the grid pattern but make it subtler over the image */
.bw-hero-bg::before {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.005) 0px, transparent 1px, transparent 120px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.005) 0px, transparent 1px, transparent 120px);
  opacity: 0.6;
}

/* Bottom fade — ensure clean transition to page content */
.bw-hero-bg::after {
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary, #0a0e1a) 0%, rgba(10,14,26,0.8) 40%, transparent 100%);
}

/* Ensure the split layout text side has strong contrast */
.bw-hero-split {
  position: relative;
  z-index: 2;
}

/* Text shadow for headline readability over image */
.bw-hero-left .bw-hero-title {
  text-shadow:
    0 2px 20px rgba(0,0,0,0.5),
    0 4px 40px rgba(0,0,0,0.3);
}
.bw-hero-left .bw-hero-sub {
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

/* Pulse card — slightly stronger glass over the image */
.bw-pulse-card {
  background:
    linear-gradient(180deg, rgba(10,14,26,0.85) 0%, rgba(10,14,26,0.9) 100%);
  border-color: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 24px 80px rgba(0,0,0,0.5),
    0 4px 16px rgba(0,0,0,0.3);
}

/* ─── Responsive image adjustments ─── */
@media (max-width: 900px) {
  .bw-hero {
    padding: 7rem 0 5.5rem;
  }
  .bw-hero-bg {
    /* Stronger overlay on mobile for readability over centered layout */
    background:
      linear-gradient(180deg, rgba(5,8,16,0.85) 0%, rgba(5,8,16,0.6) 40%, rgba(5,8,16,0.5) 60%, rgba(5,8,16,0.9) 100%),
      linear-gradient(135deg, rgba(212,168,83,0.03) 0%, transparent 50%),
      url('/images/coach-night.webp');
    background-size: auto, auto, cover;
    background-position: center, center, center 35%;
  }
}

@media (max-width: 500px) {
  .bw-hero { padding: 6rem 0 4.5rem; }
  .bw-hero-bg {
    /* Even stronger overlay on small screens */
    background:
      linear-gradient(180deg, rgba(5,8,16,0.9) 0%, rgba(5,8,16,0.7) 40%, rgba(5,8,16,0.65) 60%, rgba(5,8,16,0.95) 100%),
      url('/images/coach-night.webp');
    background-size: auto, cover;
    background-position: center, center 30%;
  }
}

/* ─── Brand detail hero — no image, keep gradient-only ─── */
.bw-hero--brand .bw-hero-bg {
  background:
    radial-gradient(ellipse 60% 45% at 50% -8%, rgba(212,168,83,0.045) 0%, transparent 65%),
    radial-gradient(ellipse 80% 40% at 20% 80%, rgba(10,14,26,0.8) 0%, transparent 60%),
    linear-gradient(180deg, #050810 0%, #080c18 40%, var(--bg-primary, #0a0e1a) 100%);
}
