/* ==========================================
   🎀 MODÉRATRICE SIMP — Visual Effects
   Fleurs tournantes autour du pseudo + couleur rose/violet
   ========================================== */

/* ── Username: Rose-violet gradient shimmer ── */
.moderatrice-username,
.post.is-moderatrice .author-username {
    background: linear-gradient(90deg, #ff69b4, #da70d6, #ff1493, #ba55d3, #ff69b4) !important;
    background-size: 300% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: moderatriceNameShimmer 3s linear infinite !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    position: relative !important;
    display: inline-block !important;
    overflow: visible !important;
}

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

/* ── Sidebar: Author name in topic list ── */
.author-name.author-moderatrice {
    background: linear-gradient(90deg, #ff69b4, #da70d6, #ff1493, #ba55d3, #ff69b4);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: moderatriceNameShimmer 3s linear infinite;
    font-weight: 700;
}

/* ══════════════════════════════════════════
   🌸 FLEURS TOURNANTES — Orbiting flowers
   Using CSS pseudo-elements + JS spawned elements
   ══════════════════════════════════════════ */

/* Container for the flower orbit (wraps the username) */
.moderatrice-flowers {
    position: relative;
    display: inline-block;
}

/* Individual orbiting flower */
.moderatrice-flower {
    position: absolute;
    font-size: 0.7em;
    pointer-events: none;
    z-index: 2;
    will-change: transform;
    filter: drop-shadow(0 0 3px rgba(255, 105, 180, 0.6));
}

.moderatrice-flower:nth-child(1) { animation: flowerOrbit1 4s linear infinite; }
.moderatrice-flower:nth-child(2) { animation: flowerOrbit2 4s linear infinite; }
.moderatrice-flower:nth-child(3) { animation: flowerOrbit3 4s linear infinite; }
.moderatrice-flower:nth-child(4) { animation: flowerOrbit4 4s linear infinite; }

/* 4 flowers orbiting at 90° offsets */
@keyframes flowerOrbit1 {
    0%   { top: -12px; left: 50%; transform: translateX(-50%) rotate(0deg); }
    25%  { top: 50%; left: calc(100% + 8px); transform: translateY(-50%) rotate(90deg); }
    50%  { top: calc(100% + 4px); left: 50%; transform: translateX(-50%) rotate(180deg); }
    75%  { top: 50%; left: -14px; transform: translateY(-50%) rotate(270deg); }
    100% { top: -12px; left: 50%; transform: translateX(-50%) rotate(360deg); }
}

@keyframes flowerOrbit2 {
    0%   { top: 50%; left: calc(100% + 8px); transform: translateY(-50%) rotate(0deg); }
    25%  { top: calc(100% + 4px); left: 50%; transform: translateX(-50%) rotate(90deg); }
    50%  { top: 50%; left: -14px; transform: translateY(-50%) rotate(180deg); }
    75%  { top: -12px; left: 50%; transform: translateX(-50%) rotate(270deg); }
    100% { top: 50%; left: calc(100% + 8px); transform: translateY(-50%) rotate(360deg); }
}

@keyframes flowerOrbit3 {
    0%   { top: calc(100% + 4px); left: 50%; transform: translateX(-50%) rotate(0deg); }
    25%  { top: 50%; left: -14px; transform: translateY(-50%) rotate(90deg); }
    50%  { top: -12px; left: 50%; transform: translateX(-50%) rotate(180deg); }
    75%  { top: 50%; left: calc(100% + 8px); transform: translateY(-50%) rotate(270deg); }
    100% { top: calc(100% + 4px); left: 50%; transform: translateX(-50%) rotate(360deg); }
}

@keyframes flowerOrbit4 {
    0%   { top: 50%; left: -14px; transform: translateY(-50%) rotate(0deg); }
    25%  { top: -12px; left: 50%; transform: translateX(-50%) rotate(90deg); }
    50%  { top: 50%; left: calc(100% + 8px); transform: translateY(-50%) rotate(180deg); }
    75%  { top: calc(100% + 4px); left: 50%; transform: translateX(-50%) rotate(270deg); }
    100% { top: 50%; left: -14px; transform: translateY(-50%) rotate(360deg); }
}

/* Orbiting Risibank Sticker / Simp Avatar */
.moderatrice-sticker {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 105, 180, 0.8);
    pointer-events: none;
    z-index: 5;
    will-change: transform;
    filter: drop-shadow(0 0 4px rgba(255, 105, 180, 0.6));
    animation: stickerOrbit 6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes stickerOrbit {
    0%   { top: -20px; left: 0%; transform: translateX(-50%) scale(1) rotate(-10deg); }
    25%  { top: 50%; left: calc(100% + 16px); transform: translateY(-50%) scale(1.2) rotate(15deg); }
    50%  { top: calc(100% + 10px); left: 100%; transform: translateX(-50%) scale(1) rotate(-10deg); }
    75%  { top: 50%; left: -20px; transform: translateY(-50%) scale(1.2) rotate(15deg); }
    100% { top: -20px; left: 0%; transform: translateX(-50%) scale(1) rotate(-10deg); }
}

/* ── Badge: 🎀 Modératrice badge ── */
.moderatrice-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.15), rgba(186, 85, 211, 0.15));
    border: 1px solid rgba(255, 105, 180, 0.3);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.7em;
    color: #ff69b4;
    font-weight: 600;
    animation: moderatriceBadgePulse 2s ease-in-out infinite;
    white-space: nowrap;
}

