/* ============================================================
   MHC Slider Navigation – nav.css
   ============================================================ */

/* ── WRAPPER overlay di atas container target ── */
.mhc-nav-wrapper {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 100;
}

/* Semua elemen nav bisa diklik */
.mhc-nav-wrapper > *,
.mhc-nav-wrapper .mhc-nav-topbar > * {
    pointer-events: auto;
}

/* ── DOTS ── */
.mhc-nav-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.mhc-nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .25s, transform .2s;
    display: block;
}

.mhc-nav-dot.active {
    background: #fff;
    transform: scale(1.25);
}

.mhc-nav-dot:hover {
    background: rgba(255,255,255,.85);
}

/* ── ARROWS (middle position) ── */
.mhc-nav-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,.28);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .2s, transform .15s;
    z-index: 10;
}

.mhc-nav-arrow:hover {
    background: rgba(0,0,0,.50);
    transform: scale(1.08);
}

.mhc-nav-arrow svg {
    width: 15px;
    height: 15px;
    fill: #fff;
    pointer-events: none;
}

/* Prev = putar 90° kiri (menunjuk kiri) */
.mhc-nav-arrow-prev svg { transform: rotate(90deg); }
/* Next = putar 90° kanan (menunjuk kanan) */
.mhc-nav-arrow-next svg { transform: rotate(-90deg); }

/* Middle position */
.mhc-arrows-middle .mhc-nav-arrow-prev,
.mhc-arrows-middle .mhc-nav-arrow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.mhc-arrows-middle .mhc-nav-arrow-prev { left: 16px; }
.mhc-arrows-middle .mhc-nav-arrow-next { right: 16px; }

.mhc-arrows-middle .mhc-nav-arrow-prev:hover,
.mhc-arrows-middle .mhc-nav-arrow-next:hover {
    transform: translateY(-50%) scale(1.08);
}

/* ── TOP BAR ── */
.mhc-nav-topbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    box-sizing: border-box;
    z-index: 10;
}

/* ── PAUSE BUTTON ── */
.mhc-nav-pause {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,.28);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .2s;
}

.mhc-nav-pause:hover { background: rgba(0,0,0,.50); }

.mhc-nav-pause svg {
    width: 10px;
    height: 14px;
    fill: #fff;
}

.mhc-pause-icon,
.mhc-play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Target container HARUS position:relative ── */
/* JS akan set ini otomatis, tapi ini sebagai fallback */
.mhc-nav-target-ready {
    position: relative !important;
    overflow: hidden;
}

/* ── Slide children dari container ── */
.mhc-nav-target-ready > .mhc-slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--mhc-trans, 700ms) ease;
    pointer-events: none;
}

.mhc-nav-target-ready > .mhc-slide-item.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .mhc-nav-arrow { width: 32px; height: 32px; }
    .mhc-nav-arrow svg { width: 12px; height: 12px; }
    .mhc-nav-dot { width: 8px; height: 8px; }
}
