/* cookie-banner.css - glowing bottom consent bar */

.cookie-wrap {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9500;
  display: flex;
  justify-content: center;
  padding: 20px clamp(16px, 3vw, 32px) 24px;
  pointer-events: none;
  animation: cookieRise 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cookieRise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .cookie-wrap { animation: none; } }

/* the glow sits behind the bar, blurred aurora-colored light */
.cookie-glow {
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: min(1100px, 92vw);
  height: 140px;
  background:
    radial-gradient(60% 100% at 20% 100%, var(--au-coral) 0%, transparent 70%),
    radial-gradient(50% 100% at 80% 100%, var(--au-coral) 0%, transparent 70%);
  filter: blur(46px);
  opacity: 0.55;
  pointer-events: none;
  animation: cookieGlowPulse 5s ease-in-out infinite alternate;
}
@keyframes cookieGlowPulse {
  from { opacity: 0.4; }
  to   { opacity: 0.65; }
}
@media (prefers-reduced-motion: reduce) { .cookie-glow { animation: none; } }

.cookie-bar {
  position: relative;
  pointer-events: auto;
  /* glass-dark's 46% wine tint was tuned for the home hero, where the dark
     aurora sits behind it. The bar now also mounts on cream pages (portfolio),
     where that tint composites to a washed-out grey and drags the white text
     down with it. Pinning a denser backdrop here keeps the bar reading the
     same on any background. */
  background: rgba(42, 10, 17, 0.88);
  width: min(1100px, 92vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 28px;
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 30px 70px rgba(42, 10, 17, 0.45),
    0 0 60px rgba(255, 46, 116, 0.18);
}

.cookie-copy { display: flex; flex-direction: column; gap: 8px; max-width: 62ch; }
.cookie-eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.7);
}
.cookie-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--au-coral);
  box-shadow: 0 0 10px var(--au-coral);
}
.cookie-copy p { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,0.88); }
.cookie-link { text-decoration: underline; text-underline-offset: 2px; color: #fff; }
.cookie-link:hover { color: var(--au-peach); }

.cookie-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn { padding: 13px 22px; font-size: 13.5px; white-space: nowrap; }
.cookie-btn-accept:hover { box-shadow: 0 18px 40px rgba(242,56,71,0.35); }

/* preferences modal */
.cookie-prefs-overlay {
  position: fixed; inset: 0;
  z-index: 9600;
  background: rgba(20, 4, 8, 0.6);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: cookieFade 0.25s ease;
  pointer-events: auto; /* .cookie-wrap (ancestor) sets pointer-events:none so its empty
    margins don't block the page behind the banner - this overlay must explicitly opt
    back in, or the whole modal (backdrop, toggles, Cancel/Save) is unclickable. */
}
@keyframes cookieFade { from { opacity: 0; } to { opacity: 1; } }

.cookie-prefs {
  width: min(480px, 100%);
  border-radius: 20px;
  padding: 32px;
  color: #fff;
}
.cookie-prefs h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin-bottom: 10px; color: #fff; }
.cookie-prefs-sub { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.72); margin-bottom: 22px; }

.cookie-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.16);
}
.cookie-row:first-of-type { border-top: none; }
.cookie-row-title { font-size: 15px; font-weight: 600; color: #fff; }
.cookie-row-sub { font-size: 13px; color: rgba(255,255,255,0.62); margin-top: 2px; }

.cookie-toggle {
  width: 42px; height: 24px; border-radius: 100px;
  background: rgba(255,255,255,0.2);
  border: none; cursor: pointer;
  position: relative; flex-shrink: 0;
  transition: background 0.25s var(--ease);
}
.cookie-toggle.on { background: var(--au-pink); }
.cookie-toggle.always-on { background: rgba(255,255,255,0.4); cursor: default; }
.cookie-toggle-knob {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.25s var(--ease);
}
.cookie-toggle.on .cookie-toggle-knob,
.cookie-toggle.always-on .cookie-toggle-knob { transform: translateX(18px); }

.cookie-prefs-actions {
  display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px;
}
.cookie-prefs-actions .btn { padding: 13px 22px; font-size: 13.5px; }

@media (max-width: 760px) {
  .cookie-bar { flex-direction: column; align-items: stretch; gap: 18px; padding: 22px; }
  .cookie-actions { flex-wrap: wrap; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}
