/**
 * Amerikan Kültür Chatbot Styles
 */
.chatbot-container {
    position: fixed;
    z-index: 9999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Pozisyon varyasyonları */
.chatbot-container.bottom-right {
    right: 20px;
    bottom: 20px;
}

.chatbot-container.bottom-left {
    left: 20px;
    bottom: 20px;
}

.chatbot-container.top-right {
    right: 20px;
    top: 20px;
}

.chatbot-container.top-left {
    left: 20px;
    top: 20px;
}

/* Chatbot butonu */
.chatbot-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0056b3;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.chatbot-button:hover {
    transform: scale(1.05);
    background-color: #003d82;
}

.chatbot-button.active {
    background-color: #003d82;
}

.chatbot-button svg {
    width: 30px;
    height: 30px;
}

/* Chatbot panel */
.chatbot-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bottom-left .chatbot-panel {
    right: auto;
    left: 0;
}

.top-right .chatbot-panel {
    bottom: auto;
    top: 70px;
}

.top-left .chatbot-panel {
    right: auto;
    left: 0;
    bottom: auto;
    top: 70px;
}

/* Chatbot başlık */
.chatbot-header {
    background-color: #0056b3;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    font-weight: bold;
    font-size: 16px;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Chatbot mesaj alanı */
.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Chatbot mesajları */
.chatbot-message {
    margin-bottom: 10px;
    max-width: 80%;
    display: flex;
}

.chatbot-message.user {
    align-self: flex-end;
}

.chatbot-message.bot {
    align-self: flex-start;
}

.message-content {
    padding: 10px 15px;
    border-radius: 18px;
    word-break: break-word;
}

.chatbot-message.user .message-content {
    background-color: #0056b3;
    color: white;
    border-bottom-right-radius: 5px;
}

.chatbot-message.bot .message-content {
    background-color: #f0f0f0;
    color: #333;
    border-bottom-left-radius: 5px;
}

.chatbot-message.loading .message-content {
    display: flex;
    align-items: center;
}

.chatbot-message.loading .message-content::after {
    content: "...";
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
}

/* Hızlı yanıtlar */
.chatbot-quick-replies {
    padding: 10px 15px;
    border-top: 1px solid #eee;
    max-height: 150px;
    overflow-y: auto;
}

.quick-reply-category {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    color: #555;
}

.quick-reply-items {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.quick-reply-item {
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.quick-reply-item:hover {
    background-color: #e0e0e0;
}

/* Chatbot giriş alanı */
.chatbot-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
}

.chatbot-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.chatbot-input input:focus {
    border-color: #0056b3;
}

.chatbot-send {
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.chatbot-send:hover {
    background-color: #003d82;
}

/* Mobil uyumluluk */
@media (max-width: 480px) {
    .chatbot-panel {
        width: 300px;
        height: 450px;
    }
    
    .chatbot-container.bottom-right .chatbot-panel,
    .chatbot-container.bottom-left .chatbot-panel {
        right: 0;
        left: 0;
        bottom: 80px;
        width: 90%;
        margin: 0 auto;
    }
    
    .chatbot-container.top-right .chatbot-panel,
    .chatbot-container.top-left .chatbot-panel {
        right: 0;
        left: 0;
        top: 80px;
        width: 90%;
        margin: 0 auto;
    }
}