.moderatrice-badge .badge-icon {
    font-size: 0.9em;
    animation: moderatriceRibbonBounce 2s ease-in-out infinite;
}

@keyframes moderatriceBadgePulse {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 105, 180, 0.2); }
    50% { box-shadow: 0 0 15px rgba(255, 105, 180, 0.4), 0 0 25px rgba(186, 85, 211, 0.2); }
}

@keyframes moderatriceRibbonBounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(10deg); }
    50% { transform: scale(1) rotate(0deg); }
    75% { transform: scale(1.2) rotate(-10deg); }
}

/* ── Quota HUD: Floating counter ── */
.moderatrice-quota-hud {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.08), rgba(186, 85, 211, 0.08));
    border: 1px solid rgba(255, 105, 180, 0.2);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.65em;
    color: #da70d6;
    font-weight: 500;
    margin-left: 6px;
}

.moderatrice-quota-hud .quota-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.moderatrice-quota-hud .quota-item.depleted {
    color: #ff4444;
    text-decoration: line-through;
    opacity: 0.6;
}

/* ══════════════════════════════════════════
   🎀 CITATION EFFECT — Floral quote style
   ══════════════════════════════════════════ */

.post.is-moderatrice .post-reply-context {
    border-left: 3px solid #ff69b4 !important;
    border-image: none !important;
    background: linear-gradient(135deg,
        rgba(255, 105, 180, 0.06) 0%,
        rgba(186, 85, 211, 0.04) 50%,
        rgba(255, 20, 147, 0.06) 100%) !important;
    position: relative !important;
    overflow: visible !important;
    animation: moderatriceCitationPulse 3s ease-in-out infinite !important;
    border-radius: 8px !important;
    box-shadow:
        0 0 10px rgba(255, 105, 180, 0.08),
        0 0 30px rgba(186, 85, 211, 0.05),
        inset 0 0 20px rgba(255, 105, 180, 0.03) !important;
    padding: 10px 12px 10px 14px !important;
}

/* Flower decoration on quotes */
.post.is-moderatrice .post-reply-context::before {
    content: '🌸';
    position: absolute;
    top: -8px;
    right: 10px;
    font-size: 0.8em;
    animation: moderatriceQuoteFlower 3s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

.post.is-moderatrice .post-reply-context::after {
    content: '🌺';
    position: absolute;
    bottom: -6px;
    left: 10px;
    font-size: 0.7em;
    animation: moderatriceQuoteFlower 3s ease-in-out infinite reverse;
    z-index: 1;
    pointer-events: none;
}

@keyframes moderatriceCitationPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 105, 180, 0.08), 0 0 30px rgba(186, 85, 211, 0.05);
    }
    50% {
        box-shadow: 0 0 18px rgba(255, 105, 180, 0.15), 0 0 40px rgba(186, 85, 211, 0.1);
    }
}

