/* UTF-8 Encoding için karakter seti al zorla tunc not */
@charset "UTF-8";

/* Font import ett */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Ana tetikleyici tusumm */
#chatbot-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #FFF;
    border: 2px solid #c20000;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, box-shadow .15s ease;
}

#chatbot-trigger:hover { 
    transform: scale(1.06); 
    box-shadow: 0 10px 28px rgba(194,0,0,0.35); 
}

#chatbot-trigger img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* Ana widgettt */
#chatbot-widget {
    position: fixed;
    bottom: 96px;
    right: 20px;
    width: 380px;
    max-width: calc(100% - 40px);
    height: 560px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.22);
    z-index: 99998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Headerimmm tepee */
#chatbot-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(90deg, #f7f9ff, #ffffff);
}

#chatbot-header .chatbot-logo { 
    width: 140px; 
    height: 32px; 
    object-fit: contain; 
}

#chatbot-header .brand { 
    font-weight: 700; 
    color: #111827; 
    flex: 1; 
}

#chatbot-header #chatbot-about {
    font-size: 11px;
    padding: 6px 8px;
    background: #fff;
    border-radius: 6px;
    color: #c20000;
    border: 1px solid #c20000;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

#chatbot-header #chatbot-about:hover { 
    background: #c20000; 
    color: #fff; 
}

#chatbot-header #chatbot-close {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 6px 10px;
    color: #666;
    transition: color 0.2s, transform 0.2s;
}

#chatbot-header #chatbot-close:hover { 
    color: #ff0000; 
    transform: rotate(90deg); 
}

/* Dil değiştiricimm */
.lang-switch { 
    display: flex; 
    gap: 6px; 
}

.lang-btn {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.lang-btn.active {
    border-color: #c20000;
    background: #fee;
    color: #c20000;
}

.lang-btn:hover:not(.active) {
    border-color: #c20000;
    background: #fafafa;
}

/* Mesaj alanı */
#chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(180deg, #fff, #fbfdff);
}

.chatbot-message {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 12px;
    line-height: 1.45;
    font-size: 13px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    word-wrap: break-word;
    white-space: pre-wrap;
    animation: fadeIn 0.25s ease;
    margin: 0;
    display: inline-block;
}

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

.chatbot-message.user { 
    align-self: flex-end; 
    background: #ef4444; 
    color: #fff; 
    border-bottom-right-radius: 4px; 
}

.chatbot-message.bot { 
    align-self: flex-start; 
    background: #f1f5ff; 
    color: #0f1724; 
    border-bottom-left-radius: 4px; 
}

/* Karşılama mesajım */
.chatbot-welcome { 
    font-size: 13px; 
    color: #334155; 
    padding: 10px;
    text-align: center;
}

.chatbot-welcome h3 { 
    margin: 0 0 8px 0; 
    font-size: 16px; 
    color: #0f1724; 
}

/* Hızlı eylem kartlarımm yenii */
.quick-actions-container {
    margin: 16px 0;
    width: 100%;
}

.quick-actions-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.quick-actions-scroll::-webkit-scrollbar {
    height: 6px;
}

.quick-actions-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.quick-actions-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.quick-action-card {
    min-width: 120px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    user-select: none;
}

.quick-action-card:hover {
    border-color: #c20000;
    background: #fee;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(194,0,0,0.15);
}

.quick-action-icon {
    font-size: 20px;
    color: #c20000;
    margin-bottom: 4px;
}

.quick-action-title {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

/* Sayfa linklerimm */
.chatbot-pages { 
    margin-top: 10px; 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
}

.chatbot-page-link { 
    display: block; 
    padding: 10px; 
    border-radius: 8px; 
    text-decoration: none; 
    border: 1px solid #eef2ff; 
    background: #ffffff; 
    transition: all 0.15s; 
}

.chatbot-page-link:hover { 
    border-color: #c20000; 
    background: #f9fbff; 
    transform: translateX(3px); 
}

.chatbot-page-link .title { 
    font-weight: 600; 
    font-size: 13px; 
    color: #0f1724; 
    margin-bottom: 3px; 
}

.chatbot-page-link .excerpt { 
    font-size: 12px; 
    color: #475569; 
    line-height: 1.4; 
}

/* İletişim bilgilerim */
.chatbot-contact-info {
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #374151;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: #c20000;
    width: 16px;
}

.contact-item a {
    color: #c20000;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}


#chatbot-input-area { 
    display: flex; 
    gap: 8px; 
    padding: 12px; 
    border-top: 1px solid #eee; 
    background: #fff; 
}

#chatbot-input { 
    flex: 1; 
    padding: 10px 14px; 
    border-radius: 10px; 
    border: 1px solid #e6eef8; 
    font-size: 14px; 
    font-family: inherit; 
    transition: border-color 0.2s;
    resize: none;
}

