/* =============================================================================
   app-update.css — styles for the native-app "update available" prompt.
   Paired with public/shared/js/app-update.js (loaded on index.html). Only ever
   rendered inside the Flutter WebView shell. Two surfaces:
     .qa-update-banner  — soft, dismissable bottom bar (latest > installed)
     .qa-update-modal   — blocking full-screen overlay (force + below minimum)
   Uses theme.css tokens so it always matches the brand.
   ========================================================================== */

/* ---- Soft banner ------------------------------------------------------- */
.qa-update-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99990;
    background: var(--bg-card, #1E293B);
    border-top: 2px solid var(--accent-gold, #F7C948);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.45);
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(110%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.qa-update-banner.qa-show {
    transform: translateY(0);
}
.qa-update-banner__icon {
    font-size: 26px;
    line-height: 1;
    flex: 0 0 auto;
}
.qa-update-banner__text {
    flex: 1 1 auto;
    min-width: 0;
}
.qa-update-banner__title {
    color: var(--text-main, #F8FAFC);
    font-weight: 700;
    font-size: 15px;
    margin: 0 0 2px;
}
.qa-update-banner__sub {
    color: var(--text-muted, #94A3B8);
    font-size: 12.5px;
    margin: 0;
}
.qa-update-banner__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- Blocking modal ---------------------------------------------------- */
.qa-update-modal {
    position: fixed;
    inset: 0;
    z-index: 99991;
    background: var(--bg-overlay, rgba(15, 23, 42, 0.92));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.qa-update-modal.qa-show {
    opacity: 1;
}
.qa-update-modal__card {
    background: var(--bg-card, #1E293B);
    border: 1px solid var(--accent-gold, #F7C948);
    border-radius: 18px;
    max-width: 380px;
    width: 100%;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}
.qa-update-modal__icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 12px;
}
.qa-update-modal__title {
    color: var(--accent-gold, #F7C948);
    font-weight: 800;
    font-size: 20px;
    margin: 0 0 10px;
}
.qa-update-modal__sub {
    color: var(--text-muted, #94A3B8);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 22px;
}

/* ---- Buttons (shared) -------------------------------------------------- */
.qa-update-btn {
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 18px;
    cursor: pointer;
    font-family: inherit;
    transition: filter 0.15s ease, opacity 0.15s ease;
}
.qa-update-btn:active {
    filter: brightness(0.9);
}
.qa-update-btn--primary {
    background: var(--accent-gold, #F7C948);
    color: #111111;
}
.qa-update-btn--ghost {
    background: transparent;
    color: var(--text-muted, #94A3B8);
    padding: 11px 12px;
}
.qa-update-modal .qa-update-btn--primary {
    display: block;
    width: 100%;
}
