/* ==========================================================================
   DGR Web v10 — Çerez ve tarayıcı depolaması tercih bildirimi (partials/consent.php)
   Sol altta sabit, sade tek kart; engelleyici perde yok. "Reddet" ve "Kabul et" aynı boyut ve görünürlükte.
   Yalnızca tokenlar; blur yok. Davranış: assets/js/front/consent.js · Sınıf öneki: cs-
   ========================================================================== */

.cs {
    position: fixed;
    inset-inline-start: max(1rem, env(safe-area-inset-left));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 90;
    width: min(26rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    border: 1px solid var(--line-2);
    border-radius: var(--radius, 14px);
    background: var(--surface);
    color: var(--text-2);
    box-shadow: var(--shadow-md, 0 18px 40px -24px rgb(0 0 0 / 0.6));
    /* Giriş yalnız kayma (opaklık geçişi yok): metin her an tam kontrastlı kalır (axe AA) */
    transform: translateY(calc(100% + 2rem));
    transition: transform 0.32s var(--ease-out, ease);
}

.cs[hidden] {
    display: none;
}

.cs.is-in {
    transform: none;
}

.cs:focus {
    outline: none;
}

.cs:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* İnce marka çizgisi: kartın üst kenarı */
.cs::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: var(--brand);
    border-radius: var(--radius, 14px) var(--radius, 14px) 0 0;
}

.cs__inner {
    display: grid;
    gap: 0.85rem;
    padding: 1.35rem 1.35rem 1.25rem;
}

.cs__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--text);
}

.cs__text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.cs__sum {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--brand-700);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.cs__sum::-webkit-details-marker {
    display: none;
}

.cs__sum:focus-visible,
.cs a:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 2px;
}

.cs__chev {
    width: 0.9rem;
    height: 0.9rem;
    transition: transform 0.2s var(--ease);
}

.cs__more[open] .cs__chev {
    transform: rotate(180deg);
}

.cs__list {
    display: grid;
    gap: 0.6rem;
    margin: 0.75rem 0 0;
    padding: 0.75rem 0 0;
    list-style: none;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
    line-height: 1.55;
}

.cs__list b {
    color: var(--text);
}

.cs__list code {
    font-family: var(--mono);
    font-size: 0.9em;
    color: var(--text);
}

.cs__links {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
}

.cs a {
    color: var(--brand-700);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.cs__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

/* Eşit görünürlük: iki düğme de aynı boyut, aynı kenarlık, aynı dolgu */
.cs__btn {
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid var(--line-2);
    background: var(--surface-2);
    color: var(--text);
    font-weight: 600;
}

.cs__btn:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--text);
}

.cs__btn.is-current {
    border-color: var(--brand);
}

@media (max-width: 30rem) {
    .cs {
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
        bottom: max(0.75rem, env(safe-area-inset-bottom));
    }

    .cs__inner {
        padding: 1.1rem 1rem 1rem;
    }
}

html[data-motion="off"] .cs,
html[data-motion="off"] .cs__chev {
    transition: none;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .cs,
    .cs__chev {
        transition: none;
        transform: none;
    }
}

@media print {
    .cs {
        display: none !important;
    }
}
