/* ═══════════════════════════════════════════════════════════
   Feature Gate – Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Blocked Segment ─────────────────────────────────────── */
.fg-blocked {
  position: relative;
  opacity: 0.45;
  filter: grayscale(40%);
  pointer-events: none;
  user-select: none;
  border-radius: inherit;
}
.fg-blocked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  z-index: 1;
}

/* ── Hint Segment ────────────────────────────────────────── */
.fg-hint {
  position: relative;
}

/* ── Lock Banner ─────────────────────────────────────────── */
.fg-lock-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(255, 165, 0, 0.35);
  border-radius: 8px;
  cursor: pointer;
  color: #f5c842;
  font-size: 13px;
  font-weight: 500;
  pointer-events: all !important;
  position: relative;
  z-index: 10;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  outline: none;
}
.fg-blocked .fg-lock-banner {
  opacity: 1 !important;
  filter: none !important;
}
.fg-lock-banner:hover,
.fg-lock-banner:focus-visible {
  border-color: rgba(255, 165, 0, 0.7);
  box-shadow: 0 0 0 2px rgba(245, 200, 66, 0.2);
}
.fg-lock-icon {
  font-size: 14px;
}
.fg-lock-text {
  flex: 1;
}
.fg-lock-arrow {
  font-size: 18px;
  opacity: 0.6;
}

/* Page-Banner (Seiten-Level) */
.fg-page-banner {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 15px;
  padding: 12px 18px;
}

/* ── Input Lock ──────────────────────────────────────────── */
.fg-input-locked {
  position: relative;
}
.fg-input-locked input,
.fg-input-locked select,
.fg-input-locked textarea {
  opacity: 0.5;
  cursor: not-allowed;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 4px,
    rgba(0, 0, 0, 0.03) 4px,
    rgba(0, 0, 0, 0.03) 8px
  );
}
.fg-input-lock-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: all;
  z-index: 5;
  line-height: 1;
  cursor: pointer;
}

/* ── Modal Overlay ───────────────────────────────────────── */
#fg-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#fg-modal-overlay.fg-open {
  display: flex;
  animation: fg-fade-in 0.18s ease;
}

/* ── Modal ───────────────────────────────────────────────── */
#fg-modal {
  background: #0f1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 36px 32px 28px;
  max-width: 420px;
  width: 90%;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  animation: fg-slide-up 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  color: #e8e8f0;
  font-family: inherit;
}
#fg-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: #888;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition:
    color 0.15s,
    background 0.15s;
}
#fg-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
#fg-modal-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
#fg-modal-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #fff;
}
#fg-modal-body {
  font-size: 14px;
  color: #aaa;
  line-height: 1.6;
  margin: 0 0 18px;
}
#fg-modal-tier-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: rgba(245, 200, 66, 0.12);
  color: #f5c842;
  border: 1px solid rgba(245, 200, 66, 0.3);
  margin-bottom: 20px;
}
#fg-modal-cta {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #f5a623, #f5c842);
  border: none;
  border-radius: 10px;
  color: #0f1117;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.15s;
}
#fg-modal-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ── Animationen ─────────────────────────────────────────── */
@keyframes fg-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fg-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
