/* ════════════════════════════════════════════════════════
   Watchroom PWA Install Banner
   Include on every user-facing page: <link rel="stylesheet" href="/css/pwa.css">
   ════════════════════════════════════════════════════════ */

#pwaInstallBanner {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    width: calc(100% - 32px);
    max-width: 520px;
    transition: bottom .35s cubic-bezier(.16,1,.3,1), opacity .35s;
    opacity: 0;
    pointer-events: none;
}

#pwaInstallBanner.pwa-banner-show {
    bottom: 24px;
    opacity: 1;
    pointer-events: auto;
}

#pwaInstallBanner.pwa-banner-hide {
    bottom: -100px;
    opacity: 0;
    pointer-events: none;
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(15,18,28,.97) 0%, rgba(20,24,36,.97) 100%);
    border: 1px solid rgba(224,12,81,.25);
    border-radius: 16px;
    box-shadow:
        0 12px 48px rgba(0,0,0,.55),
        0 0 0 1px rgba(255,255,255,.06),
        0 0 40px rgba(224,12,81,.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.pwa-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: cover;
}

.pwa-banner-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pwa-banner-text strong {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.pwa-banner-text span {
    color: rgba(255,255,255,.55);
    font-size: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-banner-install {
    flex-shrink: 0;
    padding: 8px 20px;
    border-radius: 10px;
    border: none;
    background: #e00c51;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    cursor: pointer;
    transition: background .2s, transform .15s;
    letter-spacing: .3px;
}

.pwa-banner-install:hover {
    background: #f01060;
    transform: scale(1.04);
}

.pwa-banner-install:active {
    transform: scale(.97);
}

.pwa-banner-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.5);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
}

.pwa-banner-close:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}

/* ── Mobile adjustments ── */
@media (max-width: 480px) {
    #pwaInstallBanner {
        width: calc(100% - 16px);
    }

    #pwaInstallBanner.pwa-banner-show {
        bottom: 16px;
    }

    .pwa-banner-content {
        padding: 12px;
        gap: 10px;
    }

    .pwa-banner-icon {
        width: 36px;
        height: 36px;
    }

    .pwa-banner-text strong {
        font-size: 13px;
    }

    .pwa-banner-install {
        padding: 7px 14px;
        font-size: 12px;
    }
}
