/**
 * NOX AI Signals - Styles pour l'affichage des signaux de trading
 * Design style casino avec accents lumineux et animations
 */

/* Container principal des signaux */
.signals-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.signals-container::-webkit-scrollbar {
    width: 5px;
}

.signals-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.signals-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

/* Style du signal individuel */
.ai-signal {
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(20, 20, 35, 0.7), rgba(40, 40, 60, 0.7));
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.ai-signal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.ai-signal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 30% 50%, 
        rgba(180, 80, 255, 0.08),
        transparent 40%
    );
    pointer-events: none;
}

/* Heure du signal */
.signal-time {
    background: linear-gradient(135deg, #2a2a40, #1a1a30);
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    padding: 5px 8px;
    border-radius: 6px;
    min-width: 45px;
    text-align: center;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contenu principal du signal */
.signal-content {
    flex: 1;
    margin: 0 10px;
    overflow: hidden;
}

.signal-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: #ffffff;
}

.signal-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Variations de prix et valeurs */
.positive {
    color: #4CFF91;
    font-weight: 600;
}

.negative {
    color: #FF4C91;
    font-weight: 600;
}

.neutral {
    color: #8592A6;
    font-weight: 400;
}

/* Tags et badges */
.tag-hot, .tag-strong, .tag-watch {
    display: inline-block;
    border-radius: 5px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 5px;
    text-transform: uppercase;
}

.tag-hot {
    background: linear-gradient(135deg, #FF5F6D 0%, #FFC371 100%);
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.tag-strong {
    background: linear-gradient(135deg, #56CCF2 0%, #2F80ED 100%);
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.tag-watch {
    background: linear-gradient(135deg, #FFEFBA 0%, #FFFFFF 100%);
    color: #333;
}

/* Bouton d'action */
.btn-action {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.05);
}

.btn-action i {
    margin-left: 4px;
    font-size: 11px;
}

/* État de chargement */
.loading-signal {
    opacity: 0.7;
}

.loading-signal .signal-time {
    background: linear-gradient(135deg, #333, #222);
    animation: pulse-faint 1.5s infinite alternate;
}

@keyframes pulse-faint {
    0% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

/* Animation pour l'entrée des nouveaux signaux */
@keyframes signal-appear {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-signal:not(.loading-signal) {
    animation: signal-appear 0.5s forwards;
}

/* Styles spécifiques pour les différents scores */
.ai-signal[data-score="hot"] {
    border-left: 3px solid #FF5F6D;
}

.ai-signal[data-score="hot"]::before {
    background: radial-gradient(
        circle at 10% 50%, 
        rgba(255, 95, 109, 0.15),
        transparent 60%
    );
}

.ai-signal[data-score="strong"] {
    border-left: 3px solid #56CCF2;
}

.ai-signal[data-score="watch"] {
    border-left: 3px solid #FFEFBA;
}

/* Style pour aucun signal */
.no-signals {
    text-align: center;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Effet de pulsation pour nouveaux signaux chauds */
@keyframes hot-pulse {
    0% {
        box-shadow: 0 0 5px rgba(255, 95, 109, 0.3);
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 95, 109, 0.6);
    }
}

.ai-signal.is-new[data-score="hot"] {
    animation: hot-pulse 1s infinite alternate;
}
