/* =========================================================
   ASXEBER.AZ — PEŞƏKAR REKLAM SİSTEMİ
   ========================================================= */

.asxeber-ad {
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin: 18px auto;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}


/* =========================================================
   REKLAM LINKİ
   ========================================================= */

.asxeber-ad a {
    position: relative;
    display: block;
    width: 100%;
    text-decoration: none;
    overflow: hidden;
    border-radius: 12px;
}


/* =========================================================
   ÜMUMİ REKLAM ŞƏKLİ
   ========================================================= */

.asxeber-ad img {
    display: block;

    width: 100%;
    height: auto;
    max-width: 100%;

    margin: 0 auto;

    object-fit: contain;

    border-radius: 12px;

    box-shadow:
        0 5px 18px rgba(15, 30, 50, .14);

    transform: scale(1);

    transition:
        transform .45s ease,
        box-shadow .45s ease,
        filter .45s ease;

    will-change: transform;
}


/* =========================================================
   728x90 REKLAMLAR
   ========================================================= */

.asxeber-ad-top_banner,
.asxeber-ad-news_between,
.asxeber-ad-detail_top,
.asxeber-ad-detail_bottom {
    width: 100%;
    max-width: 728px;
    margin: 14px auto 20px;
    padding: 2px;
    box-sizing: border-box;
    border-radius: 14px;
    background: #fff;

    box-shadow:
        0 5px 18px rgba(15, 30, 50, .12);

    transition:
        box-shadow .4s ease,
        transform .4s ease;
}


/* =========================================================
   728x90 ŞƏKİL
   ========================================================= */

.asxeber-ad-top_banner img,
.asxeber-ad-news_between img,
.asxeber-ad-detail_top img,
.asxeber-ad-detail_bottom img {
    display: block;

    width: 100%;
    max-width: 728px;
    height: auto;
    max-height: 90px;

    object-fit: contain;

    border-radius: 12px;

    transition:
        transform .5s ease,
        filter .5s ease;
}


/* =========================================================
   HƏRƏKƏTLİ İŞIQ
   ========================================================= */

.asxeber-ad a::after {
    content: "";

    position: absolute;

    top: 0;
    left: -80%;

    width: 45%;
    height: 100%;

    pointer-events: none;

    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255,255,255,0) 25%,
        rgba(255,255,255,.18) 42%,
        rgba(255,255,255,.65) 50%,
        rgba(255,255,255,.18) 58%,
        rgba(255,255,255,0) 75%,
        transparent 100%
    );

    transform: skewX(-22deg);

    animation: asxeberAdShine 4s ease-in-out infinite;
}


@keyframes asxeberAdShine {

    0% {
        left: -80%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    45% {
        left: 135%;
        opacity: 1;
    }

    55% {
        left: 135%;
        opacity: 0;
    }

    100% {
        left: 135%;
        opacity: 0;
    }
}

/* =========================================================
   İŞIQ ANİMASİYASI
   ========================================================= */

@keyframes asxeberAdShine {

    0% {
        left: -130%;
    }

    40% {
        left: 130%;
    }

    100% {
        left: 130%;
    }
}


/* =========================================================
   YUMŞAQ HƏRƏKƏT
   ========================================================= */

.asxeber-ad-top_banner img,
.asxeber-ad-detail_top img,
.asxeber-ad-detail_bottom img {

    animation:
        asxeberAdFloat
        4.5s
        ease-in-out
        infinite;
}


@keyframes asxeberAdFloat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.012);
    }
}


/* =========================================================
   MOUSE ÜZƏRİNƏ GƏLƏNDƏ
   ========================================================= */

.asxeber-ad a:hover img {
    transform: scale(1.018);

    filter: brightness(1.05);

    box-shadow:
        0 10px 28px rgba(15, 30, 50, .22);
}


.asxeber-ad a:hover {
    transform: translateY(-1px);
}


/* =========================================================
   SAĞ SIDEBAR — 300x250
   ========================================================= */

.asxeber-ad-sidebar_top {

    width: 100%;
    max-width: 300px;

    margin: 0 auto 20px;

    padding: 3px;

    box-sizing: border-box;

    border-radius: 15px;

    background: #fff;

    box-shadow:
        0 6px 22px rgba(15, 30, 50, .12);
}


.asxeber-ad-sidebar_top a {

    display: block;

    width: 300px;
    max-width: 100%;

    margin: 0 auto;
}


.asxeber-ad-sidebar_top img {

    display: block;

    width: 300px;
    max-width: 100%;

    height: 250px;

    object-fit: cover;

    border-radius: 11px;

    animation:
        asxeberSidebarFloat
        4.5s
        ease-in-out
        infinite;
}


/* =========================================================
   SIDEBAR HƏRƏKƏTİ
   ========================================================= */

@keyframes asxeberSidebarFloat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.012);
    }
}


/* =========================================================
   SIDEBAR HOVER
   ========================================================= */

.asxeber-ad-sidebar_top a:hover img {

    transform: scale(1.025);

    box-shadow:
        0 12px 30px rgba(15, 30, 50, .24);

    filter: brightness(1.04);
}


/* =========================================================
   MOBİL REKLAM
   ========================================================= */

.asxeber-ad-mobile_banner {

    display: none;

    width: 100%;
    max-width: 320px;

    margin: 15px auto;
}


.asxeber-ad-mobile_banner img {

    display: block;

    width: 320px;
    max-width: 100%;

    height: 100px;

    object-fit: cover;

    border-radius: 10px;

    animation:
        asxeberMobileAd
        4s
        ease-in-out
        infinite;
}


/* =========================================================
   MOBİL ANİMASİYA
   ========================================================= */

@keyframes asxeberMobileAd {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.015);
    }
}


/* =========================================================
   MOBİL
   ========================================================= */

@media (max-width: 700px) {

    /* Kompüter reklamları gizlənir */

    .asxeber-ad-top_banner,
    .asxeber-ad-news_between,
    .asxeber-ad-detail_top,
    .asxeber-ad-detail_bottom {

        display: none;
    }


    /* Mobil reklam */

    .asxeber-ad-mobile_banner {

        display: block;

        width: 100%;
        max-width: 320px;

        margin: 15px auto;
    }


    .asxeber-ad-mobile_banner a {

        width: 100%;
    }


    .asxeber-ad-mobile_banner img {

        width: 320px;
        max-width: 100%;

        height: 100px;
    }


    /* Sidebar */

    .asxeber-ad-sidebar_top {

        width: 100%;
        max-width: 300px;

        margin: 15px auto 20px;
    }


    .asxeber-ad-sidebar_top img {

        width: 300px;
        max-width: 100%;

        height: auto;
    }
}


/* =========================================================
   ÇOX KİÇİK TELEFONLAR
   ========================================================= */

@media (max-width: 360px) {

    .asxeber-ad-mobile_banner {

        max-width: 100%;
    }


    .asxeber-ad-mobile_banner img {

        width: 100%;
        height: auto;
    }
}


/* =========================================================
   HƏRƏKƏTİ AZALTMAQ İSTƏYƏN İSTİFADƏÇİLƏR
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .asxeber-ad img,
    .asxeber-ad a::after {

        animation: none !important;

        transition: none !important;
    }
}