/*
 * KVKK uyumlu çerez bandı + Gizlilik Tercih Platformu (2026-10-13)
 */
.cc-banner, .cc-modal, .cc-fab, .cc-embed-placeholder {
    --cc-primary: var(--color-primary, #293870);
    --cc-secondary: var(--color-secondary, #5fac46);
    --cc-text: var(--color-content, #52545b);
    --cc-border: var(--color-border, #e3e3e4);
    --cc-light: var(--color-light, #f2f3f7);
    font-family: var(--font-primary, "Raleway", sans-serif);
    box-sizing: border-box;
}
.cc-banner *, .cc-modal *, .cc-embed-placeholder * { box-sizing: border-box; }
.cc-banner[hidden], .cc-modal[hidden], .cc-fab[hidden], .cc-modal-notice[hidden] { display: none !important; }

/* ---------- Ortak buton: üç seçenek de eşit görünürlükte ---------- */
.cc-btn {
    appearance: none;
    flex: 1 1 0;
    min-height: 46px;
    padding: 10px 18px;
    border: 2px solid var(--cc-primary);
    border-radius: 10px;
    background: var(--cc-primary);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.cc-btn:hover { background: var(--cc-secondary); border-color: var(--cc-secondary); }
.cc-btn:focus-visible { outline: 3px solid var(--cc-secondary); outline-offset: 2px; }

/* ---------- Bant ---------- */
.cc-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9000;
    padding: 0 16px 16px;
    pointer-events: none;
}
.cc-banner-box {
    pointer-events: auto;
    max-width: 1100px;
    margin: 0 auto;
    padding: 22px 26px 20px;
    background: #fff;
    border: 1px solid var(--cc-border);
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(1, 5, 11, .25);
    color: var(--cc-text);
    user-select: text;
}
.cc-banner-text { margin: 0 0 18px; font-size: 14px; line-height: 1.6; text-align: justify; }
.cc-banner-text a, .cc-row-desc a { color: var(--cc-primary); text-decoration: underline; }
.cc-banner-btns { display: flex; gap: 14px; justify-content: center; }
.cc-banner-btns .cc-btn { max-width: 260px; }

/* ---------- Tercih paneli ---------- */
html.cc-modal-open, html.cc-modal-open body { overflow: hidden; }
.cc-modal {
    position: fixed;
    inset: 0;
    z-index: 9100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.cc-modal-overlay { position: absolute; inset: 0; background: rgba(1, 5, 11, .6); }
.cc-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 920px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, .35);
    color: var(--cc-text);
    user-select: text;
    outline: none;
}
.cc-modal-close {
    position: absolute; top: 10px; right: 12px; z-index: 2;
    width: 38px; height: 38px;
    border: none; border-radius: 50%;
    background: transparent; color: var(--cc-primary);
    font-size: 30px; line-height: 1; cursor: pointer;
}
.cc-modal-close:hover { background: var(--cc-light); }

.cc-modal-head {
    display: grid;
    grid-template-columns: 220px 1fr;
    border-bottom: 1px solid var(--cc-border);
}
.cc-company {
    padding: 22px 20px;
    background: var(--cc-light);
    color: var(--cc-primary);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}
.cc-modal-title { margin: 0; padding: 22px 60px 22px 24px; color: var(--cc-primary); font-size: 26px; font-weight: 700; line-height: 1.2; }

.cc-modal-notice {
    margin: 16px 20px 0;
    padding: 12px 16px;
    border-left: 4px solid var(--cc-secondary);
    border-radius: 6px;
    background: #eef7ea;
    color: #2f5b22;
    font-size: 14px;
    font-weight: 600;
}

.cc-row {
    display: grid;
    grid-template-columns: 220px 1fr 90px;
    border-bottom: 1px solid var(--cc-border);
}
.cc-row-title {
    display: flex; align-items: center; justify-content: center;
    padding: 16px 18px;
    background: var(--cc-light);
    color: var(--cc-primary);
    font-size: 14px; font-weight: 700; text-align: center;
}
.cc-row-desc { padding: 16px 20px; font-size: 13px; line-height: 1.6; text-align: justify; }
.cc-row-switch { display: flex; align-items: center; justify-content: center; padding: 12px; }
.cc-row-info .cc-row-title, .cc-row-info .cc-row-desc { padding-top: 12px; padding-bottom: 12px; }
.cc-always { color: var(--cc-secondary); font-size: 12px; font-weight: 700; text-align: center; line-height: 1.3; }

/* Anahtar (varsayılan: kapalı) */
.cc-switch { position: relative; display: inline-block; width: 52px; height: 28px; cursor: pointer; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.cc-slider { position: absolute; inset: 0; background: #c3c5cc; border-radius: 28px; transition: background .25s; }
.cc-slider::before {
    content: ""; position: absolute; left: 4px; top: 4px;
    width: 20px; height: 20px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    transition: transform .25s;
}
.cc-switch input:checked + .cc-slider { background: var(--cc-secondary); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(24px); }
.cc-switch input:focus-visible + .cc-slider { outline: 3px solid var(--cc-primary); outline-offset: 2px; }

.cc-modal-btns { display: flex; gap: 14px; padding: 20px; }

/* ---------- Sabit çerez ikonu ---------- */
.cc-fab {
    position: fixed; left: 18px; bottom: 18px; z-index: 8900;
    display: flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; padding: 0;
    border: 2px solid #fff; border-radius: 50%;
    background: var(--cc-primary); color: #fff;
    box-shadow: 0 4px 16px rgba(1, 5, 11, .3);
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.cc-fab:hover { background: var(--cc-secondary); transform: scale(1.06); }
.cc-fab:focus-visible { outline: 3px solid var(--cc-secondary); outline-offset: 2px; }

/* Çerez Politikası sayfası: geniş çerez tablosu sayfayı taşırmasın (tablo kendi içinde kayar), uzun linkler satır kırabilsin */
.page-cerez-politikasi .content { min-width: 0; }
.page-cerez-politikasi .numbered-contents a { overflow-wrap: anywhere; }

.cc-footer-link { margin-left: 12px; color: inherit; text-decoration: underline; }

/* ---------- İzin bekleyen gömülü içerik (harita, video) ---------- */
.cc-embed-blocked { position: relative; min-height: 260px; background: var(--cc-light); }
.cc-embed-placeholder {
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: var(--cc-light);
    color: var(--cc-text);
    text-align: center;
}
.cc-embed-inner { max-width: 520px; }
.cc-embed-inner p { margin: 0 0 16px; font-size: 15px; line-height: 1.5; }
.cc-embed-btns { display: flex; gap: 12px; justify-content: center; }

/* ---------- Mobil ---------- */
@media (max-width: 767px) {
    .cc-banner { padding: 0 10px 10px; }
    .cc-banner-box { padding: 16px; border-radius: 14px; }
    .cc-banner-text { font-size: 13px; text-align: left; max-height: 34vh; overflow-y: auto; }
    .cc-banner-btns, .cc-modal-btns, .cc-embed-btns { flex-direction: column; gap: 10px; }
    .cc-banner-btns .cc-btn { max-width: none; }
    .cc-btn { min-height: 44px; font-size: 14px; }

    .cc-modal { padding: 0; align-items: flex-end; }
    .cc-modal-dialog { max-height: 92vh; border-radius: 16px 16px 0 0; }
    .cc-modal-head { grid-template-columns: 1fr; }
    .cc-company { padding: 16px 56px 10px 16px; font-size: 14px; background: #fff; }
    .cc-modal-title { padding: 0 16px 16px; font-size: 21px; }
    .cc-row { grid-template-columns: 1fr auto; }
    .cc-row-title { grid-row: 1; grid-column: 1; justify-content: flex-start; text-align: left; padding: 12px 16px; }
    .cc-row-switch { grid-row: 1; grid-column: 2; padding: 8px 16px 8px 8px; background: var(--cc-light); }
    .cc-row-desc { grid-row: 2; grid-column: 1 / -1; padding: 12px 16px; text-align: left; }
    .cc-row-info .cc-row-switch { display: none; }
    .cc-row-info .cc-row-title { grid-column: 1 / -1; }
    .cc-modal-btns { padding: 16px; }
    .cc-fab { left: 12px; bottom: 12px; width: 44px; height: 44px; }
}
