/* Coriven Content Gate — Blur Wall
   Add to any page: <link rel="stylesheet" href="content-gate.css"> (or ../content-gate.css)
   Activate: <body data-gated> + <element data-gate-start>
   Optional: <element data-gate-end> to show content below the gate (e.g., footer) */

/* ── Gated Zone (blurred content) ──────────────────────────────────────── */
.cg-gated-zone {
  filter: blur(8px);
  -webkit-filter: blur(8px);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  position: relative;
  transition: filter 0.4s ease;
}

/* ── Fade Gradient (transition from readable → blur) ───────────────────── */
.cg-fade {
  position: relative;
  height: 160px;
  margin-bottom: -40px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(6, 6, 16, 0.3) 30%,
    rgba(6, 6, 16, 0.7) 60%,
    rgba(6, 6, 16, 0.95) 85%,
    #060610 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* ── Overlay Container ─────────────────────────────────────────────────── */
.cg-overlay {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  padding: 0 24px 48px;
  margin-top: -20px;
}

/* ── Card ──────────────────────────────────────────────────────────────── */
.cg-card {
  background: #0b0b1a;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(201, 168, 76, 0.04);
}

.cg-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.15);
  margin-bottom: 20px;
}

.cg-lock svg {
  width: 22px;
  height: 22px;
  stroke: #c9a84c;
  fill: none;
  stroke-width: 1.5;
}

.cg-title {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #f0f0f8;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cg-subtitle {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 15px;
  color: #8a8a9a;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Form ──────────────────────────────────────────────────────────────── */
.cg-form {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.cg-input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f0f0f8;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cg-input::placeholder {
  color: #5a5a6e;
}

.cg-input:focus {
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.08);
}

.cg-submit {
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  background: #c9a84c;
  color: #060610;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.cg-submit:hover {
  background: #b8963f;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.25);
}

.cg-submit:active {
  transform: translateY(0);
}

.cg-submit:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.cg-error {
  color: #ef4444;
  font-size: 13px;
  margin-top: -8px;
  margin-bottom: 12px;
  display: none;
}

.cg-disclaimer {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 12px;
  color: #5a5a6e;
  line-height: 1.5;
}

.cg-disclaimer a {
  color: #8a8a9a;
  text-decoration: underline;
}

/* ── Unlocked State ────────────────────────────────────────────────────── */
body.cg-unlocked .cg-gated-zone {
  filter: none;
  -webkit-filter: none;
  user-select: auto;
  -webkit-user-select: auto;
  pointer-events: auto;
}

body.cg-unlocked .cg-fade,
body.cg-unlocked .cg-overlay {
  display: none;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .cg-card {
    padding: 36px 24px;
  }

  .cg-form {
    flex-direction: column;
  }

  .cg-submit {
    width: 100%;
  }

  .cg-title {
    font-size: 20px;
  }

  .cg-subtitle {
    font-size: 14px;
  }
}

/* ── Print ─────────────────────────────────────────────────────────────── */
@media print {
  .cg-gated-zone {
    filter: none !important;
    user-select: auto !important;
    pointer-events: auto !important;
  }

  .cg-fade,
  .cg-overlay {
    display: none !important;
  }
}
