/* ===================================================================
   JD's Vegan Dives — Gate Page (/enter)
   Glass card on black. Apple-quality access screen.
   =================================================================== */

/* Lock gate to viewport */
html:has(body.page-template-page-enter) {
  overflow: hidden;
  height: 100vh;
}

body.page-template-page-enter {
  overflow: hidden;
  height: 100vh;
}

/* Hide header + footer on gate */
body.page-template-page-enter .jdvd-site-header,
body.page-template-page-enter .jdvd-site-footer {
  display: none;
}

/* ─── Gate ─── */
.jdvd-gate {
  height: 100vh;
  background: #0A0A0A;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.jdvd-gate__box {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 48px 40px;
  border-radius: 20px;
  text-align: center;
  width: 100%;
  max-width: 420px;
}

/* Mini coin */
.jdvd-gate__coin {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.jdvd-gate__coin img {
  width: 300px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(212,175,55,0.3));
}

/* Typography */
.jdvd-gate__title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 8px;
}

.jdvd-gate__subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
}

/* Action buttons */
.jdvd-gate__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.jdvd-gate .jdvd-btn--primary {
  background: #0B3D2E;
  color: #fff;
  padding: 12px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  border: none;
}

.jdvd-gate .jdvd-btn--primary:hover {
  background: #092F24;
  transform: translateY(-1px);
}

.jdvd-gate .jdvd-btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.8);
  padding: 12px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.jdvd-gate .jdvd-btn--ghost:hover {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  transform: translateY(-1px);
}

/* Divider */
.jdvd-gate__divider {
  position: relative;
  margin: 0 0 24px;
}

.jdvd-gate__divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.jdvd-gate__divider span {
  position: relative;
  background: rgba(10,10,10,0.95);
  padding: 0 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Invite code input */
.jdvd-invite__field {
  display: flex;
  gap: 0;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  transition: border-color 0.2s ease;
}

.jdvd-invite__field:focus-within {
  border-color: rgba(212,175,55,0.4);
}

.jdvd-invite__field input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 20px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.jdvd-invite__field input::placeholder {
  color: rgba(255,255,255,0.3);
}

.jdvd-invite__field button {
  background: rgba(212,175,55,0.15);
  color: #D4AF37;
  border: none;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

.jdvd-invite__field button:hover {
  background: rgba(212,175,55,0.25);
}

.jdvd-invite__error {
  margin-top: 12px;
  font-size: 13px;
  color: #ef4444;
}

/* Mobile */
@media (max-width: 480px) {
  .jdvd-gate__box {
    padding: 36px 24px;
  }

  .jdvd-gate__actions {
    flex-direction: column;
  }

  .jdvd-gate .jdvd-btn--primary,
  .jdvd-gate .jdvd-btn--ghost {
    width: 100%;
  }
}
