/* =========================================================
   SUNUCURADAR PUBLIC ADS
   Clean production layout
   ========================================================= */


/* ---------------------------------------------------------
   GLOBAL SIDE BANNERS
   --------------------------------------------------------- */

.sr-ad-side {
    position: fixed;
    top: 178px;
    width: 190px;
    height: 620px;
    z-index: 60;
    overflow: hidden;
    border: 1px solid rgba(34, 197, 94, .28);
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            rgba(34, 197, 94, .10),
            rgba(2, 6, 23, .94)
        );
    box-shadow:
        0 24px 70px rgba(0, 0, 0, .42),
        0 0 0 1px rgba(134, 239, 172, .03);
}

.sr-ad-side-left {
    left: 18px;
}

.sr-ad-side-right {
    right: 18px;
}

.sr-ad-side-media,
.sr-ad-slider-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
}

.sr-ad-live {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: #f8fafc;
    text-decoration: none;
}


/* ---------------------------------------------------------
   EMPTY AD CONTENT
   --------------------------------------------------------- */

.sr-ad-empty {
    width: 100%;
    height: 100%;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-align: center;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(34, 197, 94, .035) 0 12px,
            transparent 12px 24px
        ),
        linear-gradient(
            145deg,
            rgba(5, 46, 34, .36),
            rgba(2, 6, 23, .50)
        );
}

.sr-ad-empty strong {
    color: #f8fafc;
    font-size: 19px;
    line-height: 1.22;
}

.sr-ad-empty p {
    max-width: 420px;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.5;
}

.sr-ad-empty small {
    color: #94a3b8;
    font-size: 12px;
}

.sr-ad-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 6px 10px;
    border: 1px solid rgba(134, 239, 172, .30);
    border-radius: 999px;
    background: rgba(34, 197, 94, .12);
    color: #86efac;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .09em;
}

.sr-ad-buy,
.sr-ad-open {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    min-height: 34px;
    padding: 10px 16px;
    border-radius: 12px;
    background:
        linear-gradient(
            135deg,
            #22c55e,
            #16a34a
        );
    box-shadow:
        0 10px 28px rgba(34, 197, 94, .18);
    color: #03140a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}


/* ---------------------------------------------------------
   NON-HOME PAGE CONTENT SAFETY
   --------------------------------------------------------- */

@media (min-width: 1581px) {
    body:not(:has(.home-hero)) main.container {
        width: min(
            1300px,
            calc(100vw - 430px)
        ) !important;
        max-width: none !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }
}


/* ---------------------------------------------------------
   PREMIUM HOME SLIDER OVER HERO
   --------------------------------------------------------- */

body:has(.home-hero) .container {
    padding-bottom: 0;
}

body:has(.home-hero) .home-hero {
    margin-bottom: 0 !important;
}

body:has(.home-hero) .sr-home-ads {
    position: relative;
    z-index: 30;
    width: min(
        1040px,
        calc(100% - 440px)
    );
    max-width: 1040px;
    margin: -335px auto 0;
    padding: 0 0 56px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body:has(.home-hero) .sr-home-ads::before {
    display: none;
}

.sr-home-ad-slider {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.sr-home-ad-heading {
    position: absolute;
    top: 18px;
    left: 22px;
    z-index: 8;
    display: grid;
    gap: 3px;
    margin: 0;
    pointer-events: none;
    text-shadow:
        0 5px 22px rgba(0, 0, 0, .72);
}

.sr-home-ad-heading span {
    color: #86efac;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .15em;
}

.sr-home-ad-heading strong {
    color: #f8fafc;
    font-size: clamp(18px, 2vw, 25px);
    line-height: 1.08;
}


/* ---------------------------------------------------------
   SLIDER STAGE
   --------------------------------------------------------- */

.sr-ad-slider-stage {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    border: 1px solid rgba(134, 239, 172, .24);
    border-radius: 26px;
    background:
        linear-gradient(
            135deg,
            rgba(3, 24, 20, .42),
            rgba(2, 6, 23, .52)
        );
    box-shadow:
        0 28px 90px rgba(0, 0, 0, .42),
        0 0 45px rgba(34, 197, 94, .06),
        inset 0 1px 0 rgba(255, 255, 255, .045);
    backdrop-filter:
        blur(13px)
        saturate(1.12);
    -webkit-backdrop-filter:
        blur(13px)
        saturate(1.12);
}

.sr-ad-slider-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(
            110deg,
            rgba(255, 255, 255, .035),
            transparent 24%,
            transparent 76%,
            rgba(34, 197, 94, .025)
        );
}

.sr-ad-slide {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transform:
        translateX(24px)
        scale(.992);
    transition:
        opacity .46s ease,
        transform .46s ease,
        visibility .46s ease;
    pointer-events: none;
}

.sr-ad-slide.is-active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    transform:
        translateX(0)
        scale(1);
    pointer-events: auto;
}

.sr-ad-slide .sr-ad-empty {
    min-height: 100%;
    padding-top: 54px;
    padding-bottom: 22px;
    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(34, 197, 94, .10),
            transparent 42%
        ),
        linear-gradient(
            135deg,
            rgba(3, 31, 24, .38),
            rgba(2, 6, 23, .44)
        );
}