#chatbot-input:focus { 
    outline: none; 
    border-color: #c20000; 
    box-shadow: 0 0 0 3px rgba(194,0,0,0.1); 
}

#chatbot-send { 
    padding: 0 16px; 
    border-radius: 10px; 
    background: #c20000; 
    color: #fff; 
    border: none; 
    cursor: pointer; 
    font-weight: 700;
    transition: background 0.2s;
}

#chatbot-send:hover { 
    background: #a00000; 
}

/* Yükleniyor animasyonum */
.chatbot-loading { 
    background: transparent !important; 
    box-shadow: none !important; 
    padding: 6px 8px !important; 
}

.chatbot-loading img { 
    display: block; 
}

/* About modalimm */
.chatbot-about-modal {
    position: fixed; 
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none; 
    align-items: center; 
    justify-content: center; 
    z-index: 100000;
}

.chatbot-about-modal.active { 
    display: flex; 
}

.chatbot-about-content {
    background: white; 
    border-radius: 12px; 
    padding: 20px; 
    max-width: 380px; 
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3); 
    text-align: center; 
    animation: slideUp 0.25s ease;
}

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

.chatbot-about-content h2 { 
    color: #0f1724; 
    margin-bottom: 10px; 
    font-size: 18px; 
}

.chatbot-about-content p { 
    color: #475569; 
    font-size: 14px; 
    line-height: 1.6; 
    margin-bottom: 16px; 
}

.chatbot-about-content .about-close { 
    background: #c20000; 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: 600;
    transition: background 0.2s;
}

.chatbot-about-content .about-close:hover { 
    background: #a00000; 
}

/* Scroll ba r stillerim tunc nott duzelt burasi */
#chatbot-messages::-webkit-scrollbar { 
    width: 6px; 
}

#chatbot-messages::-webkit-scrollbar-track { 
    background: transparent; 
}

#chatbot-messages::-webkit-scrollbar-thumb { 
    background: #cbd5e0; 
    border-radius: 3px; 
}

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

/* Responsive tasarımım tunc not */
@media (max-width: 480px) {
    #chatbot-widget { 
        right: 12px; 
        left: 12px; 
        width: auto; 
        height: 65vh; 
        bottom: 80px; 
    }
    
    #chatbot-header .brand { 
        font-size: 13px; 
    }
    
    .lang-btn { 
        font-size: 10px; 
        padding: 5px 8px; 
    }
    
    .chatbot-message { 
        font-size: 12px; 
        padding: 8px 12px; 
    }
    
    .quick-action-card {
        min-width: 100px;
        padding: 10px 12px;
    }
    
    .quick-action-title {
        font-size: 11px;
    }
}


.contact-item i.fas:before,
.contact-item i.fab:before {
    content: "•";
    font-style: normal;
}

/* Link stilleriiim */
.chatbot-message a {
    color: #c20000;
    font-weight: 500;
}
/* Chatbot Tooltip - Yeni özellik */
.chatbot-tooltip {
    position: fixed;
    bottom: 95px;
    right: 25px;
    background: #c20000;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(194, 0, 0, 0.3);
    z-index: 99997;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    animation: bounce 0.8s infinite;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.chatbot-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.chatbot-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #c20000;
}

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

/* Responsive için tooltip */
@media (max-width: 480px) {
    .chatbot-tooltip {
        bottom: 90px;
        right: 15px;
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* Collapsible Sayfa Sonuçları denememm */
.chatbot-page-collapsible {
    margin: 8px 0;
}

.chatbot-page-header {
    background: #f5f5f5;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.chatbot-page-header:hover {
    background: #ebebeb;
    border-color: #c20000;
}

.collapse-icon {
    font-size: 10px;
    color: #c20000;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.page-title-text {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    flex: 1;
}

.chatbot-page-content {
    padding: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    margin-top: -8px;
}

.page-excerpt {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.page-link-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #c20000;
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.page-link-btn:hover {
    background: #a00000;
}

/* Separator çizgisi renk degistr tunc hatırlatma */
.page-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
    margin: 15px 0;
}

/* Qui ck Actions Scrollbar - Daha berlirgin */
.quick-actions-scroll::-webkit-scrollbar {
    height: 8px !important;
}

.quick-actions-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.quick-actions-scroll::-webkit-scrollbar-thumb {
    background: #c20000;
    border-radius: 4px;
}

.quick-actions-scroll::-webkit-scrollbar-thumb:hover {
    background: #a00000;
}
