/**
 * @file avatar-kit.css
 * @filepath css/avatar-kit.css
 * @version 1.0.2
 * @updated 2026-02-14 12:30:00 PM CDT
 * @author Greg Paskal & Claude
 * @company MissionWares®
 * 
 * @description AvatarKit CSS Animations
 * @changeLog:
 * 1.0.2 - Added Meet Lexi link styling and mood-based button effects
 * 1.0.1 - Fixed Lexi button background from #0f172a to transparent (no dark ring)
 * 1.0.0 - Initial creation with animations and feedback button styles
 * @tags: avatar, css, animations, mAi™
 */

/* ═══════════════════════════════════════════════════════════════════════════
   AVATAR ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes avatar-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes avatar-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.015); }
}

@keyframes avatar-celebrate {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-20px) scale(1.03) rotate(-2deg); }
    75% { transform: translateY(-20px) scale(1.03) rotate(2deg); }
}

@keyframes avatar-wave {
    0%, 100% { transform: rotate(-8deg); }
    50% { transform: rotate(18deg); }
}

@keyframes avatar-armIdle {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2deg); }
}

@keyframes avatar-armCelebrateLeft {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-25deg); }
}

@keyframes avatar-armCelebrateRight {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(25deg); }
}

@keyframes avatar-legDanceLeft {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-6deg); }
}

@keyframes avatar-legDanceRight {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(6deg); }
}

@keyframes avatar-hairFlow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(1px); }
}

@keyframes avatar-hairBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes avatar-glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.05); }
}

@keyframes avatar-questionBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-8px); opacity: 0.8; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEEDBACK BUTTON STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.lexi-feedback-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), 0 0 40px rgba(0, 204, 255, 0.2);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0;
    animation: avatar-float 3s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: visible;
}

.lexi-feedback-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6), 0 0 50px rgba(0, 204, 255, 0.3);
}

.lexi-feedback-btn:active {
    transform: scale(0.95);
}

/* Tooltip on hover */
.lexi-feedback-btn::after {
    content: 'Feedback';
    position: absolute;
    right: 70px;
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.lexi-feedback-btn:hover::after {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   VERSION DISPLAY
   ═══════════════════════════════════════════════════════════════════════════ */

.lexi-version {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.lexi-version .codename {
    background: linear-gradient(135deg, #00ccff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MEET LEXI LINK
   ═══════════════════════════════════════════════════════════════════════════ */

.meet-lexi-link {
    color: #a855f7 !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.meet-lexi-link:hover {
    color: #c084fc !important;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LEXI EXPRESSION ANIMATIONS (for personality triggers)
   ═══════════════════════════════════════════════════════════════════════════ */

.lexi-feedback-btn.lexi-anim-celebrate {
    animation: lexi-celebrate-bounce 0.5s ease-in-out;
}

@keyframes lexi-celebrate-bounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2) rotate(-5deg); }
    50% { transform: scale(1.15) rotate(5deg); }
    75% { transform: scale(1.2) rotate(-3deg); }
}

.lexi-feedback-btn.lexi-anim-nod {
    animation: lexi-nod 0.4s ease-in-out;
}

@keyframes lexi-nod {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.lexi-feedback-btn.lexi-anim-wave {
    animation: lexi-wave-btn 0.6s ease-in-out;
}

@keyframes lexi-wave-btn {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Mood-based button glow variations */
.lexi-feedback-btn.lexi-mood-celebratory {
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.5), 0 0 50px rgba(168, 85, 247, 0.3);
}

.lexi-feedback-btn.lexi-mood-encouraging {
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.4), 0 0 50px rgba(0, 204, 255, 0.2);
}

.lexi-feedback-btn.lexi-mood-sleepy {
    box-shadow: 0 0 15px rgba(100, 116, 139, 0.4);
    animation: avatar-breathe 4s ease-in-out infinite;
}