/**
 * Horizon Core: the 18+ gate (HORIZON-20261123-004). Markup: src/Content/age-gate-render.php.
 *
 * The look is the theme gate on the star demo site: a centred dark card over a blurred photo, photo header, name,
 * a text-only "18+ ADULTS ONLY" pill. One fixed dark palette on every site, so the legal text always reads; the
 * only per-site colour is the accent (`age_gate_accent`, inline as --hz-gate-accent / --hz-gate-on-accent).
 * Class names are Core's own (hz-gate__*), so the theme's hp-age-gate.css, still enqueued by the theme, styles
 * nothing here.
 */

.hz-gate {
  --hz-gate-surface: #121212;
  --hz-gate-line: rgba(255, 255, 255, 0.12);
  --hz-gate-text: rgba(255, 255, 255, 0.82);
  --hz-gate-muted: rgba(255, 255, 255, 0.6);
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow: auto;
  overflow-x: hidden;
  background: #040404;
  color: var(--hz-gate-text);
  font-family: var(--hp-font-body, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.hz-gate *,
.hz-gate *::before,
.hz-gate *::after { box-sizing: border-box; }

.hz-gate__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hz-gate__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: blur(12px) brightness(0.28) saturate(0.6);
  transform: scale(1.06);
}

.hz-gate__card {
  position: relative;
  z-index: 1;
  width: 720px;
  max-width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--hz-gate-surface);
  border: 1px solid var(--hz-gate-line);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}

/* Photo header: head and neck, fading out before the shoulders and chest. */
.hz-gate__photo {
  height: clamp(150px, 26vh, 250px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
}

.hz-gate__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.hz-gate__name {
  margin: 10px 24px 14px;
  font-family: var(--hp-font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 2.3rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--hz-gate-accent);
}

.hz-gate__rule {
  height: 1px;
  margin: 0 24px;
  background: rgba(255, 255, 255, 0.18);
}

.hz-gate__pill {
  align-self: center;
  margin: 18px 0 10px;
  padding: 4px 16px;
  border: 1px solid color-mix(in srgb, var(--hz-gate-accent) 45%, transparent);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hz-gate-accent);
}

.hz-gate__warn {
  margin: 0 24px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

/* The legal text: before the buttons, in a short box that scrolls when the screen is short. */
.hz-gate__legal {
  margin: 0 24px;
  max-height: 34vh;
  overflow-y: auto;
  padding: 2px 6px 2px 0;
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--hz-gate-muted);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.hz-gate__legal:focus-visible { outline: 2px solid var(--hz-gate-accent); outline-offset: 4px; }
.hz-gate__legal p { margin: 0 0 10px; }
.hz-gate__legal p:last-child { margin-bottom: 0; }
.hz-gate__legal a,
.hz-gate__cookies a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.hz-gate__providers {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.72);
}

.hz-gate__providers li + li::before { content: "\00a0\00b7\00a0"; color: rgba(255, 255, 255, 0.35); }

.hz-gate__actions {
  display: flex;
  gap: 12px;
  margin: 0 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 16px;
}

.hz-gate__btn {
  flex: 1;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: transparent;
  color: var(--hz-gate-accent);
  font: 600 0.9rem/1 var(--hp-font-body, system-ui, sans-serif);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.hz-gate__btn:hover { border-color: var(--hz-gate-accent); }

.hz-gate__btn--agree {
  background: var(--hz-gate-accent);
  border-color: var(--hz-gate-accent);
  color: var(--hz-gate-on-accent);
}

.hz-gate__btn--agree:hover { filter: brightness(1.08); transform: translateY(-1px); }
.hz-gate__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* The cookie line: small and secondary, under the buttons. Shown only while no cookie choice is stored. */
.hz-gate__cookies {
  display: none;
  margin: 14px 24px 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--hz-gate-muted);
}

html.hz-agc-on .hz-gate__cookies { display: block; }
.hz-gate__cookies p { margin: 0; }
.hz-gate__cookie-links { margin-top: 4px !important; }

.hz-gate__cookie-links button {
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--hz-gate-muted);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.hz-gate__cookie-links button:hover { color: #fff; }
.hz-gate__dot { margin: 0 8px; }

/* Built by Automate Horizon (hp_powered_by_credit('gate') markup). */
.hz-gate .hp-age-gate__powered {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 18px;
  padding: 14px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hz-gate .hp-age-gate__powered__label {
  margin: 0 0 1px;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hz-gate-accent);
}

.hz-gate .hp-age-gate__powered a { color: #fff; text-decoration: none; }
.hz-gate .hp-age-gate__powered .hp-ah-logo { width: 160px; height: auto; opacity: 1; }

/* Core's cookie modal opens above the gate. */
.hz-cc-modal { z-index: 100000; }

body.hp-age-gate-active { overflow: hidden; }

/* Phones: full-width card, buttons side by side, cookie links stacked with 44px tap targets. */
@media (max-width: 600px) {
  .hz-gate { padding: 0; align-items: stretch; }
  .hz-gate__card { width: 100%; min-height: 100%; border: 0; border-radius: 0; }
  .hz-gate__photo { height: clamp(120px, 20vh, 170px); }
  .hz-gate__name { font-size: 1.9rem; margin: 6px 16px 10px; }
  .hz-gate__rule,
  .hz-gate__warn,
  .hz-gate__legal,
  .hz-gate__actions,
  .hz-gate__cookies { margin-left: 16px; margin-right: 16px; }
  .hz-gate__pill { margin-top: 14px; }
  .hz-gate__legal { max-height: 30vh; font-size: 0.78rem; }
  .hz-gate__cookies { font-size: 0.82rem; }
  .hz-gate__cookie-links { display: flex; flex-direction: column; align-items: center; }
  .hz-gate__cookie-links button { min-height: 44px; padding: 0 12px; }
  .hz-gate__dot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hz-gate__btn { transition: none; }
  .hz-gate__btn--agree:hover { transform: none; }
}
