/* ==========================================================================
   consent.css — the "this is a demo, do not reuse the material" gate.

   Shown once per browser on the three pages a visitor can land on (/, /hajde/,
   /vitrina/). The markup is injected by shared/js/consent.js, so a page only
   needs the stylesheet and the script.

   Sized phone-first: the card is a full-height sheet on a phone and a centred
   dialog from 560px up. Long legal text on a 375px screen must scroll inside
   the card, never move the page behind it.
   ========================================================================== */

.consent {
  position: fixed;
  inset: 0;
  z-index: 2147483600;          /* above .tablet-glare (…000) and every app chrome */
  display: flex;
  align-items: flex-end;         /* phone: sheet rises from the bottom */
  justify-content: center;
  padding: 0;
  background: rgba(6, 7, 14, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--font-manrope, system-ui, sans-serif);
  animation: consent-fade .28s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes consent-fade { from { opacity: 0; } to { opacity: 1; } }

.consent-card {
  position: relative;
  width: 100%;
  max-height: 92dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;  /* scrolling the card must not scroll the page */
  padding: 26px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px 22px 0 0;
  background: #14161F;
  color: #ECEBF3;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .55);
  animation: consent-rise .36s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes consent-rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

.consent-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(123, 92, 255, .16);
  color: #B9A7FF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.consent-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7B5CFF;
}

.consent-title {
  margin: 0 0 10px;
  font-family: var(--font-sora, var(--font-manrope, sans-serif));
  font-size: 21px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: #fff;
}
.consent-body { margin: 0; font-size: 14.5px; line-height: 1.55; color: #B9BAC9; }
.consent-body + .consent-body { margin-top: 11px; }
.consent-body strong { color: #ECEBF3; font-weight: 650; }

.consent-points { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.consent-points li {
  position: relative;
  padding-left: 25px;
  font-size: 14px;
  line-height: 1.5;
  color: #B9BAC9;
}
.consent-points li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: .62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00D1C1;
}

.consent-actions { margin-top: 20px; display: grid; gap: 9px; }
.consent-btn {
  appearance: none;
  width: 100%;
  min-height: 50px;            /* comfortably above the 44px touch target floor */
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 650;
  cursor: pointer;
  transition: transform .12s ease, background .18s ease, opacity .18s ease;
}
.consent-btn:active { transform: translateY(1px); }
.consent-btn:focus-visible { outline: 3px solid #9A82FF; outline-offset: 2px; }
.consent-accept { background: linear-gradient(135deg, #7B5CFF, #5B3FE0); color: #fff; }
.consent-accept:hover { background: linear-gradient(135deg, #8E73FF, #6B4FF0); }
.consent-leave {
  background: transparent;
  color: #8E90A6;
  min-height: 42px;
  font-size: 14px;
  font-weight: 600;
}
.consent-leave:hover { color: #C5C7DC; }

.consent-foot {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #72748A;
}

/* Keep the page itself from scrolling behind the sheet. */
html.consent-locked, html.consent-locked body { overflow: hidden; }

/* ── From 560px: a centred dialog instead of a bottom sheet ───────────── */
@media (min-width: 560px) {
  .consent { align-items: center; padding: 24px; }
  .consent-card {
    width: min(560px, 100%);
    max-height: min(88dvh, 760px);
    padding: 32px 34px 28px;
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
  }
  .consent-title { font-size: 25px; }
  .consent-actions { grid-auto-flow: column; justify-content: flex-start; gap: 12px; }
  .consent-btn { width: auto; min-width: 190px; }
  .consent-leave { min-width: 0; }
}

/* Phone in landscape: very little height, so trim the vertical rhythm. */
@media (orientation: landscape) and (max-height: 460px) {
  .consent-card { max-height: 96dvh; padding-top: 18px; }
  .consent-title { font-size: 19px; }
  .consent-badge { margin-bottom: 9px; }
  .consent-points { gap: 6px; }
  .consent-actions { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .consent, .consent-card { animation: none; }
  .consent-btn { transition: none; }
}
