/* ===================================
   PWA INSTALL PROMPT
   =================================== */

.pwa-install-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.pwa-install-overlay.show {
    opacity: 1;
}

.pwa-install-prompt {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.pwa-install-overlay.show .pwa-install-prompt {
    transform: scale(1);
}

/* Header */
.pwa-prompt-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-hover));
    color: white;
    padding: 24px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.pwa-prompt-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.pwa-prompt-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    flex: 1;
}

.pwa-prompt-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    font-size: 16px;
}

.pwa-prompt-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Content */
.pwa-prompt-content {
    padding: 24px;
}

.pwa-prompt-content > p {
    margin: 0 0 20px 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

/* Benefits */
.pwa-prompt-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.pwa-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.pwa-benefit i {
    color: var(--success-green);
    font-size: 18px;
    flex-shrink: 0;
}

.pwa-benefit span {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

/* Steps */
.pwa-prompt-steps {
    background: #f0f7ff;
    border: 1px solid #c9e0f7;
    border-radius: 12px;
    padding: 16px;
}

.pwa-prompt-steps p {
    margin: 0 0 12px 0;
    color: var(--text-primary);
    font-size: 14px;
}

.pwa-prompt-steps ol {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.pwa-prompt-steps li {
    margin-bottom: 8px;
}

.pwa-prompt-steps li:last-child {
    margin-bottom: 0;
}

.pwa-prompt-steps strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* iOS Share Icon */
.ios-share-icon {
    display: inline-block;
    height: 22px;
    width: auto;
    margin: 0 6px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* Footer */
.pwa-prompt-footer {
    padding: 16px 24px;
    background: #f8f9fa;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.pwa-prompt-footer button {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.pwa-prompt-dismiss {
    background: transparent;
    color: var(--text-secondary);
}

.pwa-prompt-dismiss:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.pwa-prompt-later {
    background: var(--primary-blue);
    color: white;
}

.pwa-prompt-later:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .pwa-install-prompt {
        max-width: none;
        margin: 0;
    }
    
    .pwa-prompt-header {
        padding: 20px;
    }
    
    .pwa-prompt-content {
        padding: 20px;
    }
    
    .pwa-prompt-footer {
        flex-direction: column;
    }
    
    .pwa-prompt-footer button {
        width: 100%;
    }
}