/* === KVKK Cookie Banner — Editorial Luxe === */
/* Embedded as <link rel="stylesheet" href="/cookies.css"> on every page */

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 760px;
  margin: 0 auto;
  background: #161616;
  color: #FAFAF6;
  border-radius: 18px;
  padding: 22px 26px;
  box-shadow: 0 24px 64px -16px rgba(0,0,0,0.55);
  z-index: 9999;
  display: none;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  border: 1px solid rgba(255,255,255,0.06);
  animation: cookieIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.cookie-banner.show { display: block; }

@keyframes cookieIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-banner .row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-banner .text {
  flex: 1 1 320px;
  min-width: 280px;
}
.cookie-banner .title {
  font-weight: 600;
  font-size: 14.5px;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.cookie-banner .desc {
  color: rgba(255,255,255,0.62);
  font-size: 13px;
  line-height: 1.5;
}
.cookie-banner .desc a {
  color: #B8923A;
  text-decoration: none;
  border-bottom: 1px dotted rgba(184,146,58,0.5);
}
.cookie-banner .desc a:hover { color: #d4b27a; }

.cookie-banner .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.cookie-banner button {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.cookie-banner button:hover { transform: translateY(-1px); }
.cookie-banner .btn-accept {
  background: #B8923A;
  color: #161616;
  font-weight: 600;
}
.cookie-banner .btn-accept:hover { background: #d4b27a; }
.cookie-banner .btn-essential {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.18);
}
.cookie-banner .btn-essential:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.cookie-banner .btn-settings {
  background: transparent;
  color: rgba(255,255,255,0.55);
  border: 0;
  font-size: 12.5px;
  padding: 10px 12px;
}
.cookie-banner .btn-settings:hover { color: #fff; }

@media (max-width: 560px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 18px 20px;
    border-radius: 14px;
  }
  .cookie-banner .actions { width: 100%; }
  .cookie-banner .btn-accept,
  .cookie-banner .btn-essential { flex: 1; text-align: center; }
}

/* === Cookie Settings Modal === */
.cookie-modal-bg {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: 'Inter', -apple-system, sans-serif;
  animation: cookieIn 0.25s ease-out both;
}
.cookie-modal-bg.show { display: flex; }
.cookie-modal {
  background: #FAFAF6;
  color: #0A0A0A;
  border-radius: 22px;
  max-width: 520px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 32px;
  border: 1px solid rgba(0,0,0,0.06);
}
.cookie-modal h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin-bottom: 8px;
}
.cookie-modal > p {
  font-size: 14px;
  color: #6B6B6B;
  line-height: 1.55;
  margin-bottom: 22px;
}
.cookie-modal .toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #E2DFDA;
}
.cookie-modal .toggle-row:last-of-type { border-bottom: 1px solid #E2DFDA; }
.cookie-modal .toggle-row h4 {
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.cookie-modal .toggle-row p {
  font-size: 12.5px;
  color: #6B6B6B;
  line-height: 1.5;
}
.cookie-modal .switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 4px;
}
.cookie-modal .switch input {
  opacity: 0;
  width: 100%; height: 100%;
  position: absolute;
  cursor: pointer;
  margin: 0;
}
.cookie-modal .switch .track {
  position: absolute; inset: 0;
  background: #E2DFDA;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.cookie-modal .switch .track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: white;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.cookie-modal .switch input:checked + .track {
  background: #B8923A;
}
.cookie-modal .switch input:checked + .track::after {
  transform: translateX(18px);
}
.cookie-modal .switch input:disabled + .track {
  background: #B8923A;
  opacity: 0.55;
  cursor: not-allowed;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.cookie-modal .modal-actions button {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  flex: 1;
  min-width: 140px;
}
.cookie-modal .modal-actions .btn-save {
  background: #0A0A0A; color: #FAFAF6; font-weight: 600;
}
.cookie-modal .modal-actions .btn-accept-all {
  background: #B8923A; color: #161616; font-weight: 600;
}
.cookie-modal .modal-actions .btn-cancel {
  background: transparent;
  color: #6B6B6B;
  border: 1px solid #E2DFDA;
}

/* === Cookie Settings Link (used in footer if you want to re-open) === */
.cookie-relink {
  background: none; border: 0; padding: 0;
  font: inherit; cursor: pointer;
  color: inherit;
  border-bottom: 1px dotted currentColor;
  opacity: 0.7;
  transition: opacity 0.18s;
}
.cookie-relink:hover { opacity: 1; }
