/* PWA Install Prompt - Universal (iOS & Android) */
/* ============================================== */

.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 16px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.pwa-install-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-install-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

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

.pwa-install-text strong {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.pwa-install-text span {
    font-size: 13px;
    opacity: 0.95;
    line-height: 1.3;
}

.pwa-install-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-install-btn {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.pwa-install-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.pwa-install-btn:active {
    background: rgba(255, 255, 255, 0.45);
}

.pwa-install-dismiss {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.pwa-install-dismiss:hover {
    background: rgba(255, 255, 255, 0.25);
}

.pwa-install-dismiss:active {
    background: rgba(255, 255, 255, 0.35);
}

/* iOS-specific styling for share icon */
.ios-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin: 0 3px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .pwa-install-banner {
        padding: 14px 12px;
    }

    .pwa-install-text strong {
        font-size: 14px;
    }

    .pwa-install-text span {
        font-size: 12px;
    }

    .pwa-install-btn {
        padding: 7px 14px;
        font-size: 13px;
    }

    .pwa-install-dismiss {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}

/* Animation for icon */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.pwa-install-banner.show .pwa-install-icon {
    animation: bounce 2s ease-in-out infinite;
}
