/* PWA Install Prompt - Modern iOS/Android Style */
#pwa-install-prompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    max-width: 420px;
    width: calc(100% - 40px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

#pwa-install-prompt.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.pwa-prompt-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pwa-prompt-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.pwa-prompt-text {
    flex: 1;
    color: white;
}

.pwa-prompt-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.pwa-prompt-subtitle {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

.pwa-prompt-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

#pwa-install-btn {
    flex: 1;
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#pwa-install-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#pwa-install-btn:active {
    transform: translateY(0);
}

#pwa-close-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

#pwa-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile Responsive */
@media (max-width: 576px) {
    #pwa-install-prompt {
        bottom: 10px;
        width: calc(100% - 20px);
        padding: 16px 18px;
        border-radius: 16px;
    }

    .pwa-prompt-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .pwa-prompt-title {
        font-size: 15px;
    }

    .pwa-prompt-subtitle {
        font-size: 12px;
    }

    #pwa-install-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    #pwa-close-btn {
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    #pwa-install-prompt {
        bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #pwa-install-prompt {
        background: linear-gradient(135deg, #4c51bf 0%, #553c9a 100%);
    }
}

/* Animation for close */
@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}
