/* =========================================================
   Cookie Consent Banner & Detail Panel — Vysoká Chalupa
   ========================================================= */

/* ── Keyframes ──────────────────────────────────────────── */
@keyframes ckSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes ckSlideDown {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(100%); opacity: 0; }
}

@keyframes ckModalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes ckBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Detail modal overlay ────────────────────────────────── */
.ck-detail {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10,8,6,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  animation: ckBackdropIn 0.2s ease-out both;
}

.ck-detail--open {
  display: flex;
}

.ck-detail__inner {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(10,8,6,.28), 0 4px 16px rgba(10,8,6,.1);
  width: 100%;
  max-width: 500px;
  padding: 32px 28px 28px;
  position: relative;
  animation: ckModalIn 0.25s ease-out both;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

/* Close button */
.ck-detail__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(10,8,6,.06);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b6560;
  transition: background .18s, color .18s;
  flex-shrink: 0;
}
.ck-detail__close:hover {
  background: rgba(10,8,6,.12);
  color: #0a0806;
}

.ck-detail__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #0a0806;
  margin: 0 0 20px;
  padding-right: 40px;
}

/* Category rows */
.ck-cat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(10, 8, 6, 0.07);
}

.ck-cat:last-child {
  border-bottom: none;
}

.ck-cat__body {
  flex: 1;
  min-width: 0;
}

.ck-cat__name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #0a0806;
  margin: 0 0 2px;
}

.ck-cat__desc {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #6b6560;
  margin: 0;
  line-height: 1.5;
}

/* Toggle switch */
.ck-toggle {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 24px;
}

.ck-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.ck-toggle__track {
  position: absolute;
  inset: 0;
  background: #d0cdc9;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ck-toggle__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform 0.2s ease;
}

.ck-toggle input:checked + .ck-toggle__track {
  background: #b48e5a;
}

.ck-toggle input:checked + .ck-toggle__track::after {
  transform: translateX(18px);
}

.ck-toggle input:disabled + .ck-toggle__track {
  cursor: not-allowed;
  opacity: 0.7;
}

.ck-toggle input:focus-visible + .ck-toggle__track {
  outline: 2px solid #b48e5a;
  outline-offset: 2px;
}

/* ── Main Banner ─────────────────────────────────────────── */
.ck-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(10, 8, 6, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(180, 142, 90, 0.2);
  padding: 18px 0;
  animation: ckSlideUp 0.4s ease-out both;
}

.ck-bar--hiding {
  animation: ckSlideDown 0.3s ease-in both;
}

.ck-bar__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* Text side */
.ck-bar__text {
  flex: 1;
  min-width: 220px;
}

.ck-bar__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.ck-bar__icon {
  color: #b48e5a;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.ck-bar__title {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #f8f5f0;
  margin: 0;
  letter-spacing: .01em;
}

.ck-bar__desc {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(248, 245, 240, 0.6);
  margin: 0;
  line-height: 1.55;
}

.ck-bar__desc a {
  color: rgba(248, 245, 240, 0.75);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.ck-bar__desc a:hover {
  color: #b48e5a;
}

/* Buttons side */
.ck-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Accept all — solid gold */
.ck-btn-accept {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 9px 20px;
  background: #b48e5a;
  color: #0a0806;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.ck-btn-accept:hover {
  background: #c9a36a;
}

.ck-btn-accept:active {
  transform: scale(0.97);
}

/* Reject all — outline light */
.ck-btn-reject {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .03em;
  padding: 8px 18px;
  background: transparent;
  color: rgba(248, 245, 240, 0.8);
  border: 1px solid rgba(248, 245, 240, 0.3);
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}

.ck-btn-reject:hover {
  border-color: rgba(248, 245, 240, 0.6);
  color: #f8f5f0;
}

/* Settings — text only */
.ck-btn-settings {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(248, 245, 240, 0.5);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  transition: color 0.2s;
}

.ck-btn-settings:hover {
  color: rgba(248, 245, 240, 0.85);
}

/* Save preferences (in detail modal) */
.ck-btn-save {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 12px 24px;
  background: #b48e5a;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
  width: 100%;
  transition: background 0.2s, transform .15s;
  box-shadow: 0 4px 14px rgba(180,142,90,.3);
}
.ck-btn-save:hover {
  background: #a07840;
  transform: translateY(-1px);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .ck-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .ck-bar__actions {
    width: 100%;
  }

  .ck-btn-accept,
  .ck-btn-reject {
    flex: 1;
    text-align: center;
  }

  .ck-btn-settings {
    width: 100%;
    text-align: left;
    padding-left: 0;
  }

  .ck-detail__inner {
    padding: 0 16px;
  }
}
