/* ================================================
   SIDE BUBBLES (desktop) / BOTTOM APP NAV (mobile)
   ================================================ */

/* ---- Mobile-first: bottom app nav ---- */

#sideBubbles {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 990;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 6px 4px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.08);
}

/* Give the page breathing room above the fixed bottom bar */
body {
    padding-bottom: 68px;
}

.sb-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 52px;
    padding: 6px 8px;
    border-radius: 10px;
    color: #4b5563;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    border: none;
    transition: color 0.2s ease, background 0.2s ease;
    text-decoration: none;
}

.sb-bubble:active,
.sb-bubble:hover {
    background: #f3f4f6;
}

.sb-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: inherit;
    white-space: nowrap;
}

/* Per-item colours on mobile */
.sb-bubble--call     { color: #dc2626; }
.sb-bubble--facebook { color: #1877F2; }
.sb-bubble--instagram{ color: #C13584; }
.sb-bubble--lang     { color: #059669; }
.sb-bubble--share    { color: #6b7280; }

/* Toast notification (used by share button) */
#sbToast {
    position: fixed;
    bottom: 78px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #1f2937;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-family: 'Roboto', sans-serif;
    white-space: nowrap;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#sbToast.sb-toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Hide promotion float-call: bottom nav already has the call button */
.pd-float-call {
    display: none !important;
}


/* ================================================
   DESKTOP: right-edge pill bubbles  (≥ 1320px)
   ================================================ */
@media (min-width: 1320px) {

    /* Reset mobile body padding */
    body {
        padding-bottom: 0;
    }

    #sideBubbles {
        /* override all mobile layout */
        position: fixed;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        bottom: auto;
        left: auto;
        width: auto;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        gap: 8px;
        background: transparent;
        border-top: none;
        box-shadow: none;
        padding: 12px 0;
        z-index: 990;
    }

    .sb-bubble {
        /* pill anchored to the right edge */
        flex-direction: row-reverse; /* icon on the right, label on the left */
        align-items: center;
        justify-content: flex-start;
        height: 48px;
        max-width: 48px;
        border-radius: 24px 0 0 24px;
        padding: 0 13px;
        gap: 0;
        overflow: hidden;
        color: #ffffff;
        font-size: 1rem;
        box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.18);
        white-space: nowrap;
        transition:
            max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
            padding   0.35s cubic-bezier(0.4, 0, 0.2, 1),
            box-shadow 0.2s ease,
            filter    0.2s ease;
    }

    .sb-bubble:hover {
        max-width: 170px;
        padding: 0 16px;
        box-shadow: -4px 4px 18px rgba(0, 0, 0, 0.28);
        filter: brightness(1.06);
        background: var(--sb-bg);
    }

    .sb-label {
        font-size: 0.78rem;
        font-weight: 600;
        text-transform: none;
        letter-spacing: 0;
        max-width: 0;
        opacity: 0;
        overflow: hidden;
        margin-right: 0;
        color: #ffffff;
        transition:
            max-width    0.35s cubic-bezier(0.4, 0, 0.2, 1),
            opacity      0.3s  ease,
            margin-right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sb-bubble:hover .sb-label {
        max-width: 110px;
        opacity: 1;
        margin-right: 9px;
    }

    /* Brand background colours */
    .sb-bubble--call     { --sb-bg: #dc2626; background: var(--sb-bg); color: #fff; }
    .sb-bubble--facebook { --sb-bg: #1877F2; background: var(--sb-bg); color: #fff; }
    .sb-bubble--instagram{
        --sb-bg: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        background: var(--sb-bg);
        color: #fff;
    }
    .sb-bubble--lang     { --sb-bg: #059669; background: var(--sb-bg); color: #fff; }
    .sb-bubble--share    { --sb-bg: #6b7280; background: var(--sb-bg); color: #fff; }

    /* Toast repositioned for desktop */
    #sbToast {
        bottom: 32px;
        right: 64px;
        left: auto;
        transform: translateY(6px);
    }
    #sbToast.sb-toast--show {
        transform: translateY(0);
    }

}


/* ================================================
   POWERED-BY card in footer
   ================================================ */
.powered-by-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: min(100%, 245px);
    padding: 18px 22px;
    background: linear-gradient(145deg, rgba(34, 10, 12, 0.58), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow:
        0 18px 42px rgba(45, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(7px) saturate(1.08);
    -webkit-backdrop-filter: blur(7px) saturate(1.08);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.powered-by-card:hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, rgba(34, 10, 12, 0.68), rgba(255, 255, 255, 0.11));
    border-color: rgba(255, 255, 255, 0.28);
}

.pbc-tag {
    font-size: 0.64rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.72);
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
}

.pbc-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
}

.pbc-icon {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    color: #b91c1c;
    font-size: 0.94rem;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.pbc-name {
    font-family: 'Anton SC', sans-serif;
    font-size: clamp(1.48rem, 2.2vw, 1.72rem);
    line-height: 1;
    letter-spacing: 0.045em;
    color: #ffffff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
    transition: color 0.15s ease;
}

.pbc-link:hover .pbc-name {
    color: #ffe4e6;
}

.pbc-desc {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.78);
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}
