/* Webboll PWA — Install Banner */

#webboll-pwa-banner {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: calc(100% - 32px);
    max-width: 480px;
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,.14);
    z-index: 999999;
    transition: transform .35s cubic-bezier(.34,1.3,.64,1);
    border: 1px solid rgba(0,0,0,.07);
    border-bottom: none;
}

#webboll-pwa-banner.wpwa-visible {
    transform: translateX(-50%) translateY(0);
}

@media (min-width: 520px) {
    #webboll-pwa-banner {
        bottom: 16px;
        border-radius: 16px;
        border-bottom: 1px solid rgba(0,0,0,.07);
        transform: translateX(-50%) translateY(calc(100% + 24px));
    }
    #webboll-pwa-banner.wpwa-visible {
        transform: translateX(-50%) translateY(0);
    }
}

.wpwa-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    gap: 12px;
}

.wpwa-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.wpwa-info strong {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wpwa-info span {
    font-size: 13px;
    color: #64748b;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.4;
}

.wpwa-btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.wpwa-btn {
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 9px 18px;
    line-height: 1;
    transition: opacity .15s, transform .1s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    white-space: nowrap;
}

.wpwa-btn:active {
    transform: scale(.96);
}

.wpwa-btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.wpwa-btn-primary:hover {
    background: #1d4ed8;
}

.wpwa-btn-ghost {
    background: #f1f5f9;
    color: #475569;
    padding: 9px 14px;
}

.wpwa-btn-ghost:hover {
    background: #e2e8f0;
}

/* iOS / Firefox kapat butonu (×) */
#webboll-pwa-banner #wpwa-dismiss.wpwa-btn-ghost {
    padding: 6px 10px;
    font-size: 18px;
    border-radius: 50%;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (prefers-color-scheme: dark) {
    #webboll-pwa-banner {
        background: #1e293b;
        border-color: rgba(255,255,255,.1);
        box-shadow: 0 -4px 24px rgba(0,0,0,.4);
    }
    .wpwa-info strong { color: #f1f5f9; }
    .wpwa-info span   { color: #94a3b8; }
    .wpwa-btn-ghost   { background: #334155; color: #cbd5e1; }
    .wpwa-btn-ghost:hover { background: #475569; }
}
