/* Altın Geyikler Chatbot Styles */

#ag-chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Toggle Button */
.ag-chatbot-toggle {
    width: 60px;
    height: 60px;
    background: #111111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(17, 17, 17, 0.3);
    transition: all 0.3s ease;
    color: white;
    border: none;
    padding: 0;
}

.ag-chatbot-toggle:hover {
    transform: scale(1.1);
    background: #D4AF37;
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.ag-chatbot-toggle svg {
    width: 28px;
    height: 28px;
}

/* Chatbot Window */
.ag-chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 60px);
    height: 600px;
    max-height: calc(100vh - 120px);
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    z-index: 999999;
}

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

/* Header */
.ag-chatbot-header {
    background: #111111;
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.ag-chatbot-header-content h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.ag-chatbot-header-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    color: white;
}

.ag-chatbot-close {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
    margin-top: -5px;
    margin-right: -5px;
}

.ag-chatbot-close:hover {
    opacity: 1;
}

/* Messages Area */
.ag-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f1f1f1;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.ag-chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.ag-chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

.ag-chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Message Bubble */
.ag-chatbot-message {
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

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

.ag-chatbot-message-bubble {
    background: white;
    padding: 15px 18px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 85%;
    word-wrap: break-word;
    line-height: 1.5;
    color: #333;
    font-size: 14px;
}

.ag-chatbot-message.user .ag-chatbot-message-bubble {
    background: #111111;
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

/* Options Buttons - Pill Style */
.ag-chatbot-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.ag-chatbot-option {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ag-chatbot-option:hover {
    border-color: #D4AF37;
    background: #D4AF37;
    color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.ag-chatbot-option:active {
    transform: translateY(0);
}

/* Geri Dön Butonu - Siyah Ok */
.ag-chatbot-option-back {
    position: relative;
    padding-left: 35px;
}

.ag-chatbot-option-back::before {
    content: "←";
    position: absolute;
    left: 15px;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.ag-chatbot-option-back:hover::before {
    transform: translateX(-3px);
    color: #111111;
}

/* Text Input Container */
.ag-chatbot-input-container {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

.ag-chatbot-text-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    background: white;
    color: #333;
}

.ag-chatbot-text-input:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.ag-chatbot-text-input::placeholder {
    color: #999;
}

.ag-chatbot-send-button {
    padding: 12px 24px;
    background: #111111;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ag-chatbot-send-button:hover {
    background: #D4AF37;
    color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.ag-chatbot-send-button:active {
    transform: translateY(0);
}

/* Scroll Target (görünmez anchor) */
#ag-chatbot-scroll-target {
    height: 1px;
    width: 100%;
    visibility: hidden;
}

/* Chatbot Overlay/Backdrop */
.ag-chatbot-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    animation: fadeIn 0.3s ease;
}

.ag-chatbot-overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    #ag-chatbot-container {
        bottom: 20px;
        right: 20px;
        left: auto;
        z-index: 999999;
    }
    
    .ag-chatbot-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 80px);
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 80px);
        bottom: auto;
        right: auto;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        border-radius: 20px;
        position: fixed;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
        z-index: 999999;
    }
    
    .ag-chatbot-toggle {
        width: 56px;
        height: 56px;
    }
    
    /* Mobilde body scroll engelle */
    body.ag-chatbot-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    /* Messages container touch scroll */
    .ag-chatbot-messages {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }
}

