
:root {
  --pink:       #e6007e;
  --blue:       #009fe3;
  --teal:       #27cfc3;
  --grad:       linear-gradient(135deg, #e6007e 0%, #009fe3 100%);
  --dark:       #0d0d0d;
  --dark-600:   #1a1a1a;
  --dark-400:   #2e2e2e;
  --grey-500:   #676767;
  --grey-400:   #888888;
  --grey-100:   #e0e0e0;
  --white:      #ffffff;

  --font-display: 'Bebas Neue', 'Arial Black', sans-serif;
  --font-serif:   'EB Garamond', Georgia, serif;
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body:    'Poppins', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --grid-max: 2000px;
  --grid-margin: clamp(24px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: var(--grey-100);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════
   DEMO RESET BUTTON (not part of the module)
   ═══════════════════════════════════════════════════════════ */

.demo-reset {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 4px;
  border: 1px solid var(--dark-400);
  background: var(--dark-600);
  color: var(--grey-400);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.demo-reset:hover {
  border-color: var(--pink);
  color: var(--white);
}

/* ═══════════════════════════════════════════════════════════
   COOKIE CONSENT BAR
   ═══════════════════════════════════════════════════════════ */

.cookie-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  max-width: 600px;
  width: calc(100% - 48px);
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  padding: 20px 24px;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.6s var(--ease-out), opacity 0.5s ease;
}

.cookie-bar.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-bar.is-dismissing {
  transform: translateX(-50%) translateY(120%);
  opacity: 0;
}

/* ─── COMPACT STATE ──────────────────────────────────── */

.cookie-compact {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cookie-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--pink);
}

.cookie-message {
  flex: 1;
  font-size: 14px;
  font-weight: 400;
  color: var(--grey-100);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, opacity 0.3s ease;
  white-space: nowrap;
}

.cookie-btn:hover {
  transform: translateY(-1px);
}

.cookie-btn:active {
  transform: translateY(0);
}

.cookie-btn--accept {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(230, 0, 126, 0.25);
  outline: 2px solid transparent;
  outline-offset: 3px;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), outline-color 0.3s ease;
}

.cookie-btn--accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,159,227,0.35), 0 0 20px rgba(0,159,227,0.25);
  outline-color: rgba(0,159,227,0.8);
}

.cookie-btn--reject {
  background: transparent;
  color: var(--grey-100);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.cookie-btn--reject:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.cookie-btn--prefs {
  background: none;
  border: none;
  color: var(--grey-400);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 8px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.cookie-btn--prefs:hover {
  color: var(--white);
}

/* ─── EXPANDED PREFERENCES ───────────────────────────── */

.cookie-prefs {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s var(--ease-out), opacity 0.4s ease, margin-top 0.4s ease;
  margin-top: 0;
}

.cookie-prefs.is-open {
  max-height: 400px;
  opacity: 1;
  margin-top: 20px;
}

.cookie-prefs-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 20px;
}

/* ─── TOGGLE ROWS ────────────────────────────────────── */

.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.cookie-toggle-row + .cookie-toggle-row {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.cookie-toggle-info {
  flex: 1;
  min-width: 0;
}

.cookie-toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.cookie-toggle-desc {
  font-size: 12px;
  font-weight: 400;
  color: var(--grey-500);
  line-height: 1.4;
}

/* ─── CUSTOM TOGGLE SWITCH ───────────────────────────── */

.cookie-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-switch-track {
  position: absolute;
  inset: 0;
  background: var(--dark-400);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cookie-switch-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--grey-400);
  border-radius: 50%;
  transition: transform 0.3s var(--ease-out), background 0.3s ease;
}

.cookie-switch input:checked + .cookie-switch-track {
  background: var(--grad);
}

.cookie-switch input:checked + .cookie-switch-track::after {
  transform: translateX(20px);
  background: var(--white);
}

.cookie-switch input:disabled + .cookie-switch-track {
  opacity: 0.5;
  cursor: default;
}

.cookie-switch input:focus-visible + .cookie-switch-track {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ─── SAVE PREFS BUTTON ─────────────────────────────── */

.cookie-prefs-footer {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.cookie-btn--save {
  background: var(--grad);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(230, 0, 126, 0.25);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.cookie-btn--save:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(0,159,227,0.35), 0 0 20px rgba(0,159,227,0.25);
  outline: 2px solid rgba(0,159,227,0.8);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 500px) {
  .cookie-bar {
    bottom: 16px;
    width: calc(100% - 32px);
    padding: 18px 20px;
  }

  .cookie-compact {
    flex-wrap: wrap;
  }

  .cookie-icon {
    width: 24px;
    height: 24px;
  }

  .cookie-message {
    flex-basis: calc(100% - 48px);
    font-size: 13px;
  }

  .cookie-actions {
    flex-direction: column;
    width: 100%;
    margin-top: 12px;
    gap: 8px;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }

  .cookie-btn--prefs {
    width: 100%;
    text-align: center;
  }
}

