/* ==========================================================
   banner.css
   Banner slider: bingkai, slide, tombol navigasi, progress bar, titik penunjuk, dan editor banner (admin).
   ========================================================== */

/* ===== BANNER SLIDER ===== */
.banner-frame {
    position: relative;
    isolation: isolate;
    border-radius: 18px;
    padding: 1.5px;
    background: rgba(15, 17, 26, 0.75);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 28px rgba(0, 243, 255, 0.08);
}
.banner-frame > .ll-ring {
    z-index: 3;
    padding: 1.5px;
    opacity: 0.9;
}
.banner-frame > .ll-ring > i {
    background: conic-gradient(from 0deg, transparent 0 38%, #00f3ff 48%, #b026ff 60%, #ff007f 72%, transparent 84% 100%);
}
.banner-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 16.5px;
    aspect-ratio: 40 / 9;
    background: #06070b;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}
/* Aksen HUD futuristik di sudut */
.banner-viewport::after {
    content: "";
    position: absolute;
    inset: 8px;
    z-index: 2;
    border-radius: 12px;
    pointer-events: none;
    opacity: 0.6;
    background:
        linear-gradient(#00f3ff, #00f3ff) top left / 14px 1.5px no-repeat,
        linear-gradient(#00f3ff, #00f3ff) top left / 1.5px 14px no-repeat,
        linear-gradient(#ff007f, #ff007f) bottom right / 14px 1.5px no-repeat,
        linear-gradient(#ff007f, #ff007f) bottom right / 1.5px 14px no-repeat;
}
.banner-track {
    display: flex;
    width: 100%;
    height: 100%;
    will-change: transform;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.25, 1);
}
.banner-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    -webkit-user-drag: none;
}
.banner-slide.is-link { cursor: pointer; }
.banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
    transition: transform 6s ease-out;
}
.banner-slide.is-link:hover .banner-img { transform: scale(1.04); }
.banner-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(176, 38, 255, 0.45), transparent 55%),
        radial-gradient(circle at 85% 30%, rgba(0, 243, 255, 0.35), transparent 50%),
        radial-gradient(circle at 50% 110%, rgba(255, 0, 127, 0.30), transparent 55%),
        #0a0c16;
}
.banner-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 22px 22px;
}
.banner-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 7, 11, 0.92) 0%, rgba(6, 7, 11, 0.55) 38%, rgba(6, 7, 11, 0) 72%);
    pointer-events: none;
}
.banner-caption {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 11px;
    text-align: left;
    pointer-events: none;
}
.banner-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.25;
    letter-spacing: 0.01em;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.banner-text {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.85);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.banner-chip {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 1;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #00f3ff;
    background: rgba(6, 7, 11, 0.78);
    border: 1px solid rgba(0, 243, 255, 0.4);
    pointer-events: none;
}
.banner-cta {
    position: absolute;
    right: 12px;
    bottom: 11px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 112px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: #06070b;
    background: linear-gradient(90deg, #00f3ff, #b026ff);
    box-shadow: 0 0 14px rgba(0, 243, 255, 0.45);
    pointer-events: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.banner-cta span {
    overflow: hidden;
    text-overflow: ellipsis;
}
.banner-cta i { font-size: 9px; transition: transform 0.25s ease; }
.banner-slide.is-link:hover .banner-cta {
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.65);
    transform: translateY(-1px);
}
.banner-slide.is-link:hover .banner-cta i { transform: translateX(3px); }
.banner-caption.has-cta { right: 132px; }
.banner-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    background: rgba(6, 7, 11, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.banner-nav:hover { border-color: #00f3ff; color: #00f3ff; }
.banner-nav-prev { left: 8px; }
.banner-nav-next { right: 8px; }
@media (hover: hover) and (pointer: fine) {
    .banner-nav.is-on { display: flex; }
    .banner-viewport:hover .banner-nav { opacity: 1; }
}
.banner-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    z-index: 4;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.banner-progress span {
    display: block;
    height: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(90deg, #00f3ff, #b026ff, #ff007f);
}
.banner-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-top: 6px;
}
.banner-dot {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.banner-dot span {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    transition: width 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.banner-dot.active span {
    width: 20px;
    background: linear-gradient(90deg, #00f3ff, #b026ff, #ff007f);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.55);
}
details.banner-editor-item[open] .bn-chev { transform: rotate(180deg); }
details.banner-editor-item summary { list-style: none; }
details.banner-editor-item summary::-webkit-details-marker { display: none; }
