﻿/* Dinamiken AI - Asistan Merkezi | Tekillestirilmis stil */
.dk-ai-launcher {
    --dk-ai-bottom: 24px;
    position: fixed;
    right: 24px;
    bottom: var(--dk-ai-bottom);
    z-index: 1900;
    font-family: inherit;
}

    .dk-ai-launcher.dk-ai-toast-visible {
        --dk-ai-bottom: 110px;
    }

body.__push-banner-on .dk-ai-launcher {
    --dk-ai-bottom: 116px;
}

    body.__push-banner-on .dk-ai-launcher.dk-ai-toast-visible {
        --dk-ai-bottom: 190px;
    }

.dk-ai-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 72px;
    height: 54px;
    padding: 0 18px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    box-shadow: 0 9px 25px rgba(37, 99, 235, .28);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .dk-ai-toggle i {
        font-size: 20px;
    }

    .dk-ai-toggle:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(37, 99, 235, .35);
    }

    .dk-ai-toggle:focus-visible, .dk-ai-close:focus-visible, .dk-ai-assistant-card:focus-visible {
        outline: 3px solid #93c5fd;
        outline-offset: 2px;
    }

.dk-ai-panel {
    position: absolute;
    right: 0;
    bottom: 68px;
    display: flex;
    flex-direction: column;
    width: 520px;
    max-width: calc(100vw - 32px);
    max-height: min(720px, calc(100dvh - 115px));
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(15, 23, 42, .18);
    color: #0f172a;
}

    .dk-ai-panel[hidden], .dk-ai-assistant-count[hidden] {
        display: none !important;
    }

.dk-ai-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: #f8faff;
    border-bottom: 1px solid #e9eef7;
    flex: 0 0 auto;
}

.dk-ai-brand-icon {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 21px;
}

.dk-ai-header-copy {
    flex: 1;
    min-width: 0;
}

    .dk-ai-header-copy h2 {
        margin: 0;
        color: #0f172a;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.3;
    }

    .dk-ai-header-copy p {
        margin: 3px 0 0;
        color: #64748b;
        font-size: 12px;
        line-height: 1.3;
    }

.dk-ai-close {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 16px;
}

    .dk-ai-close:hover {
        background: #e9eef7;
        color: #0f172a;
    }

.dk-ai-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px 18px;
}

.dk-ai-greeting {
    padding: 13px 15px;
    background: #f1f5ff;
    border: 1px solid #e0e7ff;
    border-radius: 12px;
}

    .dk-ai-greeting strong {
        display: block;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.4;
    }

    .dk-ai-greeting p {
        margin: 5px 0 0;
        color: #475569;
        font-size: 13px;
        line-height: 1.55;
    }

.dk-ai-section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 17px 0 10px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.dk-ai-assistant-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 7px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 11px;
    font-weight: 700;
}

.dk-ai-assistant-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.dk-ai-list-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 82px;
    padding: 14px;
    border: 1px dashed #dbe3f0;
    border-radius: 11px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.dk-ai-assistant-card {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

    .dk-ai-assistant-card:hover, .dk-ai-assistant-card:focus-visible {
        border-color: #c7d2fe;
        background: #f8faff;
        box-shadow: 0 3px 12px rgba(15, 23, 42, .05);
    }

.dk-ai-assistant-icon {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 11px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 20px;
}

.dk-ai-assistant-content {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.dk-ai-assistant-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.dk-ai-assistant-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.dk-ai-assistant-arrow {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 13px;
}

@media (hover: hover) {
    .dk-ai-assistant-card:hover .dk-ai-assistant-description {
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }
}

.dk-ai-assistant-card:focus-visible .dk-ai-assistant-description {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.dk-ai-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 11px 15px;
    border-top: 1px solid #eef2f7;
    color: #94a3b8;
    font-size: 11px;
}

@media (max-width: 575.98px) {
    .dk-ai-launcher {
        right: 16px;
        --dk-ai-bottom: 16px;
    }

        .dk-ai-launcher.dk-ai-toast-visible {
            --dk-ai-bottom: 110px;
        }

    body.__push-banner-on .dk-ai-launcher {
        --dk-ai-bottom: 112px;
    }

        body.__push-banner-on .dk-ai-launcher.dk-ai-toast-visible {
            --dk-ai-bottom: 202px;
        }

    .dk-ai-panel {
        bottom: 66px;
        width: calc(100vw - 32px);
        max-width: none;
        max-height: calc(100dvh - 105px);
    }

    .dk-ai-header {
        padding: 12px 14px;
    }

    .dk-ai-body {
        padding: 12px 14px;
    }

    .dk-ai-greeting {
        padding: 11px 12px;
    }

    .dk-ai-assistant-card {
        padding: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dk-ai-toggle, .dk-ai-assistant-card {
        transition: none;
    }
}
