/* =========================================================
   MERCURY TRADE — AI ILLUSTRATIONS
   Красивые SVG-иллюстрации в боте
   ========================================================= */

.ai-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 auto 14px;
    position: relative;
    animation: ai-illu-appear 0.6s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes ai-illu-appear {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-15deg);
    }
    60% {
        transform: scale(1.08) rotate(3deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.ai-illu {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 20px rgba(255, 60, 60, 0.35));
}

/* Разные фильтры под тему */
.ai-illu-shield {
    filter: drop-shadow(0 8px 20px rgba(0, 255, 136, 0.35));
}
.ai-illu-chart {
    filter: drop-shadow(0 8px 20px rgba(0, 255, 136, 0.35));
}
.ai-illu-money {
    filter: drop-shadow(0 8px 20px rgba(0, 255, 136, 0.4));
}
.ai-illu-wallet {
    filter: drop-shadow(0 8px 20px rgba(0, 180, 255, 0.35));
}
.ai-illu-bank {
    filter: drop-shadow(0 8px 20px rgba(255, 193, 7, 0.4));
}
.ai-illu-fire {
    filter: drop-shadow(0 8px 22px rgba(255, 107, 26, 0.5));
}
.ai-illu-rocket {
    filter: drop-shadow(0 8px 22px rgba(255, 60, 60, 0.5));
}
.ai-illu-heart {
    filter: drop-shadow(0 8px 20px rgba(255, 60, 60, 0.45));
}
.ai-illu-sad {
    filter: drop-shadow(0 8px 20px rgba(255, 107, 26, 0.35));
}
.ai-illu-thinking,
.ai-illu-confused {
    filter: drop-shadow(0 8px 20px rgba(124, 92, 255, 0.4));
}
.ai-illu-book {
    filter: drop-shadow(0 8px 20px rgba(124, 92, 255, 0.4));
}
.ai-illu-chat {
    filter: drop-shadow(0 8px 20px rgba(0, 180, 255, 0.4));
}
.ai-illu-user {
    filter: drop-shadow(0 8px 20px rgba(0, 180, 255, 0.35));
}
.ai-illu-star {
    filter: drop-shadow(0 8px 20px rgba(255, 193, 7, 0.5));
}
.ai-illu-idea {
    filter: drop-shadow(0 8px 20px rgba(255, 193, 7, 0.45));
}
.ai-illu-target {
    filter: drop-shadow(0 8px 20px rgba(255, 60, 60, 0.4));
}
.ai-illu-gift {
    filter: drop-shadow(0 8px 20px rgba(255, 60, 60, 0.4));
}
.ai-illu-lock {
    filter: drop-shadow(0 8px 20px rgba(0, 255, 136, 0.35));
}
.ai-illu-clock {
    filter: drop-shadow(0 8px 20px rgba(0, 180, 255, 0.4));
}
.ai-illu-globe {
    filter: drop-shadow(0 8px 20px rgba(0, 180, 255, 0.4));
}

/* Плавное покачивание огня и ракеты */
.ai-illu-fire,
.ai-illu-rocket {
    animation: ai-illu-float 3s ease-in-out infinite;
}

@keyframes ai-illu-float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-4px) rotate(-2deg); }
}

/* Пульсация сердца */
.ai-illu-heart {
    animation: ai-illu-heartbeat 1.5s ease-in-out infinite;
}

@keyframes ai-illu-heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.08); }
    30% { transform: scale(1); }
    45% { transform: scale(1.06); }
    60% { transform: scale(1); }
}

/* Вращение замочка/щита */
.ai-illu-lock {
    animation: ai-illu-pulse-soft 3s ease-in-out infinite;
}

@keyframes ai-illu-pulse-soft {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.03); }
}

/* Свечение вокруг идей */
.ai-illu-idea {
    animation: ai-illu-glow 2.5s ease-in-out infinite;
}

@keyframes ai-illu-glow {
    0%, 100% { filter: drop-shadow(0 8px 20px rgba(255, 193, 7, 0.35)); }
    50% { filter: drop-shadow(0 8px 30px rgba(255, 193, 7, 0.65)); }
}

/* Центрирование текста после иллюстрации */
.ai-illu + .ai-hello-text,
.ai-illustration + .ai-hello-text {
    text-align: center;
    color: var(--text);
    line-height: 1.5;
}

/* Адаптив */
@media (max-width: 480px) {
    .ai-illustration {
        width: 80px;
        height: 80px;
    }
}

/* Светлая тема (если есть) */
[data-theme="light"] .ai-illu {
    filter: drop-shadow(0 6px 15px rgba(255, 60, 60, 0.25));
}