/* =====================================================================
   Slotty Labs — Cookie Consent Banner
   Matches design system v6 (dark iGaming theme)
   Desktop: fixed bottom bar | Mobile: bottom sheet drawer
   ===================================================================== */

/* ── Overlay backdrop (mobile only) ──────────────────────────────── */
#sl-cookie-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 8, 15, .6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 9998;
  opacity: 0;
  transition: opacity .3s ease;
}
#sl-cookie-overlay.visible {
  opacity: 1;
}

/* ── Banner container ─────────────────────────────────────────────── */
#sl-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #111326;
  border-top: 1px solid rgba(139, 92, 246, .30);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .55);
  transform: translateY(100%);
  transition: transform .38s cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}
#sl-cookie-banner.sl-visible {
  transform: translateY(0);
}

/* ── Desktop layout ───────────────────────────────────────────────── */
.sl-cookie__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px max(24px, 5vw);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.sl-cookie__text {
  flex: 1 1 320px;
  min-width: 0;
}
.sl-cookie__title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #F1F2FA;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sl-cookie__title svg {
  flex-shrink: 0;
  color: #A78BFA;
}
.sl-cookie__desc {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: #9DA3C2;
  margin: 0;
}
.sl-cookie__desc a {
  color: #A78BFA;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sl-cookie__desc a:hover {
  color: #C4B5FD;
}

/* ── Action buttons ───────────────────────────────────────────────── */
.sl-cookie__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.sl-cookie__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 8px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.sl-cookie__btn:active {
  transform: scale(.97);
}

/* Accept — violet primary */
.sl-cookie__btn--accept {
  background: #8B5CF6;
  color: #fff;
  box-shadow: 0 2px 12px rgba(139, 92, 246, .35);
}
.sl-cookie__btn--accept:hover {
  background: #7C3AED;
  box-shadow: 0 4px 18px rgba(139, 92, 246, .50);
}

/* Reject — ghost style */
.sl-cookie__btn--reject {
  background: transparent;
  color: #9DA3C2;
  border: 1px solid rgba(255, 255, 255, .12);
}
.sl-cookie__btn--reject:hover {
  background: rgba(255, 255, 255, .06);
  color: #F1F2FA;
  border-color: rgba(255, 255, 255, .22);
}

/* ── Mobile: compact bottom bar ───────────────────────────────────── */
@media (max-width: 640px) {
  #sl-cookie-overlay {
    display: block;
    background: rgba(7, 8, 15, .45);
  }

  #sl-cookie-banner {
    border-radius: 14px 14px 0 0;
    border-top: 1px solid rgba(139, 92, 246, .22);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .45);
  }

  .sl-cookie__inner {
    padding: 12px 16px max(14px, env(safe-area-inset-bottom));
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
  }

  .sl-cookie__text {
    flex: 1 1 100%;
    min-width: 0;
  }

  .sl-cookie__title {
    font-size: 13px;
    margin: 0;
    gap: 5px;
  }

  .sl-cookie__title svg {
    width: 14px;
    height: 14px;
  }

  .sl-cookie__desc {
    font-size: 11.5px;
    line-height: 1.4;
  }

  .sl-cookie__actions {
    flex: 1 1 100%;
    flex-direction: row;
    gap: 8px;
    width: 100%;
  }

  .sl-cookie__btn {
    flex: 1;
    padding: 9px 12px;
    font-size: 12px;
    border-radius: 8px;
  }

  /* No drag handle on mobile — cleaner */
  #sl-cookie-banner::before {
    display: none;
  }
}

/* ── Tablet mid-range tweaks ──────────────────────────────────────── */
@media (min-width: 641px) and (max-width: 900px) {
  .sl-cookie__inner {
    gap: 16px;
  }
  .sl-cookie__btn {
    padding: 9px 16px;
    font-size: 13px;
  }
}

/* ── Reduced-motion ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #sl-cookie-banner,
  #sl-cookie-overlay {
    transition: none;
  }
}
