/* ============ FC Zeta Milano · Cookie banner ============ */
.zc-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10000;
  display: flex;
  justify-content: center;
  padding: 0 16px 18px;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  pointer-events: none;
  transform: translateY(140%);
  opacity: 0;
  transition:
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 380ms ease;
}
.zc-banner.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.zc-card {
  position: relative;
  width: 100%;
  max-width: 760px;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(244, 241, 236, 0.14);
  color: var(--zbone, #F4F1EC);
  box-shadow:
    0 -30px 80px -20px rgba(0, 0, 0, 0.75),
    0 0 80px -20px rgba(227, 6, 19, 0.32);
  padding: 22px 24px 20px;
  overflow: hidden;
  isolation: isolate;
  clip-path: inset(0 0 100% 0);
  transform: translate3d(0, 18px, 0);
  transition:
    clip-path 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}
.zc-banner.is-open .zc-card {
  clip-path: inset(0);
  transform: translate3d(0, 0, 0);
}

/* Red top accent bar */
.zc-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--zred, #E30613) 0%,
    var(--zred, #E30613) 38%,
    rgba(227, 6, 19, 0) 100%
  );
}

.zc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--zred, #E30613);
  margin: 0 0 10px;
}
.zc-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--zred, #E30613);
  box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.7);
  animation: zc-pulse 1.8s ease-in-out infinite;
}
@keyframes zc-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(227, 6, 19, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0); }
}

.zc-title {
  font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 12px;
}

.zc-body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(244, 241, 236, 0.78);
  margin: 0 0 18px;
  max-width: 60ch;
}
.zc-body a {
  color: #fff;
  border-bottom: 1px solid rgba(244, 241, 236, 0.4);
  transition: color 160ms ease, border-color 160ms ease;
}
.zc-body a:hover { color: var(--zred, #E30613); border-color: var(--zred, #E30613); }

.zc-eyebrow,
.zc-title,
.zc-body,
.zc-actions {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 360ms ease,
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}
.zc-banner.is-open .zc-eyebrow,
.zc-banner.is-open .zc-title,
.zc-banner.is-open .zc-body,
.zc-banner.is-open .zc-actions {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.zc-banner.is-open .zc-eyebrow { transition-delay: 120ms; }
.zc-banner.is-open .zc-title { transition-delay: 180ms; }
.zc-banner.is-open .zc-body { transition-delay: 240ms; }
.zc-banner.is-open .zc-actions { transition-delay: 300ms; }

/* ===== Buttons row ===== */
.zc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.zc-btn {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(244, 241, 236, 0.22);
  background: transparent;
  color: var(--zbone, #F4F1EC);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 22px;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 120ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  line-height: 1;
}
.zc-btn:hover { color: #fff; border-color: rgba(244, 241, 236, 0.5); }
.zc-btn:active { transform: translateY(1px); }

.zc-btn-primary {
  background: var(--zred, #E30613);
  border-color: var(--zred, #E30613);
  color: #fff;
}
.zc-btn-primary:hover {
  background: #ff1d2d;
  border-color: #ff1d2d;
  color: #fff;
}

.zc-btn-ghost {
  border-color: transparent;
  color: rgba(244, 241, 236, 0.65);
  padding-left: 6px;
  padding-right: 6px;
}
.zc-btn-ghost:hover {
  color: #fff;
  border-color: transparent;
  background: transparent;
}
.zc-btn-ghost::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 200ms ease;
}
.zc-banner.is-expanded .zc-btn-ghost::after { transform: rotate(180deg); }

/* ===== Expandable settings panel ===== */
.zc-settings {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  border-top: 1px solid rgba(244, 241, 236, 0);
  transition:
    max-height 480ms cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 480ms ease,
    border-color 480ms ease;
}
.zc-banner.is-expanded .zc-settings {
  max-height: 520px;
  margin-top: 20px;
  border-top-color: rgba(244, 241, 236, 0.12);
}

.zc-cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(244, 241, 236, 0.08);
}
.zc-cat:last-of-type { border-bottom: none; }

.zc-cat-info {
  flex: 1 1 auto;
  min-width: 0;
}
.zc-cat-name {
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.zc-cat-badge {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(244, 241, 236, 0.5);
  padding: 3px 7px;
  border: 1px solid rgba(244, 241, 236, 0.2);
  text-transform: uppercase;
  font-weight: 500;
}
.zc-cat-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(244, 241, 236, 0.6);
  margin: 0;
}

/* Toggle switch */
.zc-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
  display: inline-block;
  margin-top: 2px;
}
.zc-toggle input {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.zc-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(244, 241, 236, 0.18);
  border: 1px solid rgba(244, 241, 236, 0.25);
  cursor: pointer;
  transition: background-color 220ms ease, border-color 220ms ease;
}
.zc-toggle-slider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  transform: translateY(-50%);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), background-color 220ms ease;
}
.zc-toggle input:checked + .zc-toggle-slider {
  background: var(--zred, #E30613);
  border-color: var(--zred, #E30613);
}
.zc-toggle input:checked + .zc-toggle-slider::before {
  transform: translateY(-50%) translateX(20px);
}
.zc-toggle input:disabled + .zc-toggle-slider {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Settings footer */
.zc-settings-footer {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 241, 236, 0.08);
}

/* ===== Placeholder for blocked third-party content ===== */
.zc-blocked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 32px 24px;
  min-height: 200px;
  background: rgba(10, 10, 10, 0.6);
  border: 1px dashed rgba(244, 241, 236, 0.18);
  color: var(--zbone, #F4F1EC);
}
.zc-blocked-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--zred, #E30613);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.zc-blocked-title {
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}
.zc-blocked-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(244, 241, 236, 0.7);
  margin: 0;
  max-width: 42ch;
}

/* ===== Link to reopen banner (used in cookie.html etc.) ===== */
.zc-reopen-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 24px 0;
  padding: 20px 22px;
  background: rgba(244, 241, 236, 0.04);
  border-left: 3px solid var(--zred, #E30613);
}
.zc-reopen-row p {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(244, 241, 236, 0.78);
  flex: 1 1 240px;
  min-width: 0;
}

/* ===== Responsive ===== */
@media (max-width: 560px) {
  .zc-banner { padding: 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .zc-card {
    max-width: none;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 20px 18px 18px;
  }
  .zc-title { font-size: 26px; }
  .zc-actions { flex-direction: column; }
  .zc-btn { width: 100%; }
  .zc-btn-ghost { order: 3; }
  .zc-settings-footer { flex-direction: column; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .zc-banner,
  .zc-card,
  .zc-dot,
  .zc-eyebrow,
  .zc-title,
  .zc-body,
  .zc-actions,
  .zc-toggle-slider,
  .zc-toggle-slider::before {
    animation: none !important;
    transition: opacity 200ms ease !important;
  }
  .zc-banner.is-open { transform: none; }
  .zc-card,
  .zc-banner.is-open .zc-card,
  .zc-eyebrow,
  .zc-title,
  .zc-body,
  .zc-actions {
    transform: none !important;
  }
}
