/* Fire Gates — Content Gating Styles */

.fire-gate-wrapper {
  position: relative;
  margin: 1.5em 0;
}

/* Template: Tinted Background */
.fire-gate-template-tinted {
  background: rgba(0, 0, 0, 0.02);
  padding: 1.5em;
  border-radius: 6px;
}

/* Template: Card */
.fire-gate-template-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 1.5em;
}

/* Template: Accent Bar */
.fire-gate-template-accent-bar {
  border-top: 2px solid var(--fire-gate-accent, #FF4D6A);
  padding-top: 1.5em;
}

/* Template: No Border — no extra styles */

/* Preview styles */
.fire-gate-preview {
  margin-bottom: 1em;
}

.fire-gate-preview-gradient {
  height: 100px;
  background: linear-gradient(to bottom, currentColor 0%, transparent 100%);
  opacity: 0.08;
  pointer-events: none;
}

.fire-gate-preview-blurred p {
  filter: blur(8px);
  -webkit-filter: blur(8px);
  user-select: none;
  -webkit-user-select: none;
  margin: 0;
  line-height: 1.6;
}

.fire-gate-preview-locked {
  text-align: center;
  padding: 2.5em 1.25em;
}

.fire-gate-preview-locked .fire-gate-icon {
  display: block;
  margin: 0 auto 0.75em;
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.fire-gate-preview-locked p {
  margin: 0;
  font-weight: 600;
}

/* Action area */
.fire-gate-action {
  text-align: center;
  padding: 0.5em 0;
}

/* Unlock button */
.fire-gate-unlock-btn,
.fire-gate-bundle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75em 1.5em;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
  min-height: 44px;
  line-height: 1;
}

.fire-gate-unlock-btn:hover,
.fire-gate-bundle-btn:hover {
  opacity: 0.9;
}

.fire-gate-unlock-btn:focus-visible,
.fire-gate-bundle-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.fire-gate-btn-loading {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Spinner */
.fire-gate-btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: fire-gate-spin 0.6s linear infinite;
}

@keyframes fire-gate-spin {
  to { transform: rotate(360deg); }
}

/* Logo in button */
.fire-gate-logo {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Status message */
.fire-gate-status {
  margin-top: 0.75em;
  font-size: 0.875em;
  color: #666;
}

/* Verify link */
.fire-gate-verify-link {
  display: inline-block;
  margin-top: 0.75em;
  font-size: 0.8125em;
  color: inherit;
  opacity: 0.6;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fire-gate-verify-link:hover {
  opacity: 1;
}

/* Install prompt */
.fire-gate-install {
  margin-top: 0.75em;
  font-size: 0.875em;
}

.fire-gate-install a {
  font-weight: 600;
}

/* Reveal transition */
.fire-gate-preview,
.fire-gate-action {
  transition: opacity 0.3s ease;
}

.fire-gate-revealing .fire-gate-preview,
.fire-gate-revealing .fire-gate-action {
  opacity: 0;
}

.fire-gate-content {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fire-gate-unlocked .fire-gate-content {
  opacity: 1;
}

/* Copy protection */
.fire-gate-protected .fire-gate-content {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.fire-gate-protected .fire-gate-content img {
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Bundle bar */
.fire-gate-bundle-bar {
  margin-bottom: 1.5em;
  padding: 1em 1.5em;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}

.fire-gate-bundle-bar p {
  margin: 0;
  font-size: 0.9375em;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .fire-gate-unlock-btn,
  .fire-gate-bundle-btn {
    width: 100%;
    justify-content: center;
  }

  .fire-gate-bundle-bar {
    flex-direction: column;
    text-align: center;
    position: static !important;
  }

  .fire-gate-bundle-bar.fire-gate-bundle-sticky {
    position: static !important;
  }
}

/* Sticky bundle bar (desktop only) */
@media (min-width: 769px) {
  .fire-gate-bundle-sticky {
    position: sticky;
    top: 32px;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
}
