/* KVKK Çerez Onay Paneli */
#kvkkConsent {
    --kc-bg: #ffffff;
    --kc-text: #1f1f1f;
    --kc-muted: #5c5c5c;
    --kc-border: #e2e2e2;
    --kc-accent: #1f1f1f;
    --kc-accent-text: #ffffff;
    font-size: 15px;
    line-height: 1.5;
    color: var(--kc-text);
}

#kvkkConsent [hidden] { display: none !important; }

#kvkkConsent .kc-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 960px;
    margin: 0 auto;
    background: var(--kc-bg);
    border: 1px solid var(--kc-border);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
    padding: 20px 24px;
    z-index: 2147483000;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: center;
}

#kvkkConsent .kc-banner .kc-body { flex: 1 1 420px; min-width: 0; }
#kvkkConsent .kc-title { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
#kvkkConsent .kc-text, #kvkkConsent .kc-text p { margin: 0; color: var(--kc-muted); font-size: 14px; }
#kvkkConsent .kc-text h3 { display: none; }
#kvkkConsent a { color: var(--kc-text); text-decoration: underline; }

#kvkkConsent .kc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#kvkkConsent .kc-btn {
    appearance: none;
    border: 1px solid var(--kc-accent);
    background: var(--kc-bg);
    color: var(--kc-accent);
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.2;
}

/* "Kabul" ve "Reddet" eşit ağırlıkta gösterilir (KVKK Çerez Rehberi) */
#kvkkConsent .kc-btn-primary {
    background: var(--kc-accent);
    color: var(--kc-accent-text);
}
#kvkkConsent .kc-btn:hover { opacity: .85; }
#kvkkConsent .kc-btn:focus-visible { outline: 2px solid #0d6efd; outline-offset: 2px; }

#kvkkConsent .kc-link-btn {
    background: none;
    border: 0;
    padding: 9px 4px;
    font-size: 14px;
    color: var(--kc-text);
    text-decoration: underline;
    cursor: pointer;
}

/* Tercih paneli */
#kvkkConsent .kc-panel {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 2147483001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#kvkkConsent .kc-dialog {
    background: var(--kc-bg);
    border-radius: 12px;
    max-width: 620px;
    width: 100%;
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}

#kvkkConsent .kc-dialog-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--kc-border);
}
#kvkkConsent .kc-dialog-head .kc-title { margin: 0; }
#kvkkConsent .kc-close {
    background: none;
    border: 0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--kc-muted);
}

#kvkkConsent .kc-dialog-body { padding: 8px 22px; overflow-y: auto; }

#kvkkConsent .kc-cat {
    padding: 14px 0;
    border-bottom: 1px solid var(--kc-border);
}
#kvkkConsent .kc-cat:last-child { border-bottom: 0; }
#kvkkConsent .kc-cat-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
#kvkkConsent .kc-cat-title { font-weight: 700; font-size: 15px; margin: 0; }
#kvkkConsent .kc-cat p { margin: 6px 0 0; color: var(--kc-muted); font-size: 13.5px; }
#kvkkConsent .kc-always { font-size: 12.5px; font-weight: 600; color: #198754; white-space: nowrap; }

/* Anahtar (switch) */
#kvkkConsent .kc-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; }
#kvkkConsent .kc-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
#kvkkConsent .kc-slider {
    position: absolute; inset: 0; cursor: pointer;
    background: #c7c7c7; border-radius: 24px; transition: background .2s;
}
#kvkkConsent .kc-slider::before {
    content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; transition: transform .2s;
}
#kvkkConsent .kc-switch input:checked + .kc-slider { background: var(--kc-accent); }
#kvkkConsent .kc-switch input:checked + .kc-slider::before { transform: translateX(20px); }
#kvkkConsent .kc-switch input:focus-visible + .kc-slider { outline: 2px solid #0d6efd; outline-offset: 2px; }

#kvkkConsent .kc-dialog-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 22px;
    border-top: 1px solid var(--kc-border);
}

body.kc-open { overflow: hidden; }

/* Onay bekleyen harici içerik (harita, video) yer tutucusu */
.kc-embed { position: relative; }
.kc-embed .kc-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    min-height: 260px;
    height: 100%;
    padding: 24px;
    background: #f1f1f1;
    color: #333;
    font-size: 14px;
    border-radius: 8px;
}
.kc-embed .kc-placeholder .kc-btn {
    appearance: none;
    border: 1px solid #1f1f1f;
    background: #1f1f1f;
    color: #fff;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.ratio > .kc-embed, .ratio > .kc-embed > .kc-placeholder { position: absolute; inset: 0; }
.ratio > .kc-embed > iframe { width: 100%; height: 100%; border: 0; }

/* Eski çerez bildirimi kalıntısı (varsa) gizlensin */
#cookie { display: none !important; }

@media (max-width: 600px) {
    #kvkkConsent .kc-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px; }
    #kvkkConsent .kc-actions { width: 100%; }
    #kvkkConsent .kc-actions .kc-btn { flex: 1 1 auto; }
}

/* Tercih kaydedildikten sonra görünen "Çerez Ayarları" butonu (sol alt) */
#kvkkConsent .kc-fab {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 2147482999;
    display: inline-flex;
    align-items: center;
    gap: 0;
    height: 44px;
    min-width: 44px;
    padding: 0 11px;
    border: 1px solid var(--kc-border);
    border-radius: 22px;
    background: var(--kc-bg);
    color: var(--kc-text);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    transition: gap .2s, padding .2s;
}
#kvkkConsent .kc-fab svg { flex: none; }
#kvkkConsent .kc-fab .kc-fab-text {
    max-width: 0;
    white-space: nowrap;
    overflow: hidden;
    transition: max-width .25s;
}
#kvkkConsent .kc-fab:hover, #kvkkConsent .kc-fab:focus-visible { gap: 8px; padding-right: 14px; }
#kvkkConsent .kc-fab:hover .kc-fab-text, #kvkkConsent .kc-fab:focus-visible .kc-fab-text { max-width: 220px; }
#kvkkConsent .kc-fab:focus-visible { outline: 2px solid #0d6efd; outline-offset: 2px; }

@media (max-width: 600px) {
    #kvkkConsent .kc-fab { left: 10px; bottom: 10px; height: 40px; min-width: 40px; padding: 0 9px; }
}
@media print {
    #kvkkConsent { display: none !important; }
}
