/**
 * UnlockedMagick — Blue / Blue+Lock age-gate presentation
 * Law: AIHomeBase/ALL_AGES_CONTENT_AND_AGE_GATE_LAW.md
 *
 * Use on free-member surfaces that must stay locked until:
 *   ToS consent + payment-on-file + (multi-platform verified OR system age eval)
 * Never tease 18+ content. Never ship restricted content without backend gate.
 */
:root {
  --um-age-blue: #3b82f6;
  --um-age-blue-deep: #1d4ed8;
  --um-age-blue-glow: rgba(59, 130, 246, 0.35);
  --um-age-blue-soft: rgba(59, 130, 246, 0.12);
}

.um-blue-section {
  border: 1px solid var(--um-age-blue);
  background: linear-gradient(180deg, var(--um-age-blue-soft), transparent 70%);
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--um-age-blue-glow), 0 8px 28px rgba(0, 0, 0, 0.25);
}

.um-blue-lock {
  position: relative;
  pointer-events: none; /* visual lock — real lock is server-side */
  user-select: none;
}

.um-blue-lock::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(8, 14, 28, 0.55);
  backdrop-filter: blur(2px);
}

.um-blue-lock__badge {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--um-age-blue);
  background: rgba(10, 18, 36, 0.92);
  color: #dbeafe;
  font-family: system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: auto;
}

.um-blue-lock__badge .lock-icon {
  width: 16px;
  height: 16px;
  border: 2px solid var(--um-age-blue);
  border-radius: 3px 3px 2px 2px;
  position: relative;
  display: inline-block;
  box-sizing: border-box;
}
.um-blue-lock__badge .lock-icon::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--um-age-blue);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.um-blue-lock__help {
  margin-top: 10px;
  font-size: 12px;
  color: #93c5fd;
  line-height: 1.45;
  max-width: 36em;
}

/* Cleared state (server confirmed unlock) */
.um-blue-section.is-unlocked {
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: none;
}
.um-blue-section.is-unlocked .um-blue-lock::after,
.um-blue-section.is-unlocked .um-blue-lock__badge {
  display: none;
}
