/* ── Adıgüzel MYO Chatbot ───────────────────────────────────────────────── */

:root {
    --chat-color: #0c2340;
    --chat-color-light: #183e6d;
    --chat-accent: #ff7a1a;
    --chat-accent-hover: #e66609;
    --chat-bg: #ffffff;
    --chat-bot-bubble: #f0f4f8;
    --chat-bot-text: #1a2a3a;
    --chat-radius: 18px;
    --chat-shadow: 0 10px 50px rgba(0, 0, 0, 0.20);
    --chat-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Genel Chatbot Wrapper & Yüzen Buton ──────────────────────────────────── */

.adiguzel-chatbot-wrapper {
    position: fixed;
    z-index: 999999;
    font-family: var(--chat-font);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.adiguzel-bottom-right {
    bottom: 24px;
    right: 24px;
}

.adiguzel-bottom-left {
    bottom: 24px;
    left: 24px;
    align-items: flex-start;
}

/* Toggle Butonu */
.adiguzel-chat-toggle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--chat-color) 0%, var(--chat-color-light) 100%);
    border: none;
    cursor: pointer;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.adiguzel-chat-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.32);
}

.adiguzel-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* ── Chat Penceresi (Genel & Yüzen) ───────────────────────────────────────── */

.adiguzel-chat-window {
    width: 420px;
    max-width: calc(100vw - 32px);
    background: var(--chat-bg);
    border-radius: var(--chat-radius);
    box-shadow: var(--chat-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 14px;
    animation: adiguzelSlideUp 0.25s ease;
    max-height: calc(100vh - 110px);
    box-sizing: border-box;
}

@keyframes adiguzelSlideUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Header ────────────────────────────────────────────────────────────── */

.adiguzel-chat-header {
    background: var(--chat-color, #0c2340);
    color: white;
    padding: 16px 20px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

.adiguzel-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.adiguzel-avatar {
    width: 40px;
    height: 40px;
    background: var(--chat-accent, #ff7a1a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(255, 122, 26, 0.3);
}

.adiguzel-header-name {
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    line-height: 1.2;
}

.adiguzel-header-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.adiguzel-status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
}

.adiguzel-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.adiguzel-clear-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s, transform 0.1s;
    font-family: var(--chat-font);
}

.adiguzel-clear-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.adiguzel-clear-btn:active {
    transform: scale(0.95);
}

.adiguzel-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
}

.adiguzel-close-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.adiguzel-close-btn:active {
    transform: scale(0.92);
}

/* ── Mesajlar (Orijinal Balon Tasarımı) ──────────────────────────────────── */

.adiguzel-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
    min-height: 340px;
    max-height: 460px;
    scroll-behavior: smooth;
    background: #ffffff;
    box-sizing: border-box;
}

.adiguzel-chat-messages::-webkit-scrollbar {
    width: 4px;
}

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

.adiguzel-chat-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.adiguzel-message {
    display: flex !important;
    max-width: 90%;
}

.adiguzel-message.adiguzel-user {
    align-self: flex-end;
}

.adiguzel-message.adiguzel-bot {
    align-self: flex-start;
}

.adiguzel-bubble {
    padding: 11px 15px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    box-sizing: border-box;
}

