/* ==========================================================
   PWA Install bar (Nabu)
   - Container layout + scoped glass button styling
   ========================================================== */

.nabu-install-bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 999999;
    display: none;

    animation: nabuInstallSlideIn .35s ease-out;
}

@keyframes nabuInstallSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


.nabu-install-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    background: linear-gradient(
        145deg,
        #1c1c1c,
        #232323
    );

    border: 1px solid rgba(66,132,181,0.35); /* petrol hint */
    border-radius: 22px;
    padding: 14px 16px;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.6),
        0 0 0 1px rgba(66,132,181,0.15) inset;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


.nabu-install-text {
    min-width: 0;
}

.nabu-install-title {
    font-weight: 800;
    font-size: 15px;
    line-height: 1.2;
}

.nabu-install-sub {
    margin-top: 2px;
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.2;
}

.nabu-install-actions {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

/* Mobile: stack nicely if tight */
@media (max-width: 420px) {
    .nabu-install-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .nabu-install-actions {
        justify-content: space-between;
    }

    .nabu-install-bar {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
}

/* ==========================================================
   Force glass button styling (scoped)
   ========================================================== */

.nabu-install-bar .glass-btn {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: #fff;

    border-radius: 16px;
    padding: 10px 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    transition: transform .12s ease, filter .12s ease, border-color .12s ease, background .12s ease;
}

.nabu-install-bar .glass-btn:active {
    transform: translateY(1px);
}

.nabu-install-bar .glass-btn:focus {
    outline: none;
}

.nabu-install-bar .glass-btn-petrol {
    border-color: rgba(66,132,181,0.55);
    background: rgba(66,132,181,0.22);

    box-shadow:
        0 0 0 0 rgba(66,132,181,0.4);
    animation: nabuPulse 2.5s infinite;
}

@keyframes nabuPulse {
    0%   { box-shadow: 0 0 0 0 rgba(66,132,181,0.45); }
    70%  { box-shadow: 0 0 0 10px rgba(66,132,181,0); }
    100% { box-shadow: 0 0 0 0 rgba(66,132,181,0); }
}


.nabu-install-bar .glass-btn-petrol:active {
    filter: brightness(1.08);
}

.nabu-install-bar .glass-btn-ghost {
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.04);
    min-width: 44px;
    text-align: center;
}

/* ==========================================================
   Browser notifications bar (Nabu)
   - Mobile browser only
   - Not used inside APK
   ========================================================== */

.nabu-notif-bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 999998;
    display: none;

    animation: nabuInstallSlideIn .35s ease-out;
}

.nabu-notif-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    background: linear-gradient(
        145deg,
        #1c1c1c,
        #232323
    );

    border: 1px solid rgba(190,144,93,0.35);
    border-radius: 22px;
    padding: 14px 16px;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.6),
        0 0 0 1px rgba(190,144,93,0.15) inset;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nabu-notif-text {
    min-width: 0;
}

.nabu-notif-title {
    font-weight: 800;
    font-size: 15px;
    line-height: 1.2;
}

.nabu-notif-sub {
    margin-top: 2px;
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.25;
}

.nabu-notif-actions {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.nabu-notif-bar .glass-btn {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: #fff;

    border-radius: 16px;
    padding: 10px 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    transition: transform .12s ease, filter .12s ease, border-color .12s ease, background .12s ease;
}

.nabu-notif-bar .glass-btn:active {
    transform: translateY(1px);
}

.nabu-notif-bar .glass-btn:focus {
    outline: none;
}

.nabu-notif-bar .glass-btn-bronze {
    border-color: rgba(190,144,93,0.55);
    background: rgba(190,144,93,0.22);

    box-shadow:
        0 0 0 0 rgba(190,144,93,0.40);
    animation: nabuNotifPulse 2.2s infinite;
}

@keyframes nabuNotifPulse {
    0%   { box-shadow: 0 0 0 0 rgba(190,144,93,0.45); }
    70%  { box-shadow: 0 0 0 10px rgba(190,144,93,0); }
    100% { box-shadow: 0 0 0 0 rgba(190,144,93,0); }
}

.nabu-notif-bar .glass-btn-bronze:active {
    filter: brightness(1.08);
}

@media (max-width: 420px) {
    .nabu-notif-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .nabu-notif-actions {
        justify-content: stretch;
    }

    .nabu-notif-actions .glass-btn {
        width: 100%;
    }

    .nabu-notif-bar {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
}

/* When both bars are visible, keep notifications above install bar */
.nabu-notif-bar.has-install-bar {
    bottom: 108px;
}
