/* Cookie consent banner shared by every page (home included).
   Uses the same --bg/--border/--purple-light tokens as theme.css so it
   already matches dark/light on any page, with no page-specific overrides. */
.cookie-consent {
  box-sizing: border-box;
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(24px);
  z-index: 150;
  width: min(calc(100% - 32px), 560px);
  max-width: calc(100vw - 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-1);
  box-shadow: var(--purple-glow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease, transform 250ms ease;
}
.cookie-consent.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.cookie-consent-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.cookie-consent-content a {
  color: var(--purple-light);
  text-decoration: underline;
}
.cookie-consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-consent-btn {
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 200ms ease, filter 200ms ease, border-color 200ms ease;
}
.cookie-consent-btn:hover { transform: translateY(-2px); }
.cookie-consent-btn.primary {
  background: var(--purple-light);
  color: #fff;
}
.cookie-consent-btn.primary:hover { filter: brightness(1.12); }
.cookie-consent-btn.secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
}
.cookie-consent-btn.secondary:hover {
  border-color: var(--purple-light);
  color: var(--text-primary);
}
@media (max-width: 600px) {
  .cookie-consent { width: min(calc(100% - 24px), 560px); max-width: calc(100vw - 24px); bottom: 12px; padding: 18px; }
  .cookie-consent-actions { flex-direction: column; }
  .cookie-consent-actions .cookie-consent-btn { width: 100%; }
}
