/* 
 * NeuroClipy: Interactive AI Assistant Styling & Animations
 */

.clippy-floating-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
}

.clippy-dialog-box {
    background: #1e293b;
    border: 1px solid #4f46e5;
    border-radius: 14px;
    width: 320px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(79, 70, 229, 0.3);
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom right;
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.clippy-dialog-box.minimized {
    opacity: 0;
    transform: scale(0.7) translateY(20px);
    pointer-events: none;
}

.clippy-dialog-header {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.clippy-dialog-actions button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clippy-dialog-actions button:hover {
    background: rgba(255, 255, 255, 0.35);
}

.clippy-dialog-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.clippy-text-primary {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e0e7ff;
}

.clippy-hints-list {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px;
    max-height: 160px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.clippy-hint-item {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #cbd5e1;
}

.clippy-prompt-box {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.clippy-prompt-box input {
    flex: 1;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #f8fafc;
    padding: 6px 10px;
    font-size: 0.8rem;
    outline: none;
}

.clippy-prompt-box input:focus {
    border-color: #6366f1;
}

.clippy-prompt-box button {
    background: #4f46e5;
    border: none;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.clippy-prompt-box button:hover {
    background: #4338ca;
}

.clippy-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.clippy-chip {
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
}

.clippy-chip:hover {
    background: rgba(79, 70, 229, 0.3);
    color: #ffffff;
}

/* Avatar Button */
.clippy-avatar-container {
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s ease;
}

.clippy-avatar-container:hover {
    transform: scale(1.08);
}

.clippy-character {
    position: relative;
    width: 70px;
    height: 84px;
    animation: clippyFloat 3s ease-in-out infinite;
}

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

.clippy-speech-bubble-indicator {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 900;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1e293b;
    animation: pulseNotice 2s infinite;
}

@keyframes pulseNotice {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Mood Keyframes */
.mood-celebrating .clippy-character {
    animation: clippyCelebrate 0.6s ease infinite alternate;
}

@keyframes clippyCelebrate {
    0% { transform: translateY(0) rotate(-6deg); }
    100% { transform: translateY(-16px) rotate(6deg); }
}

.mood-celebrating .clippy-wire {
    stroke: #10b981 !important;
}

.mood-warning .clippy-wire {
    stroke: #f59e0b !important;
}

.mood-thinking .clippy-pupil {
    transform: translateY(-2px);
}
