/* ═════════════════════════════════════════════════════════════
   Slider style variants — with animations, shapes, motion
   Applied via [data-slider-style="X"] on .promotions-slider
   ═════════════════════════════════════════════════════════════ */

.promotions-slider[data-slider-style] { --sl-accent: var(--app-color, #6366f1); position: relative; }
.promotions-slider[data-slider-style] .promotion-item { position: relative; overflow: hidden; }

/* ═══════════════════════════════════════
   1️⃣ DEFAULT — clean baseline with soft Ken Burns pan on active slide
   ═══════════════════════════════════════ */
.promotions-slider[data-slider-style="default"] .owl-item.active .promotion-item img,
.promotions-slider[data-slider-style="default"] .owl-item.active .promotion-item video {
    animation: sl-kenburns-soft 12s ease-out both;
}
@keyframes sl-kenburns-soft {
    0% { transform: scale(1); }
    100% { transform: scale(1.06); }
}

/* ═══════════════════════════════════════
   2️⃣ FULLWIDTH — edge-to-edge with strong Ken Burns + bottom gradient + shimmer
   ═══════════════════════════════════════ */
.promotions-slider[data-slider-style="fullwidth"] { border-radius: 0 !important; padding: 0 !important; margin-inline: calc(-1 * var(--container-pad, 15px)) !important; }
.promotions-slider[data-slider-style="fullwidth"] .promotion-item { border-radius: 0 !important; }
.promotions-slider[data-slider-style="fullwidth"] .promotion-item img,
.promotions-slider[data-slider-style="fullwidth"] .promotion-item video { border-radius: 0 !important; width: 100% !important; height: auto; display: block; }
.promotions-slider[data-slider-style="fullwidth"] .owl-item.active .promotion-item img,
.promotions-slider[data-slider-style="fullwidth"] .owl-item.active .promotion-item video {
    animation: sl-kenburns-strong 10s ease-in-out both;
}
@keyframes sl-kenburns-strong {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(-2%, -1%); }
}
/* Bottom gradient overlay */
.promotions-slider[data-slider-style="fullwidth"] .promotion-item::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45) 100%);
    pointer-events: none;
}
/* Shimmer sweep across active slide */
.promotions-slider[data-slider-style="fullwidth"] .owl-item.active .promotion-item::before {
    content: "";
    position: absolute; top: 0; bottom: 0;
    inset-inline-start: -100%;
    width: 50%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    animation: sl-shimmer 3s ease-in-out 0.5s;
    z-index: 2;
    pointer-events: none;
}
@keyframes sl-shimmer {
    0% { inset-inline-start: -100%; }
    100% { inset-inline-start: 200%; }
}

/* ═══════════════════════════════════════
   3️⃣ CARDS — real card look, self-contained (no bleed outside)
   ═══════════════════════════════════════ */
.promotions-slider[data-slider-style="cards"] { padding: 16px 12px !important; margin-bottom: 12px; }
.promotions-slider[data-slider-style="cards"] .owl-stage-outer { padding: 6px 0 8px; overflow: hidden; }

/* The card frame — clean, contained, no leaking pseudo-layers */
.promotions-slider[data-slider-style="cards"] .promotion-item {
    background: #fff;
    border-radius: 22px;
    padding: 14px 14px 16px;
    box-shadow:
        0 1px 2px rgba(0,0,0,.04),
        0 6px 14px -4px rgba(0,0,0,.08),
        0 16px 32px -8px rgba(0,0,0,.12);
    border: 1px solid rgba(0,0,0,.04);
    transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}
/* Top accent strip removed — cleaner card look */
/* Image nested inside the card frame */
.promotions-slider[data-slider-style="cards"] .promotion-item img,
.promotions-slider[data-slider-style="cards"] .promotion-item video {
    border-radius: 14px !important;
    display: block;
    width: 100%;
    height: auto;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    background: #f3f4f6;
}
/* Hover — subtle lift + zoom, still contained */
.promotions-slider[data-slider-style="cards"] .promotion-item:hover {
    transform: translateY(-4px);
    box-shadow:
        0 1px 2px rgba(0,0,0,.04),
        0 10px 20px -4px rgba(0,0,0,.10),
        0 24px 48px -12px rgba(0,0,0,.18);
}
.promotions-slider[data-slider-style="cards"] .promotion-item:hover img,
.promotions-slider[data-slider-style="cards"] .promotion-item:hover video { transform: scale(1.02); }
/* Text overlay adjusted to sit nicely inside card */
.promotions-slider[data-slider-style="cards"] .sl-text-overlay {
    bottom: 28px !important;
    inset-inline-start: 28px !important;
    inset-inline-end: 28px !important;
}

