/* PWA Install Prompt - ExplainMe Premium Style */

#pwa-install-banner {
    position: fixed;
    bottom: 24px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(37, 99, 235, 0.08);
    border-radius: 24px;
    padding: 20px;
    z-index: 10000;
    display: none; /* Hidden by default */
    align-items: center;
    gap: 16px;
    transform: translateY(120%);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
    opacity: 0;
}

#pwa-install-banner.show {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.pwa-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.pwa-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.pwa-content {
    flex-grow: 1;
}

.pwa-content h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
}

.pwa-content p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

.pwa-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pwa-btn-install {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pwa-btn-install:active {
    transform: scale(0.95);
    background: #1d4ed8;
}

.pwa-btn-close {
    background: transparent;
    color: #94a3b8;
    border: none;
    padding: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
}

/* Responsive adjustments for tablet */
@media (min-width: 768px) {
    #pwa-install-banner {
        max-width: 420px;
        left: auto;
        right: 24px;
        bottom: 24px;
    }
}

/* Hide on Desktop Desktop as per requirement */
@media (min-width: 1025px) {
    #pwa-install-banner {
        display: none !important;
    }
}
