/* 
 * UPGRADE ASSISTANT - Estilo Clippy Moderno
 * Botão flutuante discreto + Notificações periódicas
 */

/* Botão Flutuante - Fixo no canto inferior direito */
#upgrade-assistant-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: 3px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4),
                0 0 40px rgba(251, 191, 36, 0.2);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    animation: float 3s ease-in-out infinite;
}

#upgrade-assistant-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(251, 191, 36, 0.6),
                0 0 60px rgba(251, 191, 36, 0.3);
}

#upgrade-assistant-btn.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Badge de notificação */
#upgrade-assistant-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid #1f2937;
    animation: bounce 1s ease-in-out infinite;
}

/* Notificação Estilo Clippy */
.upgrade-notification {
    position: fixed;
    bottom: 110px;
    right: 30px;
    max-width: 320px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 2px solid #fbbf24;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(251, 191, 36, 0.2);
    z-index: 9998;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
}

.upgrade-notification.hide {
    animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Triângulo apontando para o botão */
.upgrade-notification::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fbbf24;
}

/* Header da notificação */
.upgrade-notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.upgrade-notification-title {
    color: #fbbf24;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upgrade-notification-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.upgrade-notification-close:hover {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

/* Conteúdo da notificação */
.upgrade-notification-body {
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.upgrade-notification-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    padding: 8px;
    background: rgba(251, 191, 36, 0.05);
    border-radius: 8px;
    border-left: 3px solid #fbbf24;
}

.upgrade-notification-feature-icon {
    font-size: 18px;
    min-width: 24px;
}

.upgrade-notification-feature-text {
    flex: 1;
    font-size: 13px;
}

/* Botão de ação */
.upgrade-notification-action {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.upgrade-notification-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* Animações */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4),
                    0 0 40px rgba(251, 191, 36, 0.2);
    }
    50% {
        box-shadow: 0 4px 30px rgba(251, 191, 36, 0.6),
                    0 0 60px rgba(251, 191, 36, 0.4);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(100px) scale(0.9);
    }
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    #upgrade-assistant-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
    
    .upgrade-notification {
        bottom: 85px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
    
    .upgrade-notification::after {
        right: 25px;
    }
}

/* Esconder para usuários Premium */
body.user-premium #upgrade-assistant-btn,
body.user-premium .upgrade-notification {
    display: none !important;
}
