/* Floating AI Robot Assistant */
.ai-robot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 120px;
    height: 120px;
    background: transparent;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite, glow 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 40px rgba(0, 243, 255, 0.6));
}

.ai-robot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ai-robot:hover {
    transform: scale(1.15) translateY(-5px);
    filter: drop-shadow(0 15px 60px rgba(0, 243, 255, 0.9));
}

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

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 10px 40px rgba(0, 243, 255, 0.6));
    }
    50% {
        filter: drop-shadow(0 10px 60px rgba(0, 243, 255, 1));
    }
}

/* Robot Chat Bubble */
.robot-chat {
    position: fixed;
    bottom: 130px;
    right: 30px;
    width: 320px;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 1.5rem;
    z-index: 9998;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: none;
    animation: slideInUp 0.3s ease-out;
}

.robot-chat.active {
    display: block;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.robot-chat::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: 25px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid var(--primary-color);
}

.robot-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.robot-chat-title {
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.robot-chat-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 0, 85, 0.2);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.robot-chat-close:hover {
    background: rgba(255, 0, 85, 0.3);
    transform: rotate(90deg);
}

.robot-chat-content {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.robot-chat-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.robot-option {
    padding: 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.robot-option:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateX(5px);
}

/* Notification Badge */
.robot-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: var(--danger-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 10px 0;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ai-robot {
        width: 90px;
        height: 90px;
        bottom: 20px;
        right: 20px;
    }

    .robot-chat {
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 100px;
    }
}
</style>