/* ============================================
   PWA Install Prompt Styles
   ============================================ */

/* Overlay */
.pwa-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#pwa-install-prompt.show .pwa-prompt-overlay {
    opacity: 1;
}

/* Main Card */
.pwa-prompt-card {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    background: white;
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: calc(100% - 40px);
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#pwa-install-prompt.show .pwa-prompt-card {
    transform: translateX(-50%) translateY(0);
}

/* Close Button */
.pwa-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #a0aec0;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    line-height: 1;
}

.pwa-close-btn:hover {
    background: #f7fafc;
    color: #4a5568;
}

/* App Icon */
.pwa-icon {
    text-align: center;
    margin-bottom: 16px;
}

.pwa-icon img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Typography */
.pwa-prompt-card h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    text-align: center;
}

.pwa-prompt-card p {
    margin: 0 0 24px 0;
    color: #4a5568;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

/* Action Buttons */
.pwa-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pwa-prompt-actions .btn {
    width: 100%;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pwa-prompt-actions .btn-primary {
    background: #4a90e2;
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.pwa-prompt-actions .btn-primary:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.pwa-prompt-actions .btn-primary:active {
    transform: translateY(0);
}

.pwa-prompt-actions .btn-outline-secondary {
    background: transparent;
    color: #718096;
    border: 1px solid #e2e8f0;
}

.pwa-prompt-actions .btn-outline-secondary:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

/* ============================================
   iOS Install Prompt
   ============================================ */

.ios-install-prompt {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: slideUpIOS 0.3s ease-out;
}

@keyframes slideUpIOS {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.ios-prompt-content {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.ios-close-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #e2e8f0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 24px;
    color: #4a5568;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ios-prompt-content h4 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
}

.ios-prompt-content p {
    margin: 0 0 12px 0;
    color: #4a5568;
    font-size: 14px;
}

.ios-prompt-content ol {
    margin: 0;
    padding-left: 20px;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.8;
}

.ios-prompt-content li {
    margin-bottom: 8px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 576px) {
    .pwa-prompt-card {
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(150%);
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 28px 20px;
    }

    #pwa-install-prompt.show .pwa-prompt-card {
        transform: translateY(0);
    }

    .pwa-prompt-card h3 {
        font-size: 20px;
    }

    .pwa-prompt-card p {
        font-size: 14px;
    }

    .pwa-icon img {
        width: 64px;
        height: 64px;
    }
}