@keyframes moderatriceQuoteFlower {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.7; }
    50% { transform: rotate(15deg) scale(1.15); opacity: 1; }
}

/* ── Post glow for modératrice posts ── */
.post.is-moderatrice {
    border-left: 2px solid rgba(255, 105, 180, 0.3) !important;
    box-shadow: inset 2px 0 15px rgba(255, 105, 180, 0.05) !important;
}

/* ══════════════════════════════════════════
   💕 MODÉRATEUR SIMP — Visual Effects
   Coeurs en orbite + aura rose rêveuse
   ══════════════════════════════════════════ */

/* ── Username: Warm pink/crimson gradient shimmer ── */
.mod-simp-username,
.post.is-mod-simp .author-username {
    background: linear-gradient(90deg, #e91e63, #ff6090, #ff4081, #e91e63) !important;
    background-size: 300% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: modSimpNameShimmer 3s linear infinite !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    position: relative !important;
    display: inline-block !important;
    overflow: visible !important;
}

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

/* ── Sidebar: Author name in topic list ── */
.author-name.author-mod-simp {
    background: linear-gradient(90deg, #e91e63, #ff6090, #ff4081, #e91e63);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: modSimpNameShimmer 3s linear infinite;
    font-weight: 700;
}

/* ══════════════════════════════════════════
   💘 COEURS EN ORBITE — Dreamy floating hearts
   ══════════════════════════════════════════ */

/* Individual orbiting heart */
.mod-simp-heart {
    position: absolute;
    font-size: 0.65em;
    pointer-events: none;
    z-index: 2;
    will-change: transform, opacity;
    filter: drop-shadow(0 0 4px rgba(233, 30, 99, 0.5));
}

.mod-simp-heart:nth-child(1) { animation: simpHeartOrbit1 5s ease-in-out infinite; }
.mod-simp-heart:nth-child(2) { animation: simpHeartOrbit2 5s ease-in-out infinite; }
.mod-simp-heart:nth-child(3) { animation: simpHeartOrbit3 5s ease-in-out infinite; }
.mod-simp-heart:nth-child(4) { animation: simpHeartOrbit4 5s ease-in-out infinite; }

/* 4 hearts — dreamy elliptical orbits with fade pulses (slower/floatier than Modératrice) */
@keyframes simpHeartOrbit1 {
    0%   { top: -14px; left: 50%; transform: translateX(-50%) scale(0.8); opacity: 0.5; }
    25%  { top: 40%; left: calc(100% + 10px); transform: translateY(-50%) scale(1.1); opacity: 1; }
    50%  { top: calc(100% + 6px); left: 50%; transform: translateX(-50%) scale(0.9); opacity: 0.6; }
    75%  { top: 40%; left: -16px; transform: translateY(-50%) scale(1); opacity: 0.9; }
    100% { top: -14px; left: 50%; transform: translateX(-50%) scale(0.8); opacity: 0.5; }
}

@keyframes simpHeartOrbit2 {
    0%   { top: 40%; left: calc(100% + 10px); transform: translateY(-50%) scale(1); opacity: 0.9; }
    25%  { top: calc(100% + 6px); left: 50%; transform: translateX(-50%) scale(0.8); opacity: 0.5; }
    50%  { top: 40%; left: -16px; transform: translateY(-50%) scale(1.1); opacity: 1; }
    75%  { top: -14px; left: 50%; transform: translateX(-50%) scale(0.9); opacity: 0.7; }
    100% { top: 40%; left: calc(100% + 10px); transform: translateY(-50%) scale(1); opacity: 0.9; }
}

@keyframes simpHeartOrbit3 {
    0%   { top: calc(100% + 6px); left: 50%; transform: translateX(-50%) scale(0.9); opacity: 0.6; }
    25%  { top: 40%; left: -16px; transform: translateY(-50%) scale(1); opacity: 0.9; }
    50%  { top: -14px; left: 50%; transform: translateX(-50%) scale(0.8); opacity: 0.5; }
    75%  { top: 40%; left: calc(100% + 10px); transform: translateY(-50%) scale(1.1); opacity: 1; }
    100% { top: calc(100% + 6px); left: 50%; transform: translateX(-50%) scale(0.9); opacity: 0.6; }
}

@keyframes simpHeartOrbit4 {
    0%   { top: 40%; left: -16px; transform: translateY(-50%) scale(1.1); opacity: 1; }
    25%  { top: -14px; left: 50%; transform: translateX(-50%) scale(0.9); opacity: 0.7; }
    50%  { top: 40%; left: calc(100% + 10px); transform: translateY(-50%) scale(1); opacity: 0.9; }
    75%  { top: calc(100% + 6px); left: 50%; transform: translateX(-50%) scale(0.8); opacity: 0.5; }
    100% { top: 40%; left: -16px; transform: translateY(-50%) scale(1.1); opacity: 1; }
}

/* ══════════════════════════════════════════
   ✨ FLOATING HEART SPARKLES — Rising particles from the post
   ══════════════════════════════════════════ */

.mod-simp-sparkle {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    will-change: transform, opacity;
    animation: simpSparkleRise var(--sparkle-duration, 4s) ease-out infinite;
    animation-delay: var(--sparkle-delay, 0s);
    font-size: var(--sparkle-size, 10px);
    left: var(--sparkle-x, 50%);
    bottom: 20px;
}

@keyframes simpSparkleRise {
    0%   { opacity: 0; transform: translateY(0) scale(0.5) rotate(0deg); }
    15%  { opacity: 0.8; transform: translateY(-15px) scale(1) rotate(20deg); }
    50%  { opacity: 0.5; transform: translateY(-50px) scale(0.8) rotate(-10deg) translateX(var(--sparkle-drift, 10px)); }
    100% { opacity: 0; transform: translateY(-90px) scale(0.3) rotate(30deg) translateX(var(--sparkle-drift, 10px)); }
}

/* ══════════════════════════════════════════
   💌 CITATION EFFECT — "Love letter" quote style
   ══════════════════════════════════════════ */

.post.is-mod-simp .post-reply-context {
    border-left: 3px solid #e91e63 !important;
    border-image: none !important;
    background: linear-gradient(135deg,
        rgba(233, 30, 99, 0.06) 0%,
        rgba(255, 64, 129, 0.04) 50%,
        rgba(233, 30, 99, 0.07) 100%) !important;
    position: relative !important;
    overflow: visible !important;
    animation: modSimpCitationPulse 3s ease-in-out infinite !important;
    border-radius: 8px !important;
    box-shadow:
        0 0 10px rgba(233, 30, 99, 0.08),
        0 0 30px rgba(255, 64, 129, 0.05),
        inset 0 0 20px rgba(233, 30, 99, 0.03) !important;
    padding: 10px 12px 10px 14px !important;
}

/* Heart decoration on quotes */
.post.is-mod-simp .post-reply-context::before {
    content: '💕';
    position: absolute;
    top: -8px;
    right: 10px;
    font-size: 0.75em;
    animation: simpQuoteHeart 2s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

.post.is-mod-simp .post-reply-context::after {
    content: '💘';
    position: absolute;
    bottom: -6px;
    left: 10px;
    font-size: 0.65em;
    animation: simpQuoteHeart 2s ease-in-out infinite reverse;
    z-index: 1;
    pointer-events: none;
}

@keyframes modSimpCitationPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(233, 30, 99, 0.08), 0 0 30px rgba(255, 64, 129, 0.05);
    }
    50% {
        box-shadow: 0 0 18px rgba(233, 30, 99, 0.15), 0 0 40px rgba(255, 64, 129, 0.1);
    }
}

@keyframes simpQuoteHeart {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.6; }
    50% { transform: scale(1.2) rotate(10deg); opacity: 1; }
}

