/* ============================================================
   NeoFab Promo Banner
============================================================ */

/* ─────────────────────────────
   Main Banner
───────────────────────────── */
#neofab-promo-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 99999;

    width: 420px;
    max-width: calc(100vw - 32px);

    background: transparent;
    overflow: visible;

    animation: neofab-slide-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Relative positioning container */
.neofab-banner-positioner {
    position: relative;
    width: 100%;
}

/* Banner body */
.neofab-banner-inner {
    width: 100%;
    line-height: 0;

    overflow: hidden;

    background: #111111;

    border-radius: 14px;

    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.18);

    backdrop-filter: blur(4px);
}

/* Link */
.neofab-banner-link {
    display: block;
    line-height: 0;
    text-decoration: none;
}

/* Banner image */
.neofab-banner-img {
    display: block;

    width: 100%;
    height: auto;

    max-height: 240px;

    object-fit: cover;
    object-position: center;

    transition:
        transform 0.3s ease,
        opacity 0.25s ease;
}

/* Hover effect */
.neofab-banner-link:hover .neofab-banner-img,
.neofab-banner-link:focus .neofab-banner-img {
    opacity: 0.92;
    transform: scale(1.015);
}

/* ─────────────────────────────
   Close Button
───────────────────────────── */
#neofab-banner-close {
    position: absolute;
    top: -12px;
    right: -12px;
    z-index: 20;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: none;
    border-radius: 999px;

    background: #ffffff;

    cursor: pointer;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.2);

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

/* Hover */
#neofab-banner-close:hover {
    background: #ff2a2a;

    transform: scale(1.08);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Focus */
#neofab-banner-close:focus {
    outline: none;
}

/* SVG icon */
#neofab-banner-close svg {
    width: 14px;
    height: 14px;

    display: block;

    overflow: visible;
}

/* X icon lines */
#neofab-banner-close svg line {
    stroke: #111111;
    stroke-width: 2.5;
    stroke-linecap: round;

    transition: stroke 0.18s ease;
}

/* Hover = white X */
#neofab-banner-close:hover svg line {
    stroke: #ffffff;
}

/* ─────────────────────────────
   Slide In Animation
───────────────────────────── */
@keyframes neofab-slide-in {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Closing animation */
#neofab-promo-banner.neofab-banner-closing {
    animation: neofab-slide-out 0.28s ease-in forwards;
}

/* Slide out */
@keyframes neofab-slide-out {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateX(-20px) scale(0.96);
    }
}

/* ─────────────────────────────
   Mobile
───────────────────────────── */
@media (max-width: 520px) {

    #neofab-promo-banner {
        bottom: 14px;
        left: 14px;

        width: calc(100vw - 28px);
    }

    .neofab-banner-img {
        max-height: 180px;
    }

    #neofab-banner-close {
        width: 32px;
        height: 32px;

        top: -10px;
        right: -10px;
    }
}

/* ─────────────────────────────
   Reduced Motion
───────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    #neofab-promo-banner,
    #neofab-promo-banner.neofab-banner-closing {
        animation: none;
    }

    .neofab-banner-img,
    #neofab-banner-close {
        transition: none;
    }
}