/* PWA Installer Popup Styles */
.pwa-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.pwa-popup-overlay.pwa-popup-show {
    opacity: 1;
}

.pwa-popup-content {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    position: relative;
}

.pwa-popup-show .pwa-popup-content {
    transform: translateY(0) scale(1);
}

.pwa-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0 24px;
    position: relative;
}

.pwa-popup-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 8px;
}

.pwa-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.pwa-popup-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.pwa-popup-body {
    padding: 16px 24px 24px 24px;
    text-align: center;
}

.pwa-popup-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.pwa-popup-description {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 24px 0;
}

.pwa-popup-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.pwa-feature {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.pwa-feature:hover {
    background-color: #e9ecef;
}

.pwa-feature-icon {
    font-size: 20px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.pwa-feature-text {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.pwa-popup-footer {
    display: flex;
    gap: 12px;
    padding: 0 24px 24px 24px;
}

.pwa-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.pwa-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pwa-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

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

.pwa-btn-secondary {
    background-color: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
}

.pwa-btn-secondary:hover {
    background-color: #e9ecef;
    color: #555;
}

/* Responsividade */
@media (max-width: 480px) {
    .pwa-popup-content {
        width: 95%;
        margin: 20px;
    }
    
    .pwa-popup-header,
    .pwa-popup-body,
    .pwa-popup-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .pwa-popup-title {
        font-size: 20px;
    }
    
    .pwa-popup-description {
        font-size: 14px;
    }
    
    .pwa-popup-footer {
        flex-direction: column;
    }
    
    .pwa-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Animações adicionais */
@keyframes pwa-bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

.pwa-popup-icon {
    animation: pwa-bounce 2s infinite;
}

/* Tema escuro */
@media (prefers-color-scheme: dark) {
    .pwa-popup-content {
        background: #1a1a1a;
        color: #ffffff;
    }
    
    .pwa-popup-title {
        color: #ffffff;
    }
    
    .pwa-popup-description {
        color: #cccccc;
    }
    
    .pwa-popup-close {
        color: #cccccc;
    }
    
    .pwa-popup-close:hover {
        background-color: #333333;
        color: #ffffff;
    }
    
    .pwa-feature {
        background-color: #2a2a2a;
    }
    
    .pwa-feature:hover {
        background-color: #333333;
    }
    
    .pwa-feature-text {
        color: #cccccc;
    }
    
    .pwa-btn-secondary {
        background-color: #2a2a2a;
        color: #cccccc;
        border-color: #444444;
    }
    
    .pwa-btn-secondary:hover {
        background-color: #333333;
        color: #ffffff;
    }
}