/* Estilos para alertas de fraude e detecção de pump & dump */

.fraud-alert {
    margin: 8px 0;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    backdrop-filter: blur(5px);
    position: relative;
    animation: fraudAlertPulse 2s ease-in-out infinite;
}

/* Tipos de alerta de fraude por severidade */
.fraud-critical {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.25), rgba(255, 0, 0, 0.1));
    border-left-color: #FF0000;
    animation: criticalFraudPulse 1.5s ease-in-out infinite;
}

.fraud-warning {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.25), rgba(255, 165, 0, 0.1));
    border-left-color: #FFA500;
}

.fraud-info {
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.25), rgba(65, 105, 225, 0.1));
    border-left-color: #4169E1;
}

/* Header do alerta */
.fraud-alert-header {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-weight: bold;
}

.fraud-alert-icon {
    font-size: 16px;
    margin-right: 8px;
    animation: iconPulse 2s ease-in-out infinite;
}

.fraud-alert-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mensagem do alerta */
.fraud-alert-message {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 6px;
    opacity: 0.9;
}

/* Recomendação */
.fraud-alert-recommendation {
    font-size: 11px;
    font-style: italic;
    opacity: 0.8;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 6px;
    margin-top: 6px;
}

/* Animações */
@keyframes fraudAlertPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    }
}

@keyframes criticalFraudPulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
        transform: scale(1.01);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Card com alertas críticos */
.has-critical-fraud-alerts {
    border: 2px solid rgba(255, 0, 0, 0.3) !important;
    animation: criticalCardPulse 2s ease-in-out infinite;
}

@keyframes criticalCardPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 0, 0, 0.4);
    }
}

/* Botão de informações discreto */
.coin-info-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.8), rgba(255, 215, 0, 0.6));
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #000;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.7;
    margin-left: 5px; /* Espaçamento após o nome da moeda */
    vertical-align: middle; /* Alinhar verticalmente com o texto */
}

.coin-info-button:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.coin-info-button:active {
    transform: scale(0.95);
}

/* Responsividade para alertas de fraude */
@media (max-width: 768px) {
    .fraud-alert {
        padding: 10px;
        margin: 6px 0;
    }
    
    .fraud-alert-title {
        font-size: 12px;
    }
    
    .fraud-alert-message {
        font-size: 11px;
    }
    
    .fraud-alert-recommendation {
        font-size: 10px;
    }
    
    .fraud-alert-icon {
        font-size: 14px;
        margin-right: 6px;
    }
    
    .coin-info-button {
        width: 20px;
        height: 20px;
        font-size: 10px;
        bottom: 6px;
        right: 6px;
    }
}

/* Integração com tema existente */
.fraud-alert {
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius-sm, 8px);
}

/* Tooltip para botão de informações */
.coin-info-button::before {
    content: 'Análise IA';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    margin-bottom: 5px;
}

.coin-info-button:hover::before {
    opacity: 1;
    visibility: visible;
}

