/* Web sitesinin sağ altındaki "Atmos" sohbet asistanı (_SiteChat.cshtml, js/site-chat.js) — tema uyumlu. */
.sc { position: fixed; right: 22px; bottom: 22px; z-index: 900; font-family: inherit; }

.sc-fab {
    position: relative; width: 62px; height: 62px; padding: 0; border-radius: 50%; cursor: pointer;
    border: 2px solid var(--accent); background: radial-gradient(circle at 50% 35%, #12324a, #0a1622 70%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35), 0 0 0 0 var(--accent-glow); display: grid; place-items: center; overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease; animation: scPulse 3.2s ease-in-out infinite;
}
.sc-fab:hover { transform: translateY(-2px) scale(1.04); }
.sc-fab:focus-visible { outline: 3px solid var(--accent2); outline-offset: 3px; }
.sc-fab img { width: 56px; height: 56px; object-fit: contain; }
.sc-fab-dot { position: absolute; right: 6px; bottom: 6px; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid #0a1622; }
.sc.open .sc-fab { animation: none; }
@keyframes scPulse { 0%, 100% { box-shadow: 0 10px 28px rgba(0,0,0,.35), 0 0 0 0 var(--accent-glow); } 50% { box-shadow: 0 10px 28px rgba(0,0,0,.35), 0 0 0 9px rgba(45,212,167,0); } }
@media (prefers-reduced-motion: reduce) { .sc-fab { animation: none; } }

.sc-hint {
    position: absolute; right: 74px; bottom: 12px; width: max-content; max-width: 240px; padding: 10px 14px; border-radius: 14px 14px 4px 14px;
    background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
    font-size: 13.5px; line-height: 1.45; cursor: pointer; animation: scIn .25s ease;
}
.sc-hint[hidden] { display: none; }

.sc-panel {
    position: absolute; right: 0; bottom: 76px; width: 380px; height: min(580px, calc(100vh - 120px)); display: flex; flex-direction: column;
    background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border-strong); border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35); overflow: hidden; animation: scIn .2s ease;
}
.sc-panel[hidden] { display: none; }
@keyframes scIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.sc-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, var(--accent-soft), var(--accent2-soft)); }
.sc-head-av { width: 40px; height: 40px; border-radius: 50%; background: #0a1622; border: 1.5px solid var(--accent); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.sc-head-av img { width: 36px; height: 36px; object-fit: contain; }
.sc-head-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sc-head-txt strong { font-family: var(--font-display); font-size: 15.5px; }
.sc-head-txt span { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.sc-online { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; display: inline-block; }
.sc-icon { width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--text-secondary); cursor: pointer; display: grid; place-items: center; }
.sc-icon:hover { background: var(--bg-surface-2); color: var(--text-primary); }
.sc-icon svg { width: 18px; height: 18px; }

.sc-body { flex: 1; overflow-y: auto; padding: 14px 12px 6px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.sc-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; }
.sc-me { justify-content: flex-end; }
.sc-av { width: 28px; height: 28px; border-radius: 50%; background: #0a1622; object-fit: contain; flex-shrink: 0; }
.sc-bub { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.sc-bot .sc-bub { background: var(--bg-surface-2); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.sc-me .sc-bub { background: var(--accent); color: #04121b; border-bottom-right-radius: 5px; }
.sc-bub a { color: var(--accent2); text-decoration: underline; }
.sc-me .sc-bub a { color: #04121b; }
.sc-typing .sc-bub { display: inline-flex; gap: 4px; padding: 12px 14px; }
.sc-typing .sc-bub span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: scDot 1s infinite ease-in-out; }
.sc-typing .sc-bub span:nth-child(2) { animation-delay: .15s; }
.sc-typing .sc-bub span:nth-child(3) { animation-delay: .3s; }
@keyframes scDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.sc-err { align-self: center; font-size: 12.5px; color: var(--danger); background: rgba(240, 85, 109, .1); border: 1px solid rgba(240, 85, 109, .3); padding: 6px 10px; border-radius: 10px; }

.sc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 12px 8px; }
.sc-chips[hidden] { display: none; }
.sc-chips button { font: inherit; font-size: 12.5px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--accent-dim); background: var(--accent-soft); color: var(--text-primary); cursor: pointer; }
.sc-chips button:hover { border-color: var(--accent); }

.sc-input { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }
.sc-input textarea {
    flex: 1; resize: none; min-height: 40px; max-height: 120px; padding: 10px 14px; border-radius: 18px; border: 1px solid var(--border-strong);
    background: var(--bg-base); color: var(--text-primary); font: inherit; font-size: 14px; line-height: 1.4;
}
.sc-input textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sc-send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: #04121b; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.sc-send[disabled] { opacity: .5; cursor: progress; }
.sc-send svg { width: 18px; height: 18px; }
.sc-foot { padding: 0 14px 10px; font-size: 11px; line-height: 1.4; color: var(--text-muted); }
.sc-foot a { color: var(--text-secondary); text-decoration: underline; }

/* Telefon: alttan açılan sayfa */
@media (max-width: 520px) {
    .sc { right: 14px; bottom: 14px; }
    .sc-fab { width: 56px; height: 56px; }
    .sc-fab img { width: 50px; height: 50px; }
    .sc-panel { position: fixed; left: 8px; right: 8px; bottom: 8px; width: auto; height: min(78vh, 620px); border-radius: 18px; }
    .sc.open .sc-fab { display: none; }
    .sc-hint { right: 66px; }
}
