/* pwa.css - Estilos para Add to Home Screen Modal */

/* Modal overlay */
.pwa-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pwa-modal.pwa-modal-show {
    opacity: 1;
}

/* Modal content */
.pwa-modal-content {
    background: #ffffff;
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.pwa-modal-show .pwa-modal-content {
    transform: translateY(0);
}

/* Modal header */
.pwa-modal-header {
    text-align: center;
    padding: 30px 30px 20px;
    background: linear-gradient(135deg, #1DD1A1, #00C4FF);
    color: white;
}

.pwa-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

.pwa-modal-header h3 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.pwa-modal-header p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
    font-family: 'Poppins', sans-serif;
}

/* Instructions */
.pwa-instructions {
    padding: 25px 30px;
}

.pwa-instruction-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
    color: #333;
}

.pwa-instruction-step:last-child {
    margin-bottom: 0;
}

.pwa-step-number {
    background: linear-gradient(135deg, #1DD1A1, #00C4FF);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Modal actions */
.pwa-modal-actions {
    padding: 20px 30px 30px;
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.pwa-btn {
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.pwa-btn-primary {
    background: linear-gradient(135deg, #2D2A5A, #1F1C3D);
    color: white;
}

.pwa-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 42, 90, 0.3);
}

.pwa-btn-secondary {
    background: transparent;
    color: #666;
    border: 2px solid #e0e0e0;
}

.pwa-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
    color: #555;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .pwa-modal {
        padding: 15px;
    }
    
    .pwa-modal-content {
        max-width: 100%;
    }
    
    .pwa-modal-header {
        padding: 25px 20px 15px;
    }
    
    .pwa-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .pwa-instructions {
        padding: 20px;
    }
    
    .pwa-modal-actions {
        padding: 15px 20px 25px;
    }
    
    .pwa-instruction-step {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .pwa-step-number {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }
}

/* Dark mode support (opcional) */
@media (prefers-color-scheme: dark) {
    .pwa-modal {
        background: rgba(0, 0, 0, 0.85);
    }
    
    .pwa-modal-content {
        background: #1a1a1a;
        color: #ffffff;
    }
    
    .pwa-instruction-step {
        color: #e0e0e0;
    }
    
    .pwa-btn-secondary {
        color: #ccc;
        border-color: #444;
    }
    
    .pwa-btn-secondary:hover {
        background: #2a2a2a;
        border-color: #666;
        color: #fff;
    }
}