/* GG_ASİSTAN NEURAL CORE 2.5 - WEB EDITION */
:root {
    --asistan-primary: #00d2ff;
    --asistan-secondary: #0081ff;
    --asistan-admin: #f59e0b;
    --asistan-bg: rgba(5, 5, 8, 0.85);
    --asistan-border: rgba(0, 210, 255, 0.2);
    --asistan-shadow: 0 10px 50px rgba(0, 210, 255, 0.15);
}

.gg-asistan-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--asistan-primary), var(--asistan-secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255,255,255,0.1);
}

.gg-asistan-trigger:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.6);
}

.gg-asistan-trigger.active {
    transform: scale(0.9) rotate(-90deg);
    background: #ff4757;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.4);
}

.gg-asistan-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: var(--asistan-bg);
    backdrop-filter: blur(40px);
    border: 1px solid var(--asistan-border);
    border-radius: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--asistan-shadow);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gg-asistan-panel.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.asistan-header {
    padding: 20px;
    background: linear-gradient(to right, rgba(0, 210, 255, 0.05), transparent);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.asistan-core-icon {
    width: 45px;
    height: 45px;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--asistan-primary);
    position: relative;
}

.asistan-core-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border-radius: 50%;
    border: 2px solid var(--asistan-bg);
    box-shadow: 0 0 8px #2ecc71;
}

.asistan-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin: 0;
    color: #fff;
}

.asistan-header span {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--asistan-primary);
    text-transform: uppercase;
}

.asistan-chat {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Mesaj grupları arası boşluk */
    scrollbar-width: thin;
    scrollbar-color: var(--asistan-border) transparent;
}

.msg-wrap {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.msg-wrap.user { align-self: flex-end; align-items: flex-end; }
.msg-wrap.assistant { align-self: flex-start; align-items: flex-start; }

.msg-label {
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.text-admin { color: var(--asistan-admin) !important; text-shadow: 0 0 5px rgba(245, 158, 11, 0.4); }
.text-muted { color: #666; }

.msg {
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.8rem;
    line-height: 1.5;
    position: relative;
    animation: msgIn 0.3s ease-out forwards;
    width: fit-content;
}

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

.msg.assistant {
    background: rgba(255,255,255,0.05);
    color: #eee;
    align-self: flex-start;
    border-top-left-radius: 0;
    border: 1px solid rgba(255,255,255,0.05);
}

.msg.user {
    background: var(--asistan-primary);
    color: #000;
    font-weight: 600;
    align-self: flex-end;
    border-top-right-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.2);
}

.asistan-footer {
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.asistan-input-wrap {
    position: relative;
    display: flex;
    gap: 10px;
}

.asistan-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px 15px;
    color: #fff;
    font-size: 0.8rem;
    outline: none;
    transition: all 0.3s;
}

.asistan-input:focus {
    border-color: var(--asistan-primary);
    background: rgba(255,255,255,0.08);
}

.asistan-send {
    width: 45px;
    height: 45px;
    background: var(--asistan-primary);
    border: none;
    border-radius: 10px;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

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

.thinking {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
}

.thinking span {
    width: 4px;
    height: 4px;
    background: var(--asistan-primary);
    border-radius: 50%;
    animation: think 1.4s infinite both;
}

.thinking span:nth-child(2) { animation-delay: 0.2s; }
.thinking span:nth-child(3) { animation-delay: 0.4s; }

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

/* ADMIN THEME */
.gg-asistan-panel.is-admin {
    border-color: rgba(245, 158, 11, 0.3);
}
.is-admin .asistan-core-icon {
    color: var(--asistan-admin);
    border-color: rgba(245, 158, 11, 0.4);
}
.is-admin .asistan-header span {
    color: var(--asistan-admin);
}

@media (max-width: 768px) {
    .gg-asistan-trigger {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    .gg-asistan-panel {
        width: 90% !important;
        height: 70vh !important;
        right: 5% !important;
        bottom: 80px !important;
    }
}