/* ── Post glow: Heartbeat-pulsing border ── */
.post.is-mod-simp {
    border-left: 2px solid rgba(233, 30, 99, 0.25) !important;
    box-shadow: inset 2px 0 15px rgba(233, 30, 99, 0.05) !important;
    position: relative !important;
    overflow: visible !important;
    animation: modSimpPostHeartbeat 3s ease-in-out infinite !important;
}

@keyframes modSimpPostHeartbeat {
    0%, 100% {
        border-left-color: rgba(233, 30, 99, 0.2);
        box-shadow: inset 2px 0 15px rgba(233, 30, 99, 0.04);
    }
    15% {
        border-left-color: rgba(233, 30, 99, 0.5);
        box-shadow: inset 2px 0 20px rgba(233, 30, 99, 0.08);
    }
    30% {
        border-left-color: rgba(233, 30, 99, 0.25);
        box-shadow: inset 2px 0 15px rgba(233, 30, 99, 0.04);
    }
    45% {
        border-left-color: rgba(233, 30, 99, 0.4);
        box-shadow: inset 2px 0 18px rgba(233, 30, 99, 0.06);
    }
    60% {
        border-left-color: rgba(233, 30, 99, 0.2);
        box-shadow: inset 2px 0 15px rgba(233, 30, 99, 0.04);
    }
}

