/* YallaSpin New — mobile-first affiliate landing */

.yallaspin-new {
    --ufc-gold: #ffd54f;
    --ufc-gold-hot: #ffbf00;
    --ufc-ink: #140c12;
    --ufc-btn-text: #1a0a14;
    --ufc-cream: #fff8e7;
    --ufc-font: "Figtree", "Segoe UI", Tahoma, sans-serif;
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-family: var(--ufc-font);
    background: var(--ufc-ink);
    box-sizing: border-box;
    isolation: isolate;
}

body:not(.wp-admin):not(.block-editor-page) .yallaspin-new.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

body:not(.wp-admin):has(.yallaspin-new) .entry-content > .wp-block-acf-yallaspin-new,
body:not(.wp-admin):has(.yallaspin-new) .entry-content > .wp-block-custom-yallaspin-new,
body:not(.wp-admin) .wp-block-acf-yallaspin-new.alignfull,
body:not(.wp-admin) .wp-block-custom-yallaspin-new.alignfull {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body:not(.wp-admin):has(.yallaspin-new),
body:not(.wp-admin):has(.yallaspin-new) #page,
body:not(.wp-admin):has(.yallaspin-new) .site-content,
body:not(.wp-admin):has(.yallaspin-new) #content,
body:not(.wp-admin):has(.yallaspin-new) .site-main,
body:not(.wp-admin):has(.yallaspin-new) #primary,
body:not(.wp-admin):has(.yallaspin-new) article,
body:not(.wp-admin):has(.yallaspin-new) .entry-content {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}

body:not(.wp-admin):has(.yallaspin-new) #content > .ast-container,
body:not(.wp-admin):has(.yallaspin-new) .site-content > .ast-container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body:not(.wp-admin):has(.yallaspin-new) .site-header,
body:not(.wp-admin):has(.yallaspin-new) header.entry-header,
body:not(.wp-admin):has(.yallaspin-new) .ast-single-entry-banner {
    display: none !important;
}

body:not(.wp-admin):has(.yallaspin-new) .ast-separate-container .ast-article-single,
body:not(.wp-admin):has(.yallaspin-new) article.ast-article-single {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

body:not(.wp-admin):has(.yallaspin-new) footer.site-footer,
body:not(.wp-admin):has(.yallaspin-new) #colophon {
    margin-top: 0 !important;
    border-top: 0 !important;
}

/* Background */
.yallaspin-new__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--ufc-bg-mobile, var(--ufc-bg-desktop));
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transform: scale(1.02);
}

@media (min-width: 769px) {
    .yallaspin-new__bg {
        background-image: var(--ufc-bg-desktop);
        background-position: center center;
    }
}

.yallaspin-new__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(12, 6, 10, 0.55) 0%, rgba(12, 6, 10, 0.2) 32%, rgba(12, 6, 10, 0.72) 72%, rgba(8, 4, 8, 0.92) 100%),
        radial-gradient(ellipse 90% 55% at 50% 0%, rgba(255, 213, 79, 0.16), transparent 60%);
}

/* Independent tiny lights — each spark blinks on/off on its own cycle */
.yallaspin-new__sparkles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.yallaspin-new__spark {
    position: absolute;
    display: block;
    width: 2px;
    height: 2px;
    margin: 0;
    border-radius: 50%;
    background: #fff8dc;
    box-shadow:
        0 0 4px 1px rgba(255, 248, 220, 0.95),
        0 0 10px 2px rgba(255, 213, 79, 0.55);
    opacity: 0;
    transform: scale(0.35);
    animation: yallaspinNewSparkBlink var(--ufc-spark-dur, 3s) ease-in-out var(--ufc-spark-delay, 0s) infinite alternate;
    will-change: opacity, transform;
}

.yallaspin-new__spark--sm {
    width: 1.5px;
    height: 1.5px;
    background: #ffffff;
    box-shadow:
        0 0 3px 1px rgba(255, 255, 255, 0.9),
        0 0 8px 1px rgba(255, 213, 79, 0.4);
}

.yallaspin-new__spark--md {
    width: 2.5px;
    height: 2.5px;
    background: #ffe9a0;
    box-shadow:
        0 0 5px 1px rgba(255, 233, 160, 0.95),
        0 0 12px 3px rgba(255, 213, 79, 0.55);
}

.yallaspin-new__spark--lg {
    width: 3.5px;
    height: 3.5px;
    background: #ffd54f;
    box-shadow:
        0 0 6px 2px rgba(255, 213, 79, 0.95),
        0 0 16px 4px rgba(255, 191, 0, 0.45);
}

/* Off → on → soft hold → (alternate reverses back off) */
@keyframes yallaspinNewSparkBlink {
    0%,
    12% {
        opacity: 0;
        transform: scale(0.25);
    }
    28% {
        opacity: 0.15;
        transform: scale(0.55);
    }
    48% {
        opacity: 1;
        transform: scale(1.15);
    }
    62% {
        opacity: 0.85;
        transform: scale(1);
    }
    78%,
    100% {
        opacity: 0.05;
        transform: scale(0.35);
    }
}