/* ═══════════════════════════════════════
   4️⃣ FADE — crossfade with scale + animated diagonal stripe reveal
   ═══════════════════════════════════════ */
.promotions-slider[data-slider-style="fade"] .owl-item { transition: opacity .6s ease; }
.promotions-slider[data-slider-style="fade"] .owl-item.active .promotion-item img,
.promotions-slider[data-slider-style="fade"] .owl-item.active .promotion-item video {
    animation: sl-fade-in 1.2s cubic-bezier(.4,0,.2,1) both;
}
@keyframes sl-fade-in {
    0% { opacity: 0; transform: scale(1.08); filter: blur(6px); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
/* Diagonal stripes overlay animating in */
.promotions-slider[data-slider-style="fade"] .promotion-item {
    background: linear-gradient(135deg, var(--sl-accent), color-mix(in srgb, var(--sl-accent) 40%, #000));
    border-radius: 8px;
}
.promotions-slider[data-slider-style="fade"] .owl-item.active .promotion-item::after {
    content: "";
    position: absolute; inset: 0;
    background: repeating-linear-gradient(135deg, transparent 0 40px, rgba(255,255,255,.05) 40px 41px);
    animation: sl-stripes-slide 8s linear infinite;
    pointer-events: none;
    z-index: 2;
}
@keyframes sl-stripes-slide {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* ═══════════════════════════════════════
   5️⃣ VIDEO HERO — cinematic bars, animated title, progress bar, glow
   ═══════════════════════════════════════ */
.promotions-slider[data-slider-style="video_hero"] {
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
    position: relative;
}
.promotions-slider[data-slider-style="video_hero"] .promotion-item { background: #000; position: relative; }
.promotions-slider[data-slider-style="video_hero"] .promotion-item img,
.promotions-slider[data-slider-style="video_hero"] .promotion-item video {
    width: 100% !important; height: auto !important;
    max-height: 70vh; min-height: 320px;
    object-fit: cover; display: block; background: #000;
}
/* Ken Burns on images inside video hero */
.promotions-slider[data-slider-style="video_hero"] .owl-item.active .promotion-item img {
    animation: sl-kenburns-strong 15s ease-in-out infinite alternate;
}
/* Cinematic black bars top and bottom */
.promotions-slider[data-slider-style="video_hero"] .owl-stage-outer::before,
.promotions-slider[data-slider-style="video_hero"] .owl-stage-outer::after {
    content: "";
    position: absolute; inset-inline: 0;
    height: 30px;
    background: #000;
    z-index: 4;
    pointer-events: none;
    opacity: .85;
}
.promotions-slider[data-slider-style="video_hero"] .owl-stage-outer::before { top: 0; }
.promotions-slider[data-slider-style="video_hero"] .owl-stage-outer::after { bottom: 0; }
/* Animated LIVE badge */
.promotions-slider[data-slider-style="video_hero"]::before {
    content: "● LIVE";
    position: absolute; top: 40px; inset-inline-start: 20px;
    background: #ef4444; color: #fff;
    padding: 6px 12px; border-radius: 4px;
    font-size: 11px; font-weight: 800;
    letter-spacing: 2px;
    z-index: 10;
    animation: sl-blink 1.5s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(239,68,68,.4);
}
@keyframes sl-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}
/* Auto-playing progress bar at bottom */
.promotions-slider[data-slider-style="video_hero"]::after {
    content: "";
    position: absolute; bottom: 30px; inset-inline-start: 0;
    height: 3px; width: 100%;
    background: rgba(255,255,255,.2);
    z-index: 10;
}
.promotions-slider[data-slider-style="video_hero"] .owl-item.active::before {
    content: "";
    position: absolute; bottom: 30px; inset-inline-start: 0;
    height: 3px;
    background: var(--sl-accent);
    animation: sl-progress 5s linear;
    z-index: 11;
    box-shadow: 0 0 12px var(--sl-accent);
}
@keyframes sl-progress {
    0% { width: 0; }
    100% { width: 100%; }
}
/* Slide-in title from bottom */
.promotions-slider[data-slider-style="video_hero"] .owl-item.active .promotion-item::after {
    content: attr(data-hero-title);
    position: absolute;
    bottom: 60px;
    inset-inline-start: 30px;
    inset-inline-end: 30px;
    color: #fff;
    font-size: clamp(20px, 3vw, 42px);
    font-weight: 900;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0,0,0,.6);
    animation: sl-slide-up 1.2s cubic-bezier(.4,0,.2,1) 0.3s both;
    z-index: 5;
    pointer-events: none;
    text-align: center;
    line-height: 1.2;
}
@keyframes sl-slide-up {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
/* Custom dots for video_hero */
.promotions-slider[data-slider-style="video_hero"] .owl-dots { position: absolute; bottom: 40px; left: 0; right: 0; z-index: 12; text-align: center; }
.promotions-slider[data-slider-style="video_hero"] .owl-dots .owl-dot span { background: rgba(255,255,255,.4); border: 1.5px solid rgba(255,255,255,.7); width: 10px; height: 10px; margin: 0 4px; }
.promotions-slider[data-slider-style="video_hero"] .owl-dots .owl-dot.active span { background: var(--sl-accent); border-color: var(--sl-accent); width: 30px; border-radius: 5px; }

/* ═══════════════════════════════════════
   TEXT OVERLAY — each element has its OWN separate background
   ═══════════════════════════════════════ */
.promotions-slider[data-slider-style] .sl-text-overlay {
    position: absolute;
    inset-inline-start: 24px;
    inset-inline-end: 24px;
    bottom: 40px;
    display: flex;
    justify-content: flex-start;
    z-index: 8;
    pointer-events: none;
}
.promotions-slider[data-slider-style] .sl-text-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    max-width: min(600px, 90%);
    pointer-events: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
}
/* Hide the decorative badge — no longer needed as separate element */
.promotions-slider[data-slider-style] .sl-text-inner .sl-text-badge { display: none; }
/* Heading text — its own blue gradient pill background */
.promotions-slider[data-slider-style] .sl-text {
    display: inline-block;
    font-size: clamp(18px, 2.2vw, 30px);
    font-weight: 900;
    margin: 0;
    padding: 14px 24px;
    line-height: 1.3;
    letter-spacing: -0.3px;
    color: #fff;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(30,64,175,.35), 0 0 0 1px rgba(255,255,255,.15) inset;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    animation: sl-text-slide-in 0.9s cubic-bezier(.4,0,.2,1) 0.2s both;
}
/* Sweeping shine across the text pill */
.promotions-slider[data-slider-style] .sl-text::after {
    content: "";
    position: absolute; top: 0; bottom: 0;
    inset-inline-start: -60%;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
    transform: skewX(-15deg);
    animation: sl-shine-sweep 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes sl-shine-sweep {
    0%, 60% { inset-inline-start: -60%; }
    100% { inset-inline-start: 120%; }
}
@keyframes sl-text-slide-in {
    0% { opacity: 0; transform: translateY(20px); filter: blur(4px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
/* Character reveal effect via subtle underline animation */
.promotions-slider[data-slider-style] .sl-text::after {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24, transparent);
    margin-top: 8px;
    width: 60px;
    border-radius: 2px;
    animation: sl-underline-grow 1.2s ease-out 0.6s both;
}
@keyframes sl-underline-grow {
    0% { width: 0; }
    100% { width: 60px; }
}
/* Call-to-action button */
.promotions-slider[data-slider-style] .sl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    color: #1e40af;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
    transition: all .22s cubic-bezier(.4,0,.2,1);
    animation: sl-btn-pop 0.7s cubic-bezier(.34,1.56,.64,1) 0.5s both;
    letter-spacing: 0.3px;
}
@keyframes sl-btn-pop {
    0% { opacity: 0; transform: scale(.7) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
.promotions-slider[data-slider-style] .sl-btn i {
    transition: transform .22s;
    font-size: 11px;
}
.promotions-slider[data-slider-style] .sl-btn:hover {
    background: #fbbf24;
    color: #78350f;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251,191,36,.4);
    text-decoration: none;
}
.promotions-slider[data-slider-style] .sl-btn:hover i { transform: translateX(-4px); }
[dir="ltr"] .promotions-slider[data-slider-style] .sl-btn:hover i { transform: translateX(4px); }

/* ── Per-variant overlay treatment ── */
/* Cards: centered inside the card, smaller */
.promotions-slider[data-slider-style="cards"] .sl-text-overlay { bottom: 30px; }
.promotions-slider[data-slider-style="cards"] .sl-text-inner { padding: 18px 22px 18px 38px; }
.promotions-slider[data-slider-style="cards"] .sl-text { font-size: clamp(16px, 2vw, 24px); }
/* Fullwidth: bigger text, taller position */
.promotions-slider[data-slider-style="fullwidth"] .sl-text-overlay { bottom: 60px; inset-inline-start: 5%; inset-inline-end: 5%; }
.promotions-slider[data-slider-style="fullwidth"] .sl-text { font-size: clamp(24px, 3.2vw, 44px); }
/* Fade: overlay animates with the slide */
.promotions-slider[data-slider-style="fade"] .owl-item.active .sl-text-overlay { animation: sl-overlay-fade 1s cubic-bezier(.4,0,.2,1) both; }
@keyframes sl-overlay-fade {
    0% { opacity: 0; transform: translateY(30px) scale(.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
/* Video hero: overlay stays for cinematic feel — no wrapping background */
.promotions-slider[data-slider-style="video_hero"] .sl-text-overlay { bottom: 80px; inset-inline-start: 40px; inset-inline-end: 40px; }
.promotions-slider[data-slider-style="video_hero"] .sl-text-inner {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
}
.promotions-slider[data-slider-style="video_hero"] .sl-text { font-size: clamp(22px, 3vw, 40px); }

@media (max-width: 640px) {
    /* Text overlay responsive */
    .promotions-slider[data-slider-style] .sl-text-overlay { bottom: 16px; inset-inline-start: 12px; inset-inline-end: 12px; }
    .promotions-slider[data-slider-style] .sl-text-inner { padding: 14px 16px 14px 26px; border-radius: 4px 14px 14px 4px; }
    .promotions-slider[data-slider-style] .sl-text-inner .sl-text-badge { width: 4px; }
    .promotions-slider[data-slider-style] .sl-text { font-size: 15px !important; margin-bottom: 8px; }
    .promotions-slider[data-slider-style] .sl-btn { padding: 7px 14px; font-size: 11px; }
    .promotions-slider[data-slider-style="video_hero"] .sl-text-overlay { bottom: 50px; inset-inline-start: 16px; inset-inline-end: 16px; }
    .promotions-slider[data-slider-style="cards"] { padding: 8px !important; }
    .promotions-slider[data-slider-style="cards"] .promotion-item,
    .promotions-slider[data-slider-style="cards"] .promotion-item img,
    .promotions-slider[data-slider-style="cards"] .promotion-item video { border-radius: 14px !important; }
    .promotions-slider[data-slider-style="cards"] .promotion-item::before { font-size: 9px; padding: 4px 8px; top: 12px; inset-inline-start: 12px; }
    .promotions-slider[data-slider-style="video_hero"] .promotion-item video,
    .promotions-slider[data-slider-style="video_hero"] .promotion-item img { min-height: 240px; }
    .promotions-slider[data-slider-style="video_hero"] .owl-stage-outer::before,
    .promotions-slider[data-slider-style="video_hero"] .owl-stage-outer::after { height: 20px; }
    .promotions-slider[data-slider-style="video_hero"]::before { top: 26px; font-size: 9px; padding: 4px 8px; }
    .promotions-slider[data-slider-style="video_hero"] .owl-item.active .promotion-item::after { bottom: 40px; font-size: 18px; }
}
