/*
 * Short Drama add-on — "Home / Short Drama" switch.
 * Referenced by Modules/ShortDrama sass (partials/_mobile-hub-tabs.scss) which expects
 * this file to be loaded from the frontend master layout.
 *
 * Design intent (matches the vendor preview): a compact segmented pill shown only on
 * small screens. On desktop the normal top navigation already covers Short Drama,
 * so the switch is hidden.
 */

.sd-mobile-hub-stack {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.sd-mobile-hub-tabs {
    display: inline-flex;
    align-items: stretch;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.sd-mobile-hub-tabs--in-stack {
    align-self: center;
    margin: 10px auto 4px;
}

.sd-mobile-hub-tabs--above-banner {
    position: relative;
    z-index: 3;
}

.sd-mobile-hub-tabs--in-header {
    align-self: center;
}

.sd-mobile-hub-tabs__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 96px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    color: rgba(255, 255, 255, .82);
    transition: background-color .18s ease, color .18s ease;
}

.sd-mobile-hub-tabs__btn:hover {
    color: #fff;
}

.sd-mobile-hub-tabs__btn.is-active {
    color: #fff;
    background: var(--bs-primary, #0d6efd);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

.sd-mobile-hub-tabs__btn i {
    font-size: 15px;
}

.sd-mobile-hub-tabs__icon-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}

/* Desktop: the main nav already links Short Drama — hide the mobile switch. */
@media (min-width: 992px) {
    .sd-mobile-hub-tabs {
        display: none !important;
    }
}
