/* Hangibankam.com - AI Assistant Styles */

/* Chatbot butonu - Sağ altta sabit */
.ai-assistant-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background: #0e0c10;
    border: none;
    box-shadow: 0 1px 8px rgba(255, 255, 255, 0.6);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 1px 8px rgba(255, 255, 255, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(255, 255, 255, 0.8);
    }
}

.ai-assistant-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(222, 224, 231, 0.6);
    animation: none;
}

.ai-assistant-btn svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* Tooltip baloncuğu - İlk açılışta göster */
.ai-tooltip {
    position: fixed;
    bottom: 85px;
    right: 10px;
    background: #0a1929;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 998;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.ai-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 15px;
    width: 10px;
    height: 10px;
    background: #0a1929;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

/* Chat panel - Alt tan yukarı açılır */
.ai-chat-panel {
    position: fixed;
    bottom: 0;
    right: 30px;
    width: 400px;
    max-height: 600px;
    background: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s 1.2s;
}

.ai-chat-panel.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s 0s;
}

/* Chat header */
.ai-chat-header {
    background: #000000;
    color: white;
    padding: 6px 10px;
    border-radius: 16px 16px 0 0;
}

.ai-chat-header-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.ai-chat-header-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.ai-chat-header-top h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.ai-chat-header-subtitle {
    font-size: 11px;
    opacity: 0.85;
    margin-left: 45px;
    line-height: 1.4;
}

.ai-chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

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

/* Chat messages */
.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: 400px;
    background: #000000;
}

.ai-message {
    display: flex;
    gap: 5px;
    animation: messageSlide 0.3s ease;
}

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

.ai-message.user {
    flex-direction: row-reverse;
}

.ai-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.ai-message.assistant .ai-message-avatar {
    background: transparent;
    padding: 2px;
}

.ai-message.user .ai-message-avatar {
    background: #a2a3a5;
    color: #495057;
}

.ai-message-content {
    
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    text-align: justify;
}

.ai-message.assistant .ai-message-content {
    background: #000000 ;
    color: #8fa5c9 ;
    border-bottom-left-radius: 4px;
    text-align: left;
}

.ai-message.user .ai-message-content {
    background: linear-gradient(135deg, #a2a2a2  0%, #55545a  100%);
    color: white;
    border-bottom-right-radius: 4px;
    text-align: right;
}

/* Typing indicator */
.ai-typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.ai-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e0;
    animation: typing 1.4s infinite;
}

.ai-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Chat input */
.ai-chat-input {
    padding: 9px 10px;
    /*border-top: 1px solid #e9ecef;*/
    background: #000000;
    display: flex;
    gap: 10px;
}

.ai-chat-input input {
    background: linear-gradient(270deg, #a2a2a2 0%, #e7e1e1 100%);
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.ai-chat-input input:focus {
    border-color: #667eea;
}

.ai-chat-send {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(89deg, #b986ca  0%, #7897f4 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.ai-chat-send:hover:not(:disabled) {
    transform: scale(1.05);
}

.ai-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ai-chat-send svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Welcome message */
.ai-welcome {
    text-align: center;
    padding: 10px;
    color: #718096;
}

.ai-welcome-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.ai-welcome h4 {
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #b1678d  0%, #0c2d91  100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 16px;
    font-weight: 600;
}

.ai-welcome p {
    margin: 0;
    font-size: 14px;
}

/* Suggested questions */
.ai-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.ai-suggestion-btn {
    background: #101014;
    border: 1px solid #373737;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    color: #999494;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.ai-suggestion-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f7fafc;
}

/* Error message */
.ai-error {
    background: #fed7d7;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin: 10px 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .ai-chat-panel {
        right: 0;
        left: 0;
        width: 100%;
        max-height: 70vh;
        border-radius: 16px 16px 0 0;
    }

    .ai-assistant-btn {
        right: 20px;
        bottom: 20px;
    }

    .ai-tooltip {
        bottom: 75px;
        right: 5px;
    }
}

/* Scrollbar styling */
.ai-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.ai-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

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

.ai-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}
