/* PA Floating Image Badge - Frontend Styles */
.pa-float-stack {
    position: fixed;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
}
.pa-float-pos-right-middle {
    top: 50%;
    transform: translateY(-50%);
}
.pa-float-item {
    position: relative;
    pointer-events: auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.pa-float-item:hover {
    transform: translateY(-3px) scale(1.04);
}
.pa-float-link {
    display: block;
    position: relative;
    line-height: 0;
    text-decoration: none;
    border-radius: 10px;
}
.pa-float-link:focus-visible {
    outline: 3px solid #ff9900;
    outline-offset: 3px;
}
.pa-float-link img {
    display: block;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.24));
    transition: filter 0.2s ease;
}
.pa-float-item:hover .pa-float-link img {
    filter: drop-shadow(0 10px 20px rgba(5, 110, 79, 0.35));
}

/* Shapes */
.pa-float-shape-rounded .pa-float-link img {
    border-radius: 12px;
    border: 2px solid #ffffff;
    background: #ffffff;
}
.pa-float-shape-circle .pa-float-link img {
    border-radius: 50%;
    border: 2.5px solid #ff9900;
    background: #ffffff;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.pa-float-shape-none .pa-float-link img {
    border-radius: 0;
    border: none;
    background: transparent;
}

/* Tooltip muncul di sisi kiri gambar */
.pa-float-tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: #034d37;
    color: #ffffff;
    border: 1px solid #ff9900;
    padding: 6px 11px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.pa-float-item:hover .pa-float-tooltip,
.pa-float-link:focus-visible .pa-float-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Tombol tutup opsional */
.pa-float-close {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1b2420;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.pa-float-close:hover {
    background: #dc2626;
}

/* Dukungan Mode Kontras Tinggi Tema Pengadilan Agama */
body.pa-high-contrast .pa-float-link img {
    border: 2px solid #ffff00 !important;
}
body.pa-high-contrast .pa-float-tooltip {
    background: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}

/* Responsif Mobile */
@media (max-width: 640px) {
    .pa-float-hide-mobile {
        display: none !important;
    }
    .pa-float-tooltip {
        display: none;
    }
}
