/* ==========================================
   🧪 MODÉRATEUR SOUS MÉTHADONE — Visual Effects
   Pseudo coloré + badge, pas d'effets lourds
   ========================================== */

/* ── Username: Toxic neon shimmer (le principal!) ── */
.mod-sous-username,
.post.is-mod-sous .author-username {
    background: linear-gradient(90deg, #00ff88, #8a2be2, #ff0080, #00ff88) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: modSousNameShimmer 3s linear infinite !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

@keyframes modSousNameShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ── Sidebar: Author name in topic list ── */
.author-name.author-mod-sous {
    background: linear-gradient(90deg, #00ff88, #8a2be2, #ff0080, #00ff88);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: modSousNameShimmer 3s linear infinite;
    font-weight: 700;
}

/* ── Badge: 💊 Substance badge ── */
.mod-sous-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(138, 43, 226, 0.15));
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.7em;
    color: #00ff88;
    font-weight: 600;
    animation: modSousBadgePulse 2s ease-in-out infinite;
    white-space: nowrap;
}

.mod-sous-badge .badge-icon {
    font-size: 0.9em;
    animation: modSousPillSpin 3s ease-in-out infinite;
}

@keyframes modSousBadgePulse {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 255, 136, 0.2); }
    50% { box-shadow: 0 0 15px rgba(0, 255, 136, 0.4), 0 0 25px rgba(138, 43, 226, 0.2); }
}

@keyframes modSousPillSpin {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

/* ═══════════════════════════════════════════════
   🧬 TOXIC CITATION — "CONTAMINÉ" effect when Mod Sous quotes someone
   Full hallucination-style visuals on the quoted message
   ═══════════════════════════════════════════════ */

/* ── The quote container: toxic glow + animated border ── */
.post.is-mod-sous .post-reply-context {
    border-left: 3px solid #00ff88 !important;
    border-image: none !important;
    background: linear-gradient(135deg, 
        rgba(0, 255, 136, 0.06) 0%, 
        rgba(138, 43, 226, 0.04) 50%, 
        rgba(255, 0, 128, 0.06) 100%) !important;
    position: relative !important;
    overflow: visible !important;
    animation: modSousCitationPulse 3s ease-in-out infinite !important;
    border-radius: 8px !important;
    box-shadow: 
        0 0 10px rgba(0, 255, 136, 0.08),
        0 0 30px rgba(138, 43, 226, 0.05),
        inset 0 0 20px rgba(0, 255, 136, 0.03) !important;
    padding: 10px 12px 10px 14px !important;
}

/* ── Mood badge (set by JS) ── */
.post.is-mod-sous .post-reply-context::before {
    content: attr(data-mood);
    position: absolute;
    top: -10px;
    right: 10px;
    background: linear-gradient(135deg, #00ff88, #8a2be2);
    color: #000;
    font-size: 0.55em;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: modSousBadgeGlow 2s ease-in-out infinite alternate;
    z-index: 2;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
    pointer-events: none;
}



/* ── Toxic drip decoration on the left ── */
.post.is-mod-sous .post-reply-context::after {
    content: '';
    position: absolute;
    left: -1px;
    top: 30%;
    width: 6px;
    height: 12px;
    background: #00ff88;
    border-radius: 0 0 50% 50%;
    animation: modSousDrip 2.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
    z-index: 1;
}

/* ── Quoted text: hallucination shimmer ── */
.post.is-mod-sous .post-reply-context .reply-context-text {
    animation: modSousCitationGlitch 8s ease-in-out infinite !important;
}

.post.is-mod-sous .post-reply-context .reply-context-text strong {
    background: linear-gradient(90deg, #00ff88, #ff0080, #8a2be2, #00ff88) !important;
    background-size: 300% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: modSousVictimName 2s linear infinite !important;
    font-weight: 800 !important;
}

/* ── Quoted avatar: substance hue rotation ── */
.post.is-mod-sous .post-reply-context .reply-context-avatar {
    animation: modSousAvatarTrip 4s ease-in-out infinite !important;
    border: 2px solid rgba(0, 255, 136, 0.4) !important;
    border-radius: 50% !important;
}

/* ── Animations ── */
@keyframes modSousCitationPulse {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.08), 0 0 30px rgba(138, 43, 226, 0.05);
    }
    33% { 
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.15), 0 0 40px rgba(138, 43, 226, 0.1);
    }
    66% { 
        box-shadow: 0 0 10px rgba(255, 0, 128, 0.1), 0 0 35px rgba(0, 255, 136, 0.08);
    }
}

@keyframes modSousBadgeGlow {
    0% { 
        box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 0 16px rgba(138, 43, 226, 0.6), 0 0 30px rgba(0, 255, 136, 0.3);
        transform: scale(1.05);
    }
}

@keyframes modSousDrip {
    0%, 100% { 
        top: 30%; 
        height: 12px; 
        opacity: 0.8; 
    }
    40% { 
        top: 65%;
        height: 8px;
        opacity: 1;
    }
    60% { 
        top: 80%;
        height: 5px;
        opacity: 0.5;
    }
    80% { 
        top: 90%;
        height: 3px;
        opacity: 0;
    }
}

@keyframes modSousCitationGlitch {
    0%, 92%, 100% { 
        transform: none;
        filter: none;
    }
    93% { 
        transform: skewX(-2deg) translateX(2px);
        filter: hue-rotate(90deg);
    }
    94% { 
        transform: skewX(1deg) translateX(-1px);
        filter: hue-rotate(-60deg);
    }
    95% { 
        transform: none;
        filter: hue-rotate(180deg);
    }
    96% {
        transform: skewX(-1deg);
        filter: none;
    }
}

@keyframes modSousVictimName {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

@keyframes modSousAvatarTrip {
    0%, 100% { 
        filter: hue-rotate(0deg) saturate(1);
        transform: scale(1);
    }
    25% { 
        filter: hue-rotate(60deg) saturate(1.5);
        transform: scale(1.05);
    }
    50% { 
        filter: hue-rotate(120deg) saturate(1.2);
        transform: scale(1);
    }
    75% { 
        filter: hue-rotate(200deg) saturate(1.4);
        transform: scale(1.03);
    }
}

/* ── Particle Overlay for Easter Egg ── */
.mod-sous-particle {
    position: fixed;
    z-index: 99998;
    pointer-events: none;
    font-size: 20px;
    opacity: 0;
    will-change: transform, opacity;
    animation: modSousFloat 4s ease-out forwards;
}

@keyframes modSousFloat {
    0% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
    30% { opacity: 0.9; transform: translateY(-20vh) rotate(60deg) scale(1.1); }
    60% { opacity: 0.5; transform: translateY(-50vh) rotate(120deg) scale(0.9); }
    100% { opacity: 0; transform: translateY(-90vh) rotate(200deg) scale(0.5); }
}

/* ── Ban Effect: Screen flash when mod sous bans ── */
.mod-sous-ban-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    pointer-events: none;
    background: radial-gradient(ellipse at center,
        rgba(0, 255, 136, 0.3) 0%,
        rgba(138, 43, 226, 0.2) 40%,
        transparent 70%);
    animation: modSousBanFlash 1s ease-out forwards;
}

@keyframes modSousBanFlash {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 0; }
}

/* ── Mobile Adjustments ── */
@media (max-width: 768px) {
    .mod-sous-badge {
        font-size: 0.6em;
        padding: 1px 6px;
    }

    .mod-sous-particle {
        font-size: 16px;
    }
}
