/* assets/chat-widget.css */
#turan-ai-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f0ff, #0088ff);
    color: #fff;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
    z-index: 99999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    outline: none;
}
#turan-ai-chat-btn:hover {
    transform: scale(1.1);
}

#turan-ai-chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 360px;
    height: 520px;
    background: rgba(10, 18, 35, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 99998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}
#turan-ai-chat-window.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.chat-header {
    background: linear-gradient(135deg, rgba(0,240,255,0.1), rgba(0,136,255,0.1));
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f0ff, #0088ff);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}
.chat-title {
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0;
}
.chat-subtitle {
    color: #00f0ff;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0;
}
.chat-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.chat-close-btn:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.chat-messages::-webkit-scrollbar {
    width: 6px;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0,240,255,0.2);
    border-radius: 10px;
}

.msg-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: fadeInMsg 0.3s ease;
}
@keyframes fadeInMsg {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.msg-bot {
    background: rgba(255,255,255,0.05);
    color: #ddd;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    border: 1px solid rgba(0,240,255,0.1);
}
.msg-bot a {
    color: #00f0ff;
    text-decoration: underline;
    font-weight: bold;
}
.msg-user {
    background: linear-gradient(135deg, #00f0ff, #0088ff);
    color: #000;
    font-weight: 600;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
    display: flex;
    gap: 10px;
}
.chat-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px 15px;
    border-radius: 20px;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.chat-input:focus {
    border-color: #00f0ff;
}
.chat-send-btn {
    background: linear-gradient(135deg, #00f0ff, #0088ff);
    color: #000;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
}
.chat-send-btn:hover {
    transform: scale(1.05);
}
.chat-send-btn i {
    font-size: 1.1rem;
}

.typing-indicator {
    display: none;
    align-self: flex-start;
    background: transparent;
    padding: 5px 10px;
    margin-top: -5px;
}
.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #00f0ff;
    border-radius: 50%;
    margin: 0 2px;
    animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ── MOD SEÇİM BUTONLARI ── */
.chat-mode-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: flex-start;
    width: 100%;
    animation: fadeInMsg 0.3s ease;
}
.chat-mode-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(0,240,255,0.25);
    color: #e0e0e0;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    font-family: inherit;
    letter-spacing: 0.2px;
}
.chat-mode-btn:hover {
    background: rgba(0,240,255,0.08);
    border-color: #00f0ff;
    color: #fff;
    transform: translateX(4px);
}
.chat-mode-btn.demo-btn {
    border-color: rgba(120,80,255,0.4);
}
.chat-mode-btn.demo-btn:hover {
    background: rgba(120,80,255,0.1);
    border-color: #7850ff;
    color: #fff;
}

/* ── SEKTÖR SEÇİM BUTONLARI ── */
.chat-sector-selection {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: flex-start;
    width: 100%;
    animation: fadeInMsg 0.3s ease;
}
.chat-sector-btn {
    background: rgba(120,80,255,0.06);
    border: 1px solid rgba(120,80,255,0.25);
    color: #ccc;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    font-family: inherit;
}
.chat-sector-btn:hover {
    background: rgba(120,80,255,0.15);
    border-color: #7850ff;
    color: #fff;
    transform: translateX(4px);
}

@media (max-width: 480px) {
    #turan-ai-chat-window {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 90px;
    }
}
