/* Chatbot Widget Styles - Sözlük Dünyası */

.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Comic Neue', cursive;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4ECDC4, #45B649);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: chatbotPulse 2s infinite;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.chatbot-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.chatbot-container.show {
    display: flex;
    animation: chatbotSlideUp 0.3s ease;
}

.chatbot-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 20px;
    text-align: center;
    position: relative;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.chatbot-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 80%;
    line-height: 1.4;
    animation: messageSlide 0.3s ease;
}

.message.user {
    background: linear-gradient(135deg, #4ECDC4, #45B649);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.message.bot {
    background: white;
    color: #2C3E50;
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.message.bot a {
    color: #2980b9;
    text-decoration: underline;
}

.message.bot a:hover {
    color: #3498db;
    text-decoration: underline;
}

.message.bot a:visited {
    color: #8e44ad;
}

.chatbot-input-area {
    padding: 20px;
    background: white;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    align-items: center;
}

.chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    outline: none;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.chatbot-input:focus {
    border-color: #4ECDC4;
}

.chatbot-send {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #4ECDC4, #45B649);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.chatbot-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

.chatbot-typing {
    display: none;
    padding: 12px 16px;
    color: #6c757d;
    font-style: italic;
}

.chatbot-typing.show {
    display: block;
}

/* Chatbot Animations */
@keyframes chatbotPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes chatbotSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* Chatbot Mobile Responsive */
@media (max-width: 768px) {
    .chatbot-container {
        width: calc(100vw - 40px);
        right: -10px;
        bottom: 70px;
    }

    .chatbot-toggle {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }

    .chatbot-header h3 {
        font-size: 1rem;
    }

    .message {
        max-width: 90%;
    }
}

/* Dark theme support for chatbot */
[data-theme="dark"] .chatbot-container {
    background: #2C3E50;
    color: white;
}

[data-theme="dark"] .chatbot-messages {
    background: #34495e;
}

[data-theme="dark"] .message.bot {
    background: #2C3E50;
    color: #ecf0f1;
    border-color: #34495e;
}

[data-theme="dark"] .chatbot-input {
    background: #34495e;
    border-color: #4ECDC4;
    color: white;
}

[data-theme="dark"] .chatbot-input::placeholder {
    color: #bdc3c7;
}

/* Dark mode link styles for chatbot messages */
[data-theme="dark"] .message.bot a {
    color: #5DADE2;
    text-decoration: underline;
}

[data-theme="dark"] .message.bot a:hover {
    color: #85C1E9;
    text-decoration: underline;
}

[data-theme="dark"] .message.bot a:visited {
    color: #BB8FCE;
}
