/*
 * Cookie consent banner — Arx Certa
 * Vanilla port of the Vantis CookieBanner.module.css, but using
 * Arx Certa's navy/blue/teal palette instead of royal silver.
 *
 * Banner sits at bottom of viewport, slides up on first visit,
 * stays until the user accepts or rejects analytics. State is
 * persisted to localStorage under 'arxcerta_consent_v1'.
 */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  animation: cookieBannerSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

.cookie-banner__content {
  flex: 1 1 auto;
  min-width: 0;
}

.cookie-banner__title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.cookie-banner__body {
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.cookie-banner__link {
  color: #06b6d4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__link:hover {
  color: #22d3ee;
}

.cookie-banner__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.cookie-banner__btn {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  white-space: nowrap;
}

.cookie-banner__btn:active {
  transform: translateY(1px);
}

.cookie-banner__btn--primary {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  border-color: transparent;
}

.cookie-banner__btn--primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
}

.cookie-banner__btn--secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.18);
}

.cookie-banner__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

@media (max-width: 720px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.1rem 1.1rem 1.25rem;
  }
  .cookie-banner__actions {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    animation: none;
  }
}
