/* ============================================================
   SPORSOFT — çerez bandı ve tercih merkezi (koyu tema)
   Hem landing (styles.css) hem yasal sayfalar (_sablon.css) bu
   dosyayı yükler; semantik token'ları kullanır.
   ============================================================ */

.ck-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom));
  background: rgba(15, 15, 15, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--hairline, var(--line));
  box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.65);
  animation: ckUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.ck-bar[hidden] { display: none; }
@keyframes ckUp { from { transform: translateY(100%); } }

.ck-bar-in {
  width: min(1120px, 100% - 44px);
  margin-inline: auto;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.ck-bar p {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.ck-bar a { color: var(--text-link); text-decoration: underline; text-underline-offset: 3px; }
.ck-bar a:hover { color: var(--brand-text); }
.ck-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.ck-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-xs, 8px);
  background: var(--surface-base);
  color: var(--text-primary);
  font: inherit; font-size: 0.86rem; font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.ck-btn:hover { border-color: var(--brand-border); color: var(--brand-text); background: var(--brand-surface); }
.ck-btn:active { transform: scale(0.97); }
.ck-btn-solid {
  background: var(--brand-fill);
  border-color: var(--brand-fill);
  color: var(--text-on-fill);
  box-shadow: var(--shadow-xs);
}
.ck-btn-solid:hover { background: var(--brand-fill-hover); border-color: var(--brand-fill-hover); color: var(--text-on-fill); }
.ck-btn-quiet {
  border-color: transparent;
  background: none;
  color: var(--text-tertiary);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding-inline: 8px;
}
.ck-btn-quiet:hover { color: var(--brand-text); border-color: transparent; background: none; }

/* ---------- tercih merkezi ---------- */
.ck-modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.ck-modal[hidden] { display: none; }
.ck-back {
  position: absolute; inset: 0;
  background: var(--scrim, rgba(0, 0, 0, 0.32));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ck-box {
  position: relative;
  width: min(540px, 100%);
  max-height: min(86vh, 720px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 22px;
  background: var(--surface-base);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-lg);
  animation: ckIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes ckIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } }

.ck-box h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 8px;
  padding-right: 40px;
  color: var(--text-primary);
}
.ck-lead { font-size: 0.86rem; color: var(--text-secondary); margin: 0 0 20px; }
.ck-lead a { color: var(--text-link); text-decoration: underline; text-underline-offset: 3px; }

.ck-x {
  position: absolute; top: 14px; right: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border-control); border-radius: 9px;
  background: var(--surface-base);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.ck-x:hover { color: var(--brand-text); border-color: var(--brand-border); }

.ck-cat {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}
.ck-cat-text { flex: 1; min-width: 0; }
.ck-cat h3 {
  font-size: 0.95rem; font-weight: 600; margin: 0 0 4px;
  color: var(--text-primary);
}
.ck-cat p { font-size: 0.82rem; color: var(--text-secondary); margin: 0; line-height: 1.55; }
.ck-cat-basis {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.64rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-top: 6px;
}

.ck-switch { position: relative; flex: 0 0 auto; width: 46px; height: 26px; margin-top: 2px; }
.ck-switch input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.ck-switch span {
  position: absolute; inset: 0;
  border: 1px solid var(--border-control); border-radius: 13px;
  background: var(--surface-sunken);
  transition: background 0.2s, border-color 0.2s;
  pointer-events: none;
}
.ck-switch span::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--text-tertiary);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s;
}
.ck-switch input:checked + span { background: var(--brand-fill); border-color: var(--brand-fill); }
.ck-switch input:checked + span::after { transform: translateX(20px); background: var(--text-on-fill); }
.ck-switch input:focus-visible + span { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.ck-switch input:disabled { cursor: not-allowed; }
.ck-switch input:disabled + span { opacity: 0.55; }

.ck-foot {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.ck-foot .ck-btn { flex: 1 1 auto; }

@media (max-width: 620px) {
  .ck-actions { width: 100%; }
  .ck-actions .ck-btn { flex: 1 1 auto; }
}
