/* BilişimDünyası - Chatbot Stilleri */

/* Chatbot Butonu */
#chatbot-button {
    position: fixed;
    bottom: 30px;
    left: 50px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
}

#chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Chatbot Konteyneri */
#chatbot-container {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 350px;
    height: 500px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 998;
    transition: all 0.3s ease-in-out;
}

/* Chatbot Açık/Kapalı Durumları */
.chatbot-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chatbot-closed {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
}

/* Chatbot Başlık */
#chatbot-header {
    background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.chatbot-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
}

.chatbot-title i {
    margin-right: 10px;
    font-size: 18px;
}

.chatbot-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    margin-left: 10px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.chatbot-controls button:hover {
    opacity: 1;
}

/* Chatbot Mesajlar */
#chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-message, .bot-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    position: relative;
    word-wrap: break-word;
}

.user-message {
    align-self: flex-end;
    background-color: #4361ee;
    color: white;
    border-bottom-right-radius: 5px;
}

.bot-message {
    align-self: flex-start;
    background-color: #f1f3f4;
    color: #333;
    border-bottom-left-radius: 5px;
}

.user-message p, .bot-message p {
    margin: 0;
    line-height: 1.5;
}

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

#user-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

#user-input:focus {
    border-color: #4361ee;
}

#send-button {
    background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#send-button:hover {
    transform: scale(1.1);
}

/* Yazma Animasyonu */
.typing-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background: #3a56d4;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    opacity: 0.6;
}

.typing-indicator span:nth-child(1) {
    animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) {
    animation: typing 1s infinite 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation: typing 1s infinite 0.4s;
}

@keyframes typing {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Duyarlı Tasarım */
@media (max-width: 576px) {
    #chatbot-container {
        width: 90%;
        height: 70vh;
        bottom: 80px;
        right: 5%;
        left: 5%;
    }
    
    #chatbot-button {
        bottom: 20px;
        left: 20px;
    }
}

/* Kaydırma Çubuğu Stilleri */
#chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

#chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#chatbot-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

#chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Link Stilleri */
.bot-message a {
    color: #4361ee;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.bot-message a:hover {
    text-decoration: underline;
    color: #3a56d4;
}

/* Önemli Bilgi Vurgusu */
.bot-message strong {
    font-weight: 600;
    color: #333;
}

/* İtalik Vurgu */
.bot-message em {
    font-style: italic;
    color: #555;
}