.sr-ad-slide .sr-ad-empty strong {
    font-size: clamp(20px, 2.1vw, 29px);
}

.sr-ad-slide .sr-ad-empty p {
    margin: 0;
    font-size: 13px;
}


/* ---------------------------------------------------------
   LIVE CAMPAIGN COPY
   --------------------------------------------------------- */

.sr-ad-copy {
    position: absolute;
    inset: auto 0 0;
    z-index: 4;
    display: grid;
    gap: 7px;
    padding: 62px 24px 22px;
    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(2, 6, 23, .58) 38%,
            rgba(2, 6, 23, .88)
        );
}

.sr-ad-copy strong {
    color: #f8fafc;
    font-size: clamp(22px, 2.5vw, 34px);
    line-height: 1.08;
}

.sr-ad-copy p {
    max-width: 720px;
    color: #dbeafe;
    font-size: 14px;
    line-height: 1.45;
}

.sr-ad-copy .sr-ad-open {
    margin-top: 2px;
}


/* ---------------------------------------------------------
   SLIDER CONTROLS
   --------------------------------------------------------- */

.sr-ad-slider-controls {
    position: relative;
    z-index: 10;
    min-height: 38px;
    margin-top: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 11px;
}

.sr-ad-arrow,
.sr-ad-dot {
    cursor: pointer;
}

.sr-ad-arrow {
    width: 34px;
    height: 34px;
    min-height: 0;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(134, 239, 172, .20);
    border-radius: 50%;
    background: rgba(2, 6, 23, .68);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, .25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #86efac;
    font-size: 23px;
    line-height: 1;
    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.sr-ad-arrow:hover {
    border-color: rgba(134, 239, 172, .55);
    background: rgba(5, 46, 34, .80);
    transform: translateY(-1px);
}

.sr-ad-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 100px);
    padding: 7px 10px;
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 999px;
    background: rgba(2, 6, 23, .54);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.sr-ad-dot {
    width: 7px;
    height: 7px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, .42);
    transition:
        width .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.sr-ad-dot.is-active {
    width: 22px;
    background: #22c55e;
    box-shadow:
        0 0 12px rgba(34, 197, 94, .42);
}


/* ---------------------------------------------------------
   HERO EFFECT COMPATIBILITY
   --------------------------------------------------------- */

body:has(.home-hero) .portal-pulse,
body:has(.home-hero) .portal-shine,
body:has(.home-hero) .water-flow,
body:has(.home-hero) .water-splash {
    display: none !important;
}

body:has(.home-hero) .home-hero-glow {
    opacity: .22;
}

body:has(.home-hero) .magic-sparkles {
    opacity: .06;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1580px) {
    .sr-ad-side {
        display: none;
    }

    body:has(.home-hero) .sr-home-ads {
        width: min(
            980px,
            calc(100% - 48px)
        );
        margin-top: -230px;
    }
}

@media (max-width: 1100px) {
    body:has(.home-hero) .sr-home-ads {
        width: calc(100% - 32px);
        margin-top: -190px;
        padding-bottom: 46px;
    }

    .sr-ad-slider-stage {
        height: 215px;
    }
}

@media (max-width: 760px) {
    body:has(.home-hero) .sr-home-ads {
        width: calc(100% - 16px);
        margin-top: -135px;
        padding-bottom: 38px;
    }

    .sr-home-ad-heading {
        top: 14px;
        left: 15px;
    }

    .sr-home-ad-heading strong {
        font-size: 18px;
    }

    .sr-ad-slider-stage {
        height: 190px;
        border-radius: 19px;
    }

    .sr-ad-slide .sr-ad-empty {
        gap: 8px;
        padding:
            47px
            13px
            20px;
    }

    .sr-ad-slide .sr-ad-empty strong {
        font-size: 18px;
    }

    .sr-ad-slide .sr-ad-empty p {
        display: none;
    }

    .sr-ad-copy {
        padding:
            48px
            15px
            20px;
    }

    .sr-ad-copy strong {
        font-size: 20px;
    }

    .sr-ad-copy p {
        display: none;
    }

    .sr-ad-slider-controls {
        min-height: 34px;
        margin-top: 9px;
        gap: 7px;
    }

    .sr-ad-arrow {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    .sr-ad-dots {
        gap: 4px;
        padding: 6px 8px;
    }

    .sr-ad-dot {
        width: 6px;
        height: 6px;
    }

    .sr-ad-dot.is-active {
        width: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sr-ad-slide,
    .sr-ad-arrow,
    .sr-ad-dot {
        transition: none !important;
    }
}