.mod-simp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.15), rgba(255, 64, 129, 0.15));
    border: 1px solid rgba(233, 30, 99, 0.3);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.7em;
    color: #e91e63;
    font-weight: 600;
    animation: modSimpBadgePulse 2s ease-in-out infinite;
    white-space: nowrap;
}

.mod-simp-badge .badge-icon {
    animation: modSimpHeartBeat 1.5s ease-in-out infinite;
}

@keyframes modSimpBadgePulse {
    0%, 100% { box-shadow: 0 0 5px rgba(233, 30, 99, 0.2); }
    50% { box-shadow: 0 0 15px rgba(233, 30, 99, 0.4), 0 0 25px rgba(255, 64, 129, 0.2); }
}

@keyframes modSimpHeartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.2); }
    60% { transform: scale(1); }
}

/* ── Ban Flash: Pink explosion when modératrice bans ── */
.moderatrice-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(255, 105, 180, 0.3) 0%,
        rgba(186, 85, 211, 0.2) 40%,
        transparent 70%);
    animation: moderatriceBanFlash 1.2s ease-out forwards;
}

@keyframes moderatriceBanFlash {
    0% { opacity: 1; }
    30% { opacity: 0.8; }
    100% { opacity: 0; }
}

/* ── Petal particles (spawned by JS) ── */
.moderatrice-petal {
    position: fixed;
    z-index: 99998;
    pointer-events: none;
    font-size: 18px;
    opacity: 0;
    will-change: transform, opacity;
    animation: petalFall 3.5s ease-out forwards;
}

@keyframes petalFall {
    0% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
    25% { opacity: 0.9; transform: translateY(15vh) rotate(90deg) translateX(30px) scale(1.1); }
    50% { opacity: 0.7; transform: translateY(40vh) rotate(180deg) translateX(-20px) scale(0.9); }
    75% { opacity: 0.4; transform: translateY(65vh) rotate(270deg) translateX(10px) scale(0.8); }
    100% { opacity: 0; transform: translateY(95vh) rotate(360deg) scale(0.5); }
}

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

    .moderatrice-flower {
        font-size: 0.55em;
    }

    .moderatrice-petal {
        font-size: 14px;
    }

    .moderatrice-quota-hud {
        font-size: 0.55em;
        padding: 2px 6px;
    }

    .mod-simp-heart {
        font-size: 0.5em;
    }

    .mod-simp-sparkle {
        display: none; /* Save battery on mobile */
    }

    .moderatrice-sticker {
        width: 18px;
        height: 18px;
    }
}
