/* AM AI Bot Styles */

.am-ai-bot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center; /* Merkeze hizala, zıplama efekti için */
    transition: left 10s linear, right 10s linear; /* Yavaş gezinme */
}

/* Floating & Bouncing Robot Character */
.am-ai-bot-character {
    width: 65px;
    height: 65px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: am-bounce 2s ease-in-out infinite;
    z-index: 2001;
}

.am-robot-head {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    border-radius: 18px;
    position: relative;
    border: 3px solid #fff;
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Robot Eyes */
.am-robot-eyes {
    display: flex;
    gap: 12px;
    margin-bottom: 5px;
}

.am-robot-eye {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    position: relative;
    animation: am-blink 4s infinite;
}

.am-robot-eye::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #0d6efd;
    border-radius: 50%;
    top: 2px;
    left: 2px;
}

/* Robot Mouth */
.am-robot-mouth {
    width: 20px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
}

/* Robot Antenna */
.am-robot-antenna {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 15px;
    background: #fff;
}

.am-robot-antenna::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -3px;
    width: 10px;
    height: 10px;
    background: #ff4d4d;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff4d4d;
    animation: am-antenna-glow 1.5s ease-in-out infinite;
}

/* Animations */
@keyframes am-blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

@keyframes am-antenna-glow {
    0%, 100% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 15px #ff4d4d; }
}

.am-ai-bot-character::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 6px;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    animation: am-shadow 2s ease-in-out infinite;
}

@keyframes am-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(5deg); }
}

@keyframes am-shadow {
    0%, 100% { width: 40px; opacity: 0.2; transform: translateX(-50%) scale(1); }
    50% { width: 20px; opacity: 0.05; transform: translateX(-50%) scale(0.5); }
}

.am-ai-bot-character:hover {
    animation-play-state: paused;
    transform: scale(1.1);
}

/* Notification Badge */
.am-ai-bot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4d4d;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* Chat Window */
.am-ai-chat-window {
    width: 350px;
    height: 450px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.3s ease;
}

.am-ai-chat-window.show {
    display: flex;
    animation: am-chat-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes am-chat-pop {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.am-ai-chat-header {
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    padding: 15px 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.am-ai-chat-header h6 {
    margin: 0;
    font-weight: 600;
}

.am-ai-chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8f9fa;
}

.am-ai-chat-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    background: #fff;
}

/* Chat Bubbles */
.am-chat-bubble {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 13px;
    line-height: 1.5;
    position: relative;
}

.am-chat-bubble.bot {
    align-self: flex-start;
    background: #fff;
    color: #333;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.am-chat-bubble.user {
    align-self: flex-end;
    background: #0d6efd;
    color: #fff;
    border-bottom-right-radius: 2px;
}

/* Typing Indicator */
.am-typing {
    font-size: 11px;
    color: #888;
    margin-bottom: 5px;
    display: none;
}

.am-ai-chat-input-group {
    display: flex;
    gap: 10px;
}

.am-ai-chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
}

.am-ai-chat-input:focus {
    border-color: #0d6efd;
}

.am-ai-chat-send {
    background: #0d6efd;
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.am-ai-chat-send:hover {
    background: #0056b3;
}