/* Stage */
.yallaspin-new__stage {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 32px clamp(18px, 5vw, 40px) 20px;
    align-content: start;
    gap: 44px;
    box-sizing: border-box;
}

.yallaspin-new__copy {
    position: relative;
    z-index: 3;
    width: min(560px, 100%);
    margin-inline: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: yallaspinNewRise 0.7s ease-out both;
}

.yallaspin-new__brand {
    margin-bottom: 0;
}

.yallaspin-new__logo {
    display: block;
    width: min(220px, 68vw);
    height: auto;
    margin-inline: auto;
    margin-bottom: 2.25rem;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.entry-content .yallaspin-new h1.yallaspin-new__title,
.yallaspin-new h1.yallaspin-new__title {
    margin: 0;
    padding: 0;
    max-width: 16ch;
    color: #fff !important;
    font-family: var(--ufc-font);
    font-size: clamp(1.85rem, 7.2vw, 2.75rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-wrap: balance;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.yallaspin-new__offer {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0 0;
    padding: 0.35em 0.85em;
    max-width: 100%;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 213, 79, 0.45);
    box-shadow:
        0 0 0 1px rgba(255, 213, 79, 0.12),
        0 12px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
}

.yallaspin-new__offer-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 213, 79, 0.35), transparent 55%);
    animation: yallaspinNewOfferPulse 2.8s ease-in-out infinite;
    pointer-events: none;
}

.yallaspin-new__offer-text {
    position: relative;
    z-index: 1;
    color: var(--ufc-offer-color, var(--ufc-gold));
    font-size: clamp(1.35rem, 6.5vw, 2.15rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-shadow: 0 0 28px rgba(255, 213, 79, 0.35);
}

.yallaspin-new__sub {
    margin: 2px 0 0;
    max-width: 28ch;
    color: rgba(255, 248, 231, 0.88);
    font-size: clamp(0.95rem, 3.6vw, 1.125rem);
    font-weight: 500;
    line-height: 1.45;
}

.yallaspin-new__note {
    margin: 4px 0 0;
    color: var(--ufc-note-color, rgba(255, 213, 79, 0.92));
    font-size: 0.92rem;
    font-weight: 600;
}

/* CTA — conversion focus */
.yallaspin-new__cta {
    width: 100%;
    margin-top: 10px;
}

.yallaspin-new__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    padding: 16px 28px;
    border-radius: var(--ufc-btn-radius, 999px);
    background: linear-gradient(180deg, #ffe27a 0%, var(--ufc-btn-bg, var(--ufc-gold)) 42%, var(--ufc-gold-hot) 100%);
    color: #333 !important;
    font-family: var(--ufc-font);
    font-size: clamp(1.35rem, 5.5vw, 1.55rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    text-transform: none;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.25) inset,
        0 10px 28px rgba(255, 191, 0, 0.45),
        0 18px 48px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transform: translateZ(0);
    animation: yallaspinNewBtnPulse 2s ease-in-out infinite;
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.yallaspin-new__btn-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: yallaspinNewShine 2.8s ease-in-out infinite;
    pointer-events: none;
}

.yallaspin-new__btn-label {
    position: relative;
    z-index: 1;
    color: #333;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
}

.yallaspin-new__btn:hover,
.yallaspin-new__btn:focus-visible {
    filter: brightness(1.05);
    transform: translateY(-1px) scale(1.02);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.3) inset,
        0 14px 36px rgba(255, 191, 0, 0.55),
        0 22px 56px rgba(0, 0, 0, 0.4);
    color: #333 !important;
    text-decoration: none !important;
}

.yallaspin-new__btn:active {
    transform: translateY(1px) scale(0.99);
}

/* Talent / fighter art */
.yallaspin-new__talent {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: end center;
    min-height: 0;
    pointer-events: none;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 0;
}

.yallaspin-new__figure {
    position: relative;
    width: min(78vw, 360px);
    margin-inline: auto;
    margin-bottom: -8px;
    -webkit-mask-image: linear-gradient(to bottom, #000 48%, rgba(0, 0, 0, 0.55) 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 48%, rgba(0, 0, 0, 0.55) 72%, transparent 100%);
}

.yallaspin-new__figure::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 42%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(8, 4, 8, 0.25) 35%,
        rgba(8, 4, 8, 0.72) 70%,
        rgba(8, 4, 8, 0.95) 100%
    );
    filter: blur(0.5px);
}

.yallaspin-new__figure--left {
    display: none;
}

.yallaspin-new__figure-img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}

.yallaspin-new__figure-img.is-animated {
    animation: yallaspinNewFloat 4.5s ease-in-out infinite;
}

/* Steps */
.yallaspin-new__steps {
    position: relative;
    z-index: 3;
    padding: 8px 18px 40px;
    background: linear-gradient(180deg, transparent, rgba(8, 4, 8, 0.88) 18%, #0a0608 100%);
}

.yallaspin-new__steps-inner {
    width: min(980px, 100%);
    margin-inline: auto;
}

.yallaspin-new__steps-heading {
    margin: 0 0 18px;
    text-align: center;
    font-size: clamp(1.15rem, 4vw, 1.5rem);
    font-weight: 800;
}

.yallaspin-new__steps-grid {
    display: grid;
    gap: 12px;
}

.yallaspin-new__step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px 16px 16px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 213, 79, 0.18);
    backdrop-filter: blur(8px);
}

.yallaspin-new__step-num {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffe27a, var(--ufc-gold));
    color: var(--ufc-btn-text);
    font-weight: 800;
    font-size: 0.95rem;
}

.yallaspin-new__step-title {
    margin: 0 0 4px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.yallaspin-new__step-desc {
    margin: 0;
    color: rgba(255, 248, 231, 0.78);
    font-size: 0.92rem;
    line-height: 1.45;
}

/* Empty editor state */
.yallaspin-new--empty {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 280px;
    padding: 36px 24px;
    text-align: center;
    border: 2px dashed rgba(255, 213, 79, 0.4);
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 213, 79, 0.12), transparent 50%),
        linear-gradient(160deg, #1a1020 0%, #120a14 100%);
}

.yallaspin-new--empty-title {
    margin: 0;
    color: var(--ufc-gold);
    font-size: 1.25rem;
    font-weight: 800;
}

.yallaspin-new--empty-text {
    margin: 0;
    max-width: 40ch;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

/* Tablet+ */
@media (min-width: 768px) {
    .yallaspin-new__stage {
        padding: clamp(28px, 6vw, 56px) clamp(18px, 5vw, 40px) 64px;
        align-content: center;
        min-height: min(100svh, 860px);
    }

    .yallaspin-new__btn {
        width: auto;
        min-width: min(340px, 100%);
        min-height: 62px;
        padding: 18px 48px;
        font-size: 1.6rem;
        color: #333 !important;
    }

    .yallaspin-new__btn:hover,
    .yallaspin-new__btn:focus-visible {
        color: #333 !important;
    }

    .yallaspin-new__steps {
        padding-bottom: 56px;
    }

    .yallaspin-new__steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* Desktop composition */
@media (min-width: 1024px) {
    .yallaspin-new__stage {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 0;
        column-gap: 0;
        padding-inline: clamp(32px, 5vw, 72px);
        min-height: min(100svh, 900px);
    }

    .yallaspin-new__copy {
        margin-inline: auto;
        justify-self: center;
        text-align: center;
        align-items: center;
        width: min(480px, 100%);
        max-width: 100%;
        padding-inline: clamp(12px, 2vw, 28px);
        animation: yallaspinNewRise 0.75s ease-out both;
    }

    .yallaspin-new__logo {
        margin-inline: auto;
        width: min(265px, 100%);
        margin-bottom: 3rem;
    }

    .entry-content .yallaspin-new h1.yallaspin-new__title,
    .yallaspin-new h1.yallaspin-new__title {
        font-size: clamp(2.6rem, 3.4vw, 3.4rem);
        max-width: 14ch;
        text-align: center;
    }

    .yallaspin-new__sub {
        max-width: 34ch;
        text-align: center;
    }

    .yallaspin-new__cta {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .yallaspin-new__talent {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        min-height: 0;
        height: 100%;
        width: 100%;
        align-self: stretch;
        margin-inline-start: 0;
        justify-self: stretch;
    }

    .yallaspin-new__figure {
        width: min(100%, 100%);
        max-width: 100%;
        margin-inline: auto;
        flex: 0 0 auto;
        -webkit-mask-image: linear-gradient(to bottom, #000 52%, rgba(0, 0, 0, 0.5) 78%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 52%, rgba(0, 0, 0, 0.5) 78%, transparent 100%);
    }

    .yallaspin-new__figure::after {
        height: 38%;
        background: linear-gradient(
            180deg,
            transparent 0%,
            rgba(8, 4, 8, 0.18) 30%,
            rgba(8, 4, 8, 0.65) 68%,
            rgba(8, 4, 8, 0.92) 100%
        );
    }

    .yallaspin-new__figure--left {
        display: none;
    }

    .yallaspin-new__figure--right {
        position: relative;
        z-index: 1;
        width: 100%;
    }
}

@media (min-width: 1280px) {
    .yallaspin-new__figure--right {
        width: 100%;
        max-width: 100%;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .yallaspin-new__copy,
    .yallaspin-new__btn,
    .yallaspin-new__btn-shine,
    .yallaspin-new__offer-glow,
    .yallaspin-new__figure-img.is-animated,
    .yallaspin-new__spark {
        animation: none !important;
    }

    .yallaspin-new__spark {
        opacity: 0.45;
        transform: scale(1);
    }
}

@keyframes yallaspinNewRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes yallaspinNewRiseLeft {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes yallaspinNewBtnPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.035);
    }
}

@keyframes yallaspinNewShine {
    0%,
    55% {
        transform: translateX(-120%);
    }
    80%,
    100% {
        transform: translateX(120%);
    }
}

@keyframes yallaspinNewOfferPulse {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

@keyframes yallaspinNewFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
