/* ============================================================
   campaign-bad-beat.css — Bad Beat Campaign Spotlight
   Full visual redesign — media-first, cinematic
   Requires: base.css + components.css + case-study.css
   ============================================================ */

/* ── HERO ──────────────────────────────────────────── */
.bb-hero {
    position: relative;
    min-height: 100vh;
    background: #000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 80px 40px 0;  /* 40px h-padding matches site-wide container system */
}

.bb-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bb-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;  /* parent .bb-hero provides horizontal padding */
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    /* Align left edge with hero copy — same centering as .bb-hero__inner */
    max-width: var(--content-wide);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.bb-hero__back {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.bb-hero__back:hover { color: var(--text-primary); }
.bb-hero__breadcrumb-sep  { opacity: 0.3; margin: 0 8px; }
.bb-hero__breadcrumb-dot  { opacity: 0.3; margin: 0 8px; }
.bb-hero__breadcrumb-cur  { color: #fff; }
.bb-hero__breadcrumb-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.bb-hero__breadcrumb-link:hover { color: rgba(255,255,255,0.7); }


.bb-hero__inner {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 64px;
    align-items: center;
    padding: 40px 0 80px;  /* no h-padding — parent .bb-hero provides it */
    max-width: var(--content-wide);  /* 1100px — matches GGPoker/home centering */
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.bb-hero__copy {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bb-hero__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.bb-hero__title {
    font-size: var(--fs-hero);
    font-weight: var(--fw-heading);
    letter-spacing: var(--ls-heading);
    line-height: var(--lh-heading);
    color: rgba(255,255,255,0.4);
}
.bb-hero__title em {
    font-style: normal;
    color: var(--text-primary);
}

.bb-hero__sub {
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
}

.bb-hero__stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 8px;
    flex-wrap: wrap;
}

.bb-hero__stat { display: flex; flex-direction: column; gap: 2px; }
.bb-hero__stat-num {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--text-primary);
}
.bb-hero__stat-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bb-hero__stat-rule {
    width: 1px;
    height: 40px;
    background: var(--border);
    flex-shrink: 0;
}

.bb-hero__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.bb-hero__meta-item { display: flex; gap: 16px; align-items: baseline; }
.bb-hero__meta-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    width: 110px;
    flex-shrink: 0;
}
.bb-hero__meta-val {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Hero video */
.bb-hero__video-wrap {
    position: relative;
    flex-shrink: 0;
    /* Sizing lives here so wrap has dimensions even before iframe is injected */
    width: clamp(220px, 22vw, 340px);
    aspect-ratio: 9 / 16;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 40px 80px rgba(0,0,0,0.8),
        0 0 120px rgba(255,255,255,0.04);
    overflow: hidden; /* clips both poster and iframe to border-radius */
}

.bb-hero__video {
    /* Fills wrap after click-to-play injects the iframe */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
}

.bb-hero__video-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 40px;
    z-index: 0;
}
/* Poster wrap — click-to-play; removed by JS on click */
.bb-hero__poster-wrap {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
}
.bb-hero__video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bb-hero__play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}
.bb-hero__play-btn:hover { background: rgba(0,0,0,0.18); }
.bb-hero__play-btn svg { width: 64px; height: 64px; filter: drop-shadow(0 2px 12px rgba(0,0,0,0.7)); }




/* ── BIG STAT CALLOUT ──────────────────────────────── */
.bb-callout {
    background: #000;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 100px 40px;  /* 40px h-padding matches site-wide */
    text-align: center;
    position: relative;
    overflow: hidden;
}
.bb-callout::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(255,255,255,0.025) 0%, transparent 70%);
    pointer-events: none;
}
.bb-callout__inner { position: relative; z-index: 1; }
.bb-callout__label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 auto 16px;
    max-width: none;
}
.bb-callout__number {
    font-size: clamp(5rem, 14vw, 12rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.9;
    color: var(--text-primary);
    margin-bottom: 32px;
}
.bb-callout__x {
    color: rgba(255,255,255,0.28);
}
.bb-callout__sub {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 52ch;
    margin: 0 auto;
    text-align: center;
}

/* ── MULTI-FORMAT SHOWCASE ─────────────────────────── */
.bb-formats {
    padding: 100px 40px;  /* 40px h-padding matches site-wide */
    background: var(--bg-primary);
}
.bb-formats__inner {
    max-width: 1400px;  /* wider for the visual grid */
    margin: 0 auto;
}
.bb-formats__left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.bb-formats__header {
    margin-bottom: 36px;
    max-width: 560px;
}
.bb-formats__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.bb-formats__title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: var(--fw-heading);
    letter-spacing: var(--ls-heading);
    line-height: 1.05;
    color: rgba(255,255,255,0.45);
    margin-bottom: 16px;
}
.bb-formats__title em { font-style: normal; color: var(--text-primary); }
.bb-formats__body {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.bb-formats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: end;
    margin-bottom: 48px;
}

