/* Banner PWA - Estilos para instalação do aplicativo */
.pwa-install-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 9999;
    max-width: 420px;
    width: calc(100% - 40px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.5s ease-out;
}

.pwa-install-banner.show {
    display: block;
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-banner-icon {
    flex-shrink: 0;
    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-banner-text {
    flex: 1;
    min-width: 0;
}

.pwa-banner-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.pwa-banner-subtitle {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.3;
}

.pwa-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pwa-btn-install {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.pwa-btn-install:hover {
    background: white;
    transform: translateY(-1px);
}

.pwa-btn-close {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pwa-btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Animações */
@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.pwa-install-banner.hide {
    animation: slideDown 0.3s ease-in forwards;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .pwa-install-banner {
        bottom: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        width: auto;
        max-width: none;
    }
    
    .pwa-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .pwa-banner-actions {
        width: 100%;
        justify-content: center;
    }
    
    .pwa-btn {
        flex: 1;
        min-width: 80px;
    }
}

/* Estados especiais para diferentes dispositivos */
.pwa-install-banner.ios {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
}

.pwa-install-banner.android {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
}

.pwa-install-banner.desktop {
    background: linear-gradient(135deg, #6B73FF 0%, #000DFF 100%);
}

/* Overlay para dispositivos iOS */
.ios-install-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.ios-install-modal {
    background: white;
    padding: 24px;
    border-radius: 16px;
    max-width: 320px;
    width: calc(100% - 40px);
    text-align: center;
    position: relative;
}

.ios-install-steps {
    margin: 20px 0;
    text-align: left;
}

.ios-step {
    display: flex;
    align-items: center;
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.4;
}

.ios-step-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: #007AFF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 12px;
    flex-shrink: 0;
}

.ios-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
} 