/* =========================
   COOKIE CONSENT
========================= */

.ck-banner[hidden],
.ck-modal[hidden] { display: none !important; }

.ck-banner,
.ck-modal,
.ck-banner *,
.ck-modal * { box-sizing: border-box; }

/* ---------- BANNER ---------- */
.ck-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 99998;
  width: min(1100px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  border-radius: 22px;
  color: #0b2a4a;
  background: linear-gradient(160deg, #ffffff 0%, #e8f9ff 100%);
  border: 1px solid rgba(14, 167, 239, 0.25);
  box-shadow: 0 20px 60px rgba(7, 60, 100, 0.28);
  animation: ck-up 0.45s ease both;
}

.ck-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, #00e8cd, #0ea7ef);
}

.ck-banner__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #0b2a4a;
}

.ck-banner__text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #3d5f7a;
}

.ck-banner__text a {
  color: #0b7fc0;
  font-weight: 700;
  text-decoration: underline;
}

.ck-banner__actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

@keyframes ck-up {
  from { opacity: 0; transform: translate(-50%, 30px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- BUTONLAR ---------- */
.ck-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ck-btn:hover { transform: translateY(-2px); }
.ck-btn:focus-visible { outline: 3px solid #0b2a4a; outline-offset: 2px; }

.ck-btn--primary {
  color: #fff;
  border: none;
  background: linear-gradient(135deg, #00e8cd, #0ea7ef);
  box-shadow: 0 10px 24px rgba(14, 167, 239, 0.4);
}

.ck-btn--outline {
  color: #0b5f9e;
  background: #fff;
  border: 2px solid rgba(14, 167, 239, 0.5);
}

.ck-btn--ghost {
  color: #0b2a4a;
  background: rgba(14, 167, 239, 0.1);
  border: 2px solid transparent;
}

.ck-btn--ghost:hover,
.ck-btn--outline:hover { background: rgba(14, 167, 239, 0.18); }

/* ---------- MODAL ---------- */
.ck-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ck-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 30, 50, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.ck-modal__box {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(620px, 100%);
  max-height: calc(100vh - 32px);
  border-radius: 24px;
  overflow: hidden;
  color: #0b2a4a;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: ck-pop 0.3s ease both;
}

@keyframes ck-pop {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.ck-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  color: #fff;
  background: linear-gradient(135deg, #00e8cd, #0ea7ef);
}

.ck-modal__head h2 { margin: 0; font-size: 20px; font-weight: 800; color: #fff; }

.ck-modal__x {
  width: 38px; height: 38px;
  border: none;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.ck-modal__body {
  padding: 22px 26px;
  overflow-y: auto;
}

.ck-modal__intro {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #3d5f7a;
}

.ck-cat {
  padding: 16px 18px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: linear-gradient(160deg, #ffffff, #eaf8ff);
  border: 1px solid rgba(14, 167, 239, 0.2);
}

.ck-cat__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ck-cat strong { font-size: 15px; color: #0b2a4a; }
.ck-cat p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: #3d5f7a; }

.ck-modal__foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 18px 26px;
  border-top: 1px solid rgba(14, 167, 239, 0.15);
  background: #f4fcff;
}

/* ---------- SWITCH ---------- */
.ck-switch { position: relative; flex-shrink: 0; width: 50px; height: 28px; cursor: pointer; }
.ck-switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: inherit; }

.ck-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c3d4df;
  transition: background 0.25s ease;
}

.ck-switch span::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease;
}

.ck-switch input:checked + span { background: linear-gradient(135deg, #00e8cd, #0ea7ef); }
.ck-switch input:checked + span::after { transform: translateX(22px); }
.ck-switch input:focus-visible + span { outline: 3px solid #0b2a4a; outline-offset: 2px; }
.ck-switch.is-locked { opacity: 0.6; cursor: not-allowed; }

/* ---------- FOOTER LİNKİ ---------- */
[data-cookie-settings] { cursor: pointer; }

/* ---------- MOBİL ---------- */
@media (max-width: 768px) {
  .ck-banner {
    bottom: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px 18px;
    width: calc(100% - 20px);
    border-radius: 18px;
  }

  .ck-banner__actions { flex-direction: column; }
  .ck-banner__actions .ck-btn { width: 100%; }

  .ck-modal { align-items: flex-end; padding: 0; }
  .ck-modal__box { width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; }
  .ck-modal__foot { flex-direction: column; }
  .ck-modal__foot .ck-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ck-banner, .ck-modal__box { animation: none; }
  .ck-btn, .ck-switch span, .ck-switch span::after { transition: none; }
}
