/* ==========================================================================
   Novaraft — KVKK uyumlu çerez onay/tercih yönetimi (footer.php içinde, tüm sayfalarda)
   Kendi renklerini tanımlar; site chrome'undan bağımsız. Onay verilene kadar banner görünür.
   ========================================================================== */
.nrcc, .nrcc * { box-sizing: border-box; }

/* ---------- Alt banner ---------- */
.nrcc {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1090;
    background: #fff; border-top: 1px solid rgba(11, 34, 57, .10);
    box-shadow: 0 -14px 40px rgba(7, 31, 52, .16);
    transform: translateY(110%); transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.nrcc.show { transform: translateY(0); }
.nrcc-inner {
    width: min(1180px, calc(100% - 32px)); margin: 0 auto;
    display: flex; align-items: center; gap: 20px; padding: 18px 0;
}
.nrcc-ico {
    flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, #0f3854, #0f8ea0); color: #fff; font-size: 22px;
}
.nrcc-text { flex: 1; min-width: 0; }
.nrcc-text strong { display: block; font-size: 15px; color: #0b2239; margin-bottom: 3px; }
.nrcc-text p { margin: 0; font-size: 13px; line-height: 1.5; color: #5b6b7a; }
.nrcc-text a { color: #0f8ea0; font-weight: 700; text-decoration: underline; }
.nrcc-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.nrcc-btn {
    border: 1px solid transparent; border-radius: 12px; padding: 11px 16px;
    font: inherit; font-weight: 800; font-size: 13.5px; cursor: pointer; white-space: nowrap;
    transition: filter .15s ease, background .15s ease, border-color .15s ease;
}
.nrcc-btn-primary { background: linear-gradient(135deg, #ffb000, #ff7a1a); color: #281200; }
.nrcc-btn-primary:hover { filter: brightness(1.05); }
.nrcc-btn-ghost { background: rgba(15, 142, 160, .10); color: #0f6f7e; }
.nrcc-btn-ghost:hover { background: rgba(15, 142, 160, .18); }
.nrcc-btn-outline { background: #fff; border-color: rgba(11, 34, 57, .18); color: #33475a; }
.nrcc-btn-outline:hover { border-color: rgba(11, 34, 57, .4); }

/* ---------- Tercih modalı ---------- */
.nrcc-modal {
    position: fixed; inset: 0; z-index: 1095; display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(7, 20, 34, .55); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s;
}
.nrcc-modal.show { opacity: 1; visibility: visible; }
.nrcc-panel {
    width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: hidden;
    background: #fff; border-radius: 22px; box-shadow: 0 30px 70px rgba(7, 31, 52, .34);
    display: flex; flex-direction: column; transform: translateY(14px) scale(.98); transition: transform .22s ease;
}
.nrcc-modal.show .nrcc-panel { transform: translateY(0) scale(1); }
.nrcc-head {
    display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 16px;
    background: linear-gradient(135deg, #0b2239, #0f3854 55%, #0f8ea0); color: #fff;
}
.nrcc-head-txt { flex: 1; }
.nrcc-head-txt strong { display: block; font-size: 18px; }
.nrcc-head-txt p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.nrcc-close { background: transparent; border: none; color: rgba(255, 255, 255, .82); font-size: 24px; line-height: 1; cursor: pointer; padding: 0 2px; }
.nrcc-close:hover { color: #fff; }

.nrcc-body { padding: 8px 22px; overflow-y: auto; }
.nrcc-cat {
    display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center;
    padding: 16px 0; border-bottom: 1px solid rgba(11, 34, 57, .08);
}
.nrcc-cat:last-child { border-bottom: none; }
.nrcc-cat h4 { margin: 0; font-size: 14.5px; color: #0b2239; }
.nrcc-cat p { margin: 4px 0 0; grid-column: 1 / -1; font-size: 12.5px; line-height: 1.5; color: #5b6b7a; }
.nrcc-always { font-size: 12px; font-weight: 800; color: #147a44; }

/* switch */
.nrcc-switch { position: relative; width: 46px; height: 26px; flex: 0 0 46px; }
.nrcc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.nrcc-slider {
    position: absolute; inset: 0; border-radius: 999px; background: #cdd7df; transition: background .2s ease;
}
.nrcc-slider::before {
    content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
    background: #fff; box-shadow: 0 2px 5px rgba(7, 31, 52, .28); transition: transform .2s ease;
}
.nrcc-switch input:checked + .nrcc-slider { background: linear-gradient(135deg, #11a78c, #0f8ea0); }
.nrcc-switch input:checked + .nrcc-slider::before { transform: translateX(20px); }
.nrcc-switch input:disabled + .nrcc-slider { background: #9fd8c9; cursor: not-allowed; }
.nrcc-switch input:focus-visible + .nrcc-slider { outline: 3px solid rgba(15, 142, 160, .5); outline-offset: 2px; }

.nrcc-foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 22px; border-top: 1px solid rgba(11, 34, 57, .08); }
.nrcc-foot .nrcc-btn { flex: 1; min-width: 130px; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .nrcc-inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 0; }
    .nrcc-ico { display: none; }
    .nrcc-actions { flex-wrap: wrap; }
    .nrcc-actions .nrcc-btn { flex: 1; min-width: 120px; }
    .nrcc-foot { flex-direction: column; }
}
@media print { .nrcc, .nrcc-modal { display: none !important; } }