.adiguzel-message.adiguzel-user .adiguzel-bubble {
    background: var(--chat-color, #0c2340);
    color: white;
    border-bottom-right-radius: 4px;
}

.adiguzel-message.adiguzel-bot .adiguzel-bubble {
    background: var(--chat-bot-bubble, #f0f4f8);
    color: var(--chat-bot-text, #1a2a3a);
    border-bottom-left-radius: 4px;
}

/* Typing */
.adiguzel-typing .adiguzel-bubble {
    background: var(--chat-bot-bubble, #f0f4f8);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 18px;
}

.adiguzel-dot {
    width: 8px;
    height: 8px;
    background: #aaa;
    border-radius: 50%;
    animation: adiguzelDot 1.2s infinite;
}

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

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

@keyframes adiguzelDot {

    0%,
    80%,
    100% {
        transform: scale(0.7);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ── Hızlı Yanıtlar ──────────────────────────────────────────────────────── */

.adiguzel-quick-replies {
    padding: 8px 16px 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    border-top: 1px solid #eef1f5;
    flex-shrink: 0;
    box-sizing: border-box;
    background: #fafbfc;
}

.adiguzel-quick-btn {
    background: #eef3f8;
    border: 1px solid #d0dce8;
    color: var(--chat-color, #0c2340);
    border-radius: 20px;
    padding: 6px 13px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-family: var(--chat-font);
    white-space: nowrap;
}

.adiguzel-quick-btn:hover {
    background: var(--chat-color, #0c2340);
    color: white;
    border-color: var(--chat-color, #0c2340);
}

/* ── Giriş Alanı ─────────────────────────────────────────────────────────── */

.adiguzel-chat-input-area {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-top: 1px solid #eee;
    background: #fafbfc;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 100%;
}

.adiguzel-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1.5px solid #d8e2ec;
    border-radius: 24px;
    padding: 4px 6px 4px 14px;
    flex: 1;
    transition: border-color 0.2s;
}

.adiguzel-input-container:focus-within {
    border-color: var(--chat-color, #0c2340);
}

.adiguzel-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 6px 0;
    font-size: 14px;
    font-family: var(--chat-font);
    resize: none;
    outline: none;
    line-height: 1.4;
    max-height: 80px;
    box-sizing: border-box;
    color: #000000;
}

.adiguzel-send-btn {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--chat-accent, #ff7a1a) 0%, #ff5200 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.1s, opacity 0.2s;
}

.adiguzel-send-btn:hover {
    transform: scale(1.05);
}

.adiguzel-send-btn:active {
    transform: scale(0.95);
}

.adiguzel-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── 2 Sütunlu Sayfa Tasarımı (Page Hero Layout) ────────────────────────── */

.adiguzel-fullpage-chatbot-section {
    width: 100% !important;
    min-height: calc(100vh - 140px);
    background: linear-gradient(135deg, #051322 0%, #081d33 50%, #051322 100%);
    padding: 40px 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adiguzel-fullpage-chatbot-inner {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
}

.adiguzel-page-wrapper {
    width: 100%;
    max-width: 1360px;
    margin: 20px auto;
    padding: 38px 36px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #071728 0%, #0a2139 50%, #07182b 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 25px 60px -15px rgba(2, 10, 20, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    display: flex;
    gap: 32px;
    align-items: stretch;
    font-family: var(--chat-font);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 650px;
}

/* Sol Tanıtım / Bilgi Kartı */
.adiguzel-hero-panel {
    flex: 0 0 380px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 26px;
    background: rgba(14, 34, 58, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 34px 28px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-sizing: border-box;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
}

.adiguzel-hero-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.adiguzel-hero-icon-box {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff7a1a 0%, #ff5200 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255, 122, 26, 0.35);
    flex-shrink: 0;
}

.adiguzel-hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #ff7a1a;
    background: rgba(255, 122, 26, 0.14);
    border: 1px solid rgba(255, 122, 26, 0.3);
    border-radius: 20px;
    padding: 5px 13px;
}

.adiguzel-hero-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.28;
    margin: 4px 0 0 0;
    letter-spacing: -0.3px;
}

.adiguzel-hero-desc {
    font-size: 14.5px;
    line-height: 1.62;
    color: rgba(226, 232, 240, 0.82);
    margin: 0;
}

.adiguzel-features-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px 20px;
}

.adiguzel-features-header {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.adiguzel-bolt {
    color: #ff7a1a;
    font-size: 15px;
}

.adiguzel-features-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.adiguzel-features-list li {
    font-size: 13.5px;
    color: rgba(226, 232, 240, 0.88);
    line-height: 1.45;
    display: flex;
    align-items: center;
    gap: 8px;
}

.adiguzel-bullet {
    color: #ff7a1a;
    font-size: 14px;
    line-height: 1;
}

/* ── Sayfa İçi Modda Sağ Kolon ───────────────────────────────────────────── */

.adiguzel-page-wrapper .adiguzel-chatbot-wrapper.adiguzel-inline {
    flex: 1 1 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
    z-index: 10 !important;
    display: flex !important;
    flex-direction: column !important;
}

.adiguzel-page-wrapper .adiguzel-chat-window {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 580px;
    max-height: none !important;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.28);
    background: #ffffff;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 0 !important;
}

.adiguzel-page-wrapper .adiguzel-chat-messages {
    max-height: 480px;
}

/* Standalone / Kompakt Mod */
.adiguzel-chatbot-wrapper.adiguzel-inline:not(.adiguzel-page-wrapper *) {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
    z-index: 10 !important;
    width: 100% !important;
    max-width: 680px;
    margin: 25px auto !important;
    align-items: stretch !important;
}

.adiguzel-chatbot-wrapper.adiguzel-inline .adiguzel-chat-toggle,
.adiguzel-chatbot-wrapper.adiguzel-inline .adiguzel-close-btn {
    display: none !important;
}

/* ── Responsive Uyumluluk ────────────────────────────────────────────────── */

@media (max-width: 960px) {
    .adiguzel-page-wrapper {
        flex-direction: column;
        padding: 24px 18px;
        gap: 24px;
        margin: 15px auto;
        border-radius: 18px;
    }

    .adiguzel-hero-panel {
        max-width: 100%;
        flex: 1 1 auto;
        padding: 24px 20px;
    }

    .adiguzel-hero-title {
        font-size: 22px;
    }

    .adiguzel-page-wrapper .adiguzel-chat-window {
        min-height: 480px;
    }
}

@media (max-width: 540px) {
    .adiguzel-chatbot-wrapper {
        bottom: 14px !important;
        right: 10px !important;
        left: 10px !important;
    }

    .adiguzel-chat-window {
        width: 100% !important;
        max-width: 100% !important;
        max-height: calc(100vh - 95px);
        border-radius: 16px;
    }

    .adiguzel-chat-messages {
        min-height: 280px;
        padding: 14px 12px;
    }

    .adiguzel-bubble {
        padding: 11px 14px;
        font-size: 13.5px;
    }

    .adiguzel-quick-replies {
        padding: 8px 12px;
    }

    .adiguzel-chat-input-area {
        padding: 10px 12px;
    }
}