/* ═══════════════════════════════════════════════════════════
   Herta — onay katmanı  ·  assets/css/consent.css
   Sol altta duran, içeriği kapatmayan ince bir panel.
   Dock (orta) ve iletişim düğmesi (sağ) ile çakışmaz.
   ═══════════════════════════════════════════════════════════ */

.cc {
  position: fixed;
  left: clamp(16px, 1.6vw, 26px);
  bottom: clamp(16px, 1.6vw, 26px);
  z-index: 96;
  width: min(384px, calc(100vw - 32px));
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out);
}
.cc.is-in { opacity: 1; transform: none; pointer-events: auto; }

.cc__box {
  /* #0e0e0e, #000 DEĞİL. Panel koyu bir sayfanın üstünde
     duruyorsa var(--black) gövde zeminiyle BİREBİR aynı olur
     ve panel kutu gibi değil havada duran bir metin gibi
     görünür. Kapı bunu kendi içinde ezmek zorunda kalmıştı;
     ortak sayfalar koyulaşınca aynı ezme dört kopya daha
     olacaktı. Açık zeminde #0e0e0e ile #000 arasındaki fark
     göz için sıfır — düzeltme hiçbir yeri bozmuyor. */
  background: #0e0e0e;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  padding: clamp(16px, 1.3vw, 20px);
}

.cc__label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  margin-bottom: 10px;
}
.cc__text {
  font-size: clamp(12.5px, 1vw, 14px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
}

/* ── ayrıntı ──────────────────────────────────────────────── */
.cc__detail {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.cc__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}
.cc__row + .cc__row { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.cc__rowName {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.01em;
}
.cc__rowNote {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.48);
}
.cc__lock {
  flex: none;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

/* anahtar: kare, çerçeveli, markanın diliyle */
.cc__switch {
  flex: none;
  width: 34px;
  height: 18px;
  padding: 2px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: border-color 0.35s ease, background 0.35s ease;
}
.cc__switch span {
  display: block;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.55);
  transition: transform 0.4s var(--ease-out), background 0.35s ease;
}
.cc__switch.is-on { border-color: rgba(255, 255, 255, 0.75); }
.cc__switch.is-on span { transform: translateX(16px); background: var(--white); }
.cc__switch:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ── eylemler ─────────────────────────────────────────────── */
.cc__acts {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.cc__btn {
  flex: 1 1 auto;
  min-height: 36px;
  padding: 0 14px;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--white);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.35s var(--ease-out), border-color 0.35s ease;
}
.cc__btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); }
/* kabul ve ret aynı ağırlıkta: yalnız dolgu farkı, boyut farkı yok */
.cc__btn--primary { background: var(--white); color: var(--black); border-color: var(--white); }
.cc__btn--primary:hover { background: rgba(255, 255, 255, 0.88); }
.cc__btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.cc__more {
  flex: none;
  background: none;
  border: 0;
  padding: 0 4px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.35s ease;
}
.cc__more:hover { color: rgba(255, 255, 255, 0.85); }

.cc__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.48);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 1px;
  transition: color 0.35s ease, border-color 0.35s ease;
}
.cc__link:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.6); }

@media (max-width: 860px) {
  .cc {
    left: 14px;
    right: 14px;
    bottom: 72px;          /* iletişim düğmesinin üstünde kalsın */
    width: auto;
  }
  .cc__acts { gap: 8px; }
  .cc__btn { flex: 1 1 46%; }
}

@media (prefers-reduced-motion: reduce) {
  .cc, .cc__switch, .cc__switch span, .cc__btn, .cc__link { transition: none; }
}
