/*
 * Lila işareti — görünüm (28 Kas 2026). Davranış: js/chat/lila_mark.js, şablon: includes/_lila_mark.html.
 * Malzeme sarmalayıcıda (CSS), çizim SVG'de: böylece JS gelmeden basılan durağan SVG de
 * aynı görünür ve kimlik (id) çakışması olmaz. Renkler logodan: lacivert #1F2B47, şeftali #FBBA92.
 */

.lila-mark {
    --lm-s: 64px;
    position: relative;
    display: inline-block;
    flex: none;
    width: var(--lm-s);
    height: var(--lm-s);
    border-radius: 50%;
    vertical-align: middle;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
    isolation: isolate;
}

.lila-mark--fluid {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}

/* !important bilinçli: eski küresel kurallar (ör. lila_skin_calm.css `.lila-header-sphere svg {width:24px}`,
   alt menü simge ölçüleri) işaretin SVG'sini de yakalıyordu; çizim her zaman sarmalayıcıyı doldurur. */
.lila-mark > .lm-svg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: visible;
    display: block !important;
    transform: none;
}

/* ─── Seramik: koyu lacivert küre, sol üstte parlama, sağ üst kenarda şeftali yansıma ─── */
.lila-mark--ceramic {
    background:
        radial-gradient(ellipse 46% 26% at 34% 21%, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 72%),
        radial-gradient(85% 85% at 36% 30%, #3a4d78 0%, #21304f 48%, #0f182d 100%);
    box-shadow:
        inset -1.5px 1.5px 0 rgba(251, 186, 146, 0.5),
        0 10px 22px -10px rgba(12, 18, 36, 0.55),
        0 2px 6px rgba(12, 18, 36, 0.16);
}

.lila-mark--ceramic.lila-mark--S {
    box-shadow: inset -1px 1px 0 rgba(251, 186, 146, 0.45), 0 1px 3px rgba(12, 18, 36, 0.25);
}

.lila-mark--ceramic .lm-ring,
.lila-mark--ceramic .lm-eye { stroke: #f4f0e9; fill: #f4f0e9; }
.lila-mark--ceramic .lm-ring { fill: none; }
.lila-mark--ceramic .lm-glow { fill: #ffd8bc; opacity: 0.55; }
.lila-mark--ceramic .lm-mouth { fill: #fbba92; stroke: #fbba92; }
.lila-mark--ceramic .lm-comet { stroke: #fbba92; fill: none; }
.lila-mark--ceramic .lm-head { fill: #ffd2b4; }

/* ─── Cam: açık, arkasını bulanık gösteren küre ─── */
.lila-mark--glass {
    background: radial-gradient(120% 120% at 30% 18%, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.48) 55%, rgba(210, 226, 239, 0.6));
    -webkit-backdrop-filter: blur(12px) saturate(1.7);
    backdrop-filter: blur(12px) saturate(1.7);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.85),
        inset 0 -8px 18px rgba(31, 43, 71, 0.1),
        0 12px 28px -10px rgba(31, 43, 71, 0.4),
        0 2px 6px rgba(31, 43, 71, 0.12);
}

/* Bulanıklık yoksa yarı saydam zemin okunmaz → opak */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .lila-mark--glass {
        background: radial-gradient(120% 120% at 30% 18%, #ffffff, #f3f7fb 55%, #dde8f1);
    }
}

.lila-mark--glass .lm-ring { stroke: #1f2b47; fill: none; }
.lila-mark--glass .lm-eye { fill: #1f2b47; }
.lila-mark--glass .lm-mouth { fill: #e8855a; stroke: #e8855a; }
.lila-mark--glass .lm-comet { stroke: #f2955f; fill: none; }
.lila-mark--glass .lm-head { fill: #f2955f; }
.lila-mark--glass .lm-hi { fill: rgba(255, 255, 255, 0.6); }

/* Koyu tema: cam koyulaşır, çizgiler kremleşir */
html[data-theme="dark"] .lila-mark--glass {
    background: radial-gradient(120% 120% at 30% 18%, rgba(90, 110, 155, 0.6), rgba(32, 46, 82, 0.55) 55%, rgba(10, 16, 32, 0.65));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 -8px 18px rgba(0, 0, 0, 0.25), 0 12px 28px -10px rgba(0, 0, 0, 0.6);
}
html[data-theme="dark"] .lila-mark--glass .lm-ring { stroke: #f4f0e9; }
html[data-theme="dark"] .lila-mark--glass .lm-eye { fill: #f4f0e9; }
html[data-theme="dark"] .lila-mark--glass .lm-mouth { fill: #fbba92; stroke: #fbba92; }
html[data-theme="dark"] .lila-mark--glass .lm-comet { stroke: #fbba92; }
html[data-theme="dark"] .lila-mark--glass .lm-head { fill: #fbba92; }
html[data-theme="dark"] .lila-mark--glass .lm-hi { fill: rgba(255, 255, 255, 0.16); }
html[data-theme="dark"] .lila-mark--ceramic {
    box-shadow: inset -1.5px 1.5px 0 rgba(251, 186, 146, 0.5), 0 0 0 1px rgba(244, 240, 233, 0.14), 0 10px 22px -10px rgba(0, 0, 0, 0.7);
}

/* Odak halkası taşıyıcıda (düğme) çizilir; işaret yalnız görsel */
[data-lila-host]:focus-visible .lila-mark {
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px #1f2b47;
}
