/*
| Acilis animasyonu ve imlec (sahip secimi 20 Kas: docs/panel-konseptleri/imlec-acilis — acilis "A1", imlec "V2").
| Acilis: oturumun ilk sayfasinda (sessionStorage) beyaz perde, logo + ince yesil cizgi dolar, perde yukari kalkar. html[data-acilis]
|   _bas.php'deki satir ici betikle ilk boyamadan once eklenir; perde html::before (zemin + logo) ve html::after (cizgi) ile cizilir,
|   isaretleme gerekmez. Bitince data-acilis="kalk" (perde yukari), sonra oznitelik kalkar (sinif degil: tema html sinifini bastan yazar) (acilis-imlec.js).
| Imlec: yalniz ince isaretcili (fare) ve "hareketi azalt" tercihi olmayan cihazlarda; lacivert nokta + yesil haleli halka, baglanti ve
|   gorsel ustunde halka yumusak yesil mercek olur. Yazi alanlarinda sistem imleci kalir. Panelden kapatilabilir (html[data-imlec="0"]).
*/
:root {
    --ac-lac: #011d3a;
    --ac-yesil: #a3b621;
}

/* ---------- Acilis ---------- */
html[data-acilis]::before,
html[data-acilis]::after {
    content: "";
    position: fixed;
    z-index: 2147483000;
    pointer-events: none;
}

/* perde: zemin + logo + gri cizgi yolu; yesil dolgu ::after'da transform ile (sayfa betikleri ana is parcacigini mesgul etse de akar) */
html[data-acilis]::before {
    inset: 0;
    background:
        linear-gradient(#edf0f4, #edf0f4) center calc(50% + 40px) / 170px 2px no-repeat,
        var(--ac-logo, none) center calc(50% - 6px) / 170px auto no-repeat,
        #fff;
    transition: transform .7s cubic-bezier(.7, 0, .2, 1);
}

html[data-acilis]::after {
    left: 50%;
    top: calc(50% + 39px);
    width: 170px;
    height: 2px;
    margin-left: -85px;
    background: var(--ac-yesil);
    transform-origin: left center;
    transform: scaleX(0);
    animation: ac-cizgi 1.1s .2s cubic-bezier(.6, 0, .2, 1) forwards;
    transition: opacity .25s;
}

html[data-acilis="kalk"]::before {
    transform: translateY(-100%);
}

html[data-acilis="kalk"]::after {
    opacity: 0;
}

html[data-acilis] body {
    overflow: hidden;
}

@keyframes ac-cizgi {
    to { transform: scaleX(1); }
}

/* ---------- Imlec ---------- */
.ac-imlec,
.ac-hale {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 2147483001;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0;
    transition: opacity .2s;
    will-change: transform;
}

html[data-imlec-acik] .ac-imlec,
html[data-imlec-acik] .ac-hale {
    opacity: 1;
}

.ac-imlec {
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    background: var(--ac-lac);
    transition: opacity .2s, background-color .25s;
}

.ac-hale {
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 1.5px solid rgba(163, 182, 33, .8);
    box-shadow: 0 0 0 6px rgba(163, 182, 33, .08);
    transition: opacity .2s, width .35s cubic-bezier(.2, .8, .2, 1), height .35s cubic-bezier(.2, .8, .2, 1), margin .35s cubic-bezier(.2, .8, .2, 1), background .3s, border-color .3s, box-shadow .3s;
}

.ac-hale.ac-buyuk {
    width: 70px;
    height: 70px;
    margin: -35px 0 0 -35px;
    border-color: var(--ac-yesil);
    background: radial-gradient(circle, rgba(163, 182, 33, .22), rgba(163, 182, 33, .06) 70%);
    box-shadow: 0 0 0 10px rgba(163, 182, 33, .07);
    -webkit-backdrop-filter: contrast(1.08) saturate(1.3);
    backdrop-filter: contrast(1.08) saturate(1.3);
}

.ac-imlec.ac-buyuk {
    background: var(--ac-yesil);
}

/* koyu bolumlerde nokta beyaz */
.ac-imlec.ac-koyu {
    background: #fff;
}

.ac-imlec.ac-gizli,
.ac-hale.ac-gizli {
    opacity: 0 !important;
}

/* imlec acikken sistem imleci yalniz yazi alanlarinda */
html[data-imlec-acik],
html[data-imlec-acik] body,
html[data-imlec-acik] a,
html[data-imlec-acik] button,
html[data-imlec-acik] [role="button"],
html[data-imlec-acik] label,
html[data-imlec-acik] summary {
    cursor: none;
}

html[data-imlec-acik] input,
html[data-imlec-acik] textarea,
html[data-imlec-acik] select,
html[data-imlec-acik] [contenteditable="true"] {
    cursor: auto;
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
    .ac-imlec,
    .ac-hale {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-acilis]::before,
    html[data-acilis]::after {
        display: none;
    }

    html[data-acilis] body {
        overflow: auto;
    }
}

/* 21 Kas: imlec ust katmanda (popover): tarayicinin popover varsayilanlari (kenarlik, zemin, ic bosluk, tasma) sifirlanir */
.ac-imlec[popover],
.ac-hale[popover] {
    right: auto;
    bottom: auto;
    padding: 0;
    overflow: visible;
    color: inherit;
}

.ac-imlec[popover] {
    border: 0;
}

.ac-hale[popover]:not(.ac-buyuk) {
    background: transparent;
}
