/* stylistic-analysis.css - Styles pour l'analyse stylistique */

.stylistic-analysis-content {
    animation: fadeInStylistic 0.3s ease;
}

@keyframes fadeInStylistic {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.stop-analysis-btn:hover {
    background: rgba(248, 113, 113, 0.25) !important;
    border-color: var(--accent-red) !important;
    transform: scale(1.05);
}


.sentiment-tag, .connector-tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

/* Bouton d'Aide (Remplace les Tooltips Overflow) */
.help-btn {
    background: none;
    border: none;
    padding: 2px;
    margin: 0;
    cursor: pointer;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
    border-radius: 50%;
    opacity: 0.7;
}

.help-btn:hover {
    color: var(--accent-gold);
    transform: scale(1.2);
    opacity: 1;
}


.sentiment-tag:hover, .connector-tag:hover {
    border-color: var(--primary-color);
    background: var(--bg-primary);
    transform: scale(1.05);
}

.sentiment-tag.positive { color: var(--accent-green); }
.sentiment-tag.negative { color: var(--accent-red); }

/* Surlignage pour l'analyse stylistique (Sentiments / Connecteurs) */
.stylistic-highlight {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%);
    border-radius: 2px;
    padding: 0 2px;
    margin: 0 -2px;
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.4);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.stylistic-highlight:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.5) 0%, rgba(59, 130, 246, 0.5) 100%);
}

.stylistic-highlight-focus {
    animation: highlightFocusStylistic 0.5s ease-out;
    box-shadow: 0 0 0 3px var(--primary-color), 0 0 20px rgba(124, 58, 237, 0.6);
}

.stylistic-highlight.sentiment-positive {
    background: rgba(74, 222, 128, 0.35) !important;
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.5);
}
.stylistic-highlight.sentiment-positive:hover {
    background: rgba(74, 222, 128, 0.55) !important;
}

.stylistic-highlight.sentiment-negative {
    background: rgba(248, 113, 113, 0.35) !important;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.5);
}
.stylistic-highlight.sentiment-negative:hover {
    background: rgba(248, 113, 113, 0.55) !important;
}

@keyframes highlightFocusStylistic {

    0% {
        transform: scale(1.3);
        box-shadow: 0 0 0 6px var(--primary-color), 0 0 30px rgba(124, 58, 237, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 3px var(--primary-color), 0 0 20px rgba(124, 58, 237, 0.6);
    }
}
