/* ═══════════════════════════════════════════════════════════
   HORIZON BY MIHWARIY CONSULTANCY — Turnstile Verification Page
   Styles for the dedicated gate.html interstitial page that
   functions/_middleware.js redirects unverified visitors to.
═══════════════════════════════════════════════════════════ */

/* ── Full-viewport centering for the overlay wrapper ── */
body.page-wrap {
  margin: 0;
  min-height: 100vh;
  background: var(--navy, #0B1F35);
}

#hz-gate-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  box-sizing: border-box;
}

/* ── Card ── */
.hz-gate-card {
  background: #fff;
  border-radius: var(--r-xl, 28px);
  padding: 2.75rem 2.5rem 2.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 2px 8px rgba(11,31,53,.10),
    var(--sh-xl, 0 20px 64px rgba(11,31,53,.22));
  animation: hz-gate-rise .5s cubic-bezier(.22,.68,0,1.2) both;
}

@keyframes hz-gate-rise {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* ── Logo area ── */
.hz-gate-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-bottom: 1.5rem;
}

.hz-gate-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--r-sm, 6px);
}

.hz-gate-logo-text {
  text-align: left;
  line-height: 1.15;
}

.hz-gate-logo-name {
  font-family: var(--font-display, 'Fustat', sans-serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy, #0B1F35);
  letter-spacing: .02em;
  text-transform: uppercase;
}

.hz-gate-logo-sub {
  font-size: .65rem;
  color: var(--gray-600, #5D6B80);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── Divider ── */
.hz-gate-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-deep, #C9A820), var(--gold, #F3D35B));
  border-radius: 2px;
  margin: 0 auto 1.4rem;
}

/* ── Heading ── */
.hz-gate-title {
  font-family: var(--font-display, 'Fustat', sans-serif);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy, #0B1F35);
  letter-spacing: -.01em;
  margin-bottom: .5rem;
}

.hz-gate-sub {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: .85rem;
  color: var(--gray-600, #5D6B80);
  line-height: 1.7;
  margin-bottom: 1.6rem;
}

/* ── Turnstile widget centering ── */
.hz-gate-widget-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
  min-height: 65px;
}

/* ── Status / error message ── */
.hz-gate-status {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: .8rem;
  color: var(--red, #FF4040);
  min-height: 1.2em;
  margin-bottom: .5rem;
}

/* ── Footer note ── */
.hz-gate-note {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: .72rem;
  color: var(--gray-400, #A0ADBD);
  line-height: 1.65;
  margin-top: .5rem;
}

.hz-gate-note a {
  color: var(--gold-text, #806414); /* accessible on white — gold-deep alone fails contrast here */
  text-decoration: underline;
  text-decoration-color: rgba(128,100,20,.35);
}

/* ── Focus ring consistency with the rest of the site ── */
.hz-gate-retry:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--gold, #F3D35B), 0 0 0 6px rgba(11,31,53,.55);
}

/* ── Mobile tweaks ── */
@media (max-width: 480px) {
  .hz-gate-card {
    padding: 2rem 1.25rem 1.75rem;
    border-radius: var(--r-md, 12px);
  }
  .hz-gate-title { font-size: 1.2rem; }
}

/* ── Reduced motion: skip entrance animation, keep the fade ── */
@media (prefers-reduced-motion: reduce) {
  .hz-gate-card { animation: none; }
}