.bb-format-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bb-format-card__video-wrap {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    position: relative;
}
.bb-format-card__video-wrap--16x9 { aspect-ratio: 16/9; }
.bb-format-card__video-wrap--1x1  { aspect-ratio: 1; }
.bb-format-card__video-wrap--4x5  { aspect-ratio: 4/5; }
.bb-format-card__video-wrap--9x16 { aspect-ratio: 9/16; }

.bb-format-card__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bb-format-card__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bb-format-card__ratio {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.08em;
}
.bb-format-card__platform {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

/* Blender placeholder */
.bb-formats__blender-placeholder {
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    background: rgba(255,255,255,0.01);
}
.bb-formats__blender-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.bb-formats__blender-sub {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.2);
    line-height: 1.6;
}

/* ── CONTENT SECTIONS ──────────────────────────────── */
.bb-section {
    padding: 100px 40px;  /* 40px h-padding matches site-wide */
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}
.bb-section--alt { background: #000; }

.bb-section__inner {
    max-width: var(--content-wide);  /* 1100px — matches GGPoker/home centering */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.bb-section__inner--narrow {
    grid-template-columns: 1fr;
    max-width: 720px;
    gap: 20px;
}

.bb-section__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}
.bb-section__title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: var(--fw-heading);
    letter-spacing: var(--ls-heading);
    line-height: 1.1;
    margin-bottom: 20px;
}
.bb-section__body {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
    max-width: 56ch;
}

/* Stat cards in section */
.bb-section__stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.bb-section__stat-card {
    padding: 24px 28px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
}
.bb-section__stat-num {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 6px;
}
.bb-section__stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Principles */
.bb-section__principles {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.bb-principle {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}
.bb-principle:first-child { border-top: 1px solid var(--border); }
.bb-principle__num {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    padding-top: 4px;
    flex-shrink: 0;
    width: 28px;
}
.bb-principle__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}
.bb-principle__body {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Impact strip */
.bb-impact-strip {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.bb-impact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.bb-impact-arrow {
    font-size: 1rem;
    color: var(--text-primary);
    flex-shrink: 0;
}

/* MotionMind cross-link */
.bb-motionmind-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
    margin-top: 24px;
    transition: border-color 0.2s, color 0.2s;
}
.bb-motionmind-link:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* ── MORE CAMPAIGNS ────────────────────────────────── */
.bb-more {
    background: #000;
    border-top: 1px solid var(--border);
    padding: 80px 40px;  /* 40px h-padding matches site-wide */
}
.bb-more__inner {
    max-width: var(--content-wide);  /* 1100px — matches GGPoker/home centering */
    margin: 0 auto;
}
.bb-more__label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 32px;
}
.bb-more__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.bb-more__card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background 0.2s;
}
.bb-more__card:hover {
    border-color: var(--border-strong);
    background: rgba(255,255,255,0.04);
}
.bb-more__card-video,
.bb-more__card-img {
    width: 72px;
    aspect-ratio: 9/16;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.bb-more__card-info { display: flex; flex-direction: column; gap: 4px; }
.bb-more__card-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.bb-more__card-title { font-weight: 600; font-size: 0.92rem; }
.bb-more__card-stat { font-size: 0.78rem; color: var(--text-muted); }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1024px) {
    .bb-hero__inner {
        grid-template-columns: 1fr;
        padding: 32px 0 60px;  /* parent handles h-padding */
    }
    .bb-hero__video-wrap { display: none; } /* video moves into hero on mobile */
    .bb-formats__grid { grid-template-columns: repeat(2, 1fr); }
    .bb-section__inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 600px) {
    /* Tighten section h-padding on small screens */
    .bb-hero, .bb-callout, .bb-formats, .bb-section, .bb-more { padding-left: 20px; padding-right: 20px; }
    .bb-hero__breadcrumb { padding: 12px 0; }  /* parent provides h-padding */
    .bb-formats__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .bb-more__grid { grid-template-columns: 1fr; }
    .bb-hero__stats { gap: 16px; }
    .bb-hero__stat-rule { display: none; }
}

/* ── Multi-format video split + region strip (100K Freeroll) ── */

/* Two-column top: copy left, video right */
.bb-formats__top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 52px;
}

.bb-formats__video-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    line-height: 0;
}

.bb-formats__video {
    width: 100%;
    aspect-ratio: 4 / 5; /* Blender composite render is 1080×1350 */
    display: block;
    object-fit: cover;
    border-radius: 4px;
}

/* Inset vignette — soft black fade from all edges */
.bb-formats__video-fade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 70px 35px #000;
}

/* Region filmstrip — constrained to left column width */
.bb-formats__regions {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0;
    align-items: start;
}

.bb-formats__region-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.bb-formats__region-item img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

.bb-formats__region-label {
    font-family: var(--font-mono);
    font-size: 0.52rem;
    color: var(--text-muted);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    text-align: center;
}

@media (max-width: 900px) {
    .bb-formats__top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .bb-formats__regions {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 600px) {
    .bb-formats { padding-left: 20px; padding-right: 20px; }
    .bb-formats__regions {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* Preloaded Vimeo iframe — fills container, buffering silently */
/* Overlay with thumbnail + play button — sits on top of iframe */
/* Click adds .is-playing to parent → overlay fades out instantly */
