/**
 * Bongdako Banner – frontend styles
 * Render logic lives in bongdako-banner.js.
 */

/* ── Banner containers ───────────────────────────────────────── */
.bdk-slot {
    display: block;
    text-align: center;
}

.bdk-slot a {
    display: inline-block;
    line-height: 0;
}

.bdk-slot img {
    width: 100%;
    height: auto;
    display: block;
}

.bdk-slot-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ── Catfish (fixed bottom bar) ──────────────────────────────── */
.bdk-catfish {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    background: transparent;
    pointer-events: none;
}

.bdk-catfish > * {
    pointer-events: auto;
}

.bdk-dual-wrapper {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;

    .bdk-slot {
        width: 100%;

        ins, a {
            display: block;
            width: 100%;
        }
    }
    img {
        height: 65px;
    }
    .bdk-slot--single img {
        height: auto;
        height: 65px;
    }
}

/* ── Floating banners (main.page) ────────────────────────────── */
main.page {
    position: relative;
}

.floating-banner {
    margin: 0px auto;
    height: 0px;
    position: sticky;
    top: 0px;
    max-width: 1430px;
}

.floating-banner-item {
    position: absolute;
    margin-top: 10px;

    .bdk-slot {
        margin-bottom: 4px;
    }

    img {
        width: 100px;
        height: auto;
    }
}

.floating-banner-right {
    right: 0;
}

#left .bdk-sidebar-banner,
#right .bdk-sidebar-banner {
    margin-top: 10px;
    margin-bottom: 10px;
}

#left .bdk-sidebar-banner:first-child,
#right .bdk-sidebar-banner:first-child {
    margin-top: 0;
}

@media (min-width: 960px) {
    .bdk-catfish-pc {
        bottom: 20px;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 730px;
        margin: auto;
        gap: 4px;

        .bdk-slot, ins, ins a {
            width: 100%;
            display: block;
        }

        img {
            max-height: 60px;
            width: auto;
            margin: auto;
        }
    }

    .bdk-catfish-mb, #bdk_mobile_top_slot {
        display: none !important;
    }
}

@media (max-width: 959px) {
    .bdk-catfish-pc, .bdk-dual-wrapper {
        display: none !important;
    }

    .bdk-catfish-mb {
        bottom: 0;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        width: 100%;

        .bdk-slot {
            width: calc(100% - 20px);
            margin: 0 10px 4px;
        }

        ins, ins a {
            width: 100%;
            display: block;
        }

        img {
            max-height: 55px;
            width: 100%;
        }
    }

    #bdk_mobile_top_slot {
        margin: 0 10px;
        display: flex;
        flex-direction: column;
        gap: 4px;

        ins, ins a {
            width: 100%;
            display: block;
        }

        img {
            height: 55px;
        }
    }
}
