/* WindForge JG blocks (w1) — dark defaults, no Tailwind dependency.
   Every value uses a CSS variable with a fallback so a theme or a later
   build can re-skin these blocks without editing this file.
   Class prefix: wf-jg-*. No class here is expected to come from
   assets/css/tailwind.min.css. */

.wf-jg-process,
.wf-jg-hud,
.wf-jg-showcase,
.wf-jg-converter {
  --wf-jg-accent: #e11d2e;
  --wf-jg-sale: #f59e0b;
  --wf-jg-success: #22c55e;
  --wf-jg-glass-bg: rgba(255, 255, 255, 0.04);
  --wf-jg-glass-border: rgba(255, 255, 255, 0.10);
  --wf-jg-radius: 18px;
  --wf-jg-text: #ffffff;
  --wf-jg-muted: #9ca3af;
  --wf-jg-panel: #0b0b18;
  box-sizing: border-box;
  color: var(--wf-jg-text, #ffffff);
  font-family: inherit;
}
.wf-jg-process *,
.wf-jg-hud *,
.wf-jg-showcase *,
.wf-jg-converter * { box-sizing: border-box; }

.wf-jg-process,
.wf-jg-showcase,
.wf-jg-converter {
  background: var(--wf-jg-panel, #0b0b18);
  padding: 56px 24px;
}
.wf-jg-head { max-width: 1100px; margin: 0 auto 32px; text-align: center; }
.wf-jg-title { margin: 0 0 10px; font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: var(--wf-jg-text, #ffffff); }
.wf-jg-sub { margin: 0 auto; max-width: 640px; font-size: 16px; line-height: 1.6; color: var(--wf-jg-muted, #9ca3af); }

/* ── process: rail + ghost-number glass cards ─────────────────────────── */
.wf-jg-rail { position: relative; max-width: 1100px; margin: 0 auto 40px; display: flex; justify-content: space-between; align-items: center; }
.wf-jg-rail-line { position: absolute; left: 24px; right: 24px; top: 50%; height: 2px; background: rgba(255, 255, 255, 0.12); transform: translateY(-50%); }
.wf-jg-rail-node { position: relative; z-index: 1; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.25); background: #141428; color: #fff; font-weight: 800; font-size: 17px; }
.wf-jg-rail-check { border-color: var(--wf-jg-node-accent, #e11d2e); background: var(--wf-jg-node-accent, #e11d2e); box-shadow: 0 0 0 6px rgba(225, 29, 46, 0.22), 0 0 28px rgba(225, 29, 46, 0.75); font-size: 22px; }
.wf-jg-process-grid { max-width: 1100px; margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.wf-jg-process-card { position: relative; overflow: hidden; padding: 26px 22px 20px; border-radius: var(--wf-jg-radius, 18px); border: 1px solid var(--wf-jg-glass-border, rgba(255, 255, 255, 0.10)); background: var(--wf-jg-glass-bg, rgba(255, 255, 255, 0.04)); }
.wf-jg-skin-glass .wf-jg-process-card { background: rgba(255, 255, 255, 0.07); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.wf-jg-ghost { position: absolute; top: 2px; right: 12px; font-size: 76px; line-height: 1; font-weight: 900; color: rgba(255, 255, 255, 0.06); pointer-events: none; user-select: none; }
.wf-jg-chip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 13px; font-size: 22px; margin-bottom: 16px; }
.wf-jg-card-title { position: relative; margin: 0 0 8px; font-size: 18px; font-weight: 800; color: var(--wf-jg-text, #ffffff); }
.wf-jg-card-text { position: relative; margin: 0 0 18px; font-size: 14px; line-height: 1.65; color: var(--wf-jg-muted, #9ca3af); }
.wf-jg-card-footer { position: relative; margin: 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.10); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }

/* ── hud_stats: single dark glass card ────────────────────────────────── */
.wf-jg-hud { position: relative; max-width: 760px; margin: 0 auto; padding: 32px 28px 26px; border-radius: 22px; border: 1px solid var(--wf-jg-glass-border, rgba(255, 255, 255, 0.10)); background: var(--wf-jg-glass-bg, rgba(255, 255, 255, 0.04)); background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.wf-jg-hud-badges { position: absolute; top: -13px; right: 20px; display: flex; gap: 8px; }
.wf-jg-hud-badge { padding: 5px 11px; border-radius: 999px; background: var(--wf-jg-accent, #e11d2e); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; box-shadow: 0 6px 20px rgba(225, 29, 46, 0.5); }
.wf-jg-hud-top { display: flex; gap: 28px; align-items: center; margin-bottom: 24px; }
.wf-jg-ring-wrap { position: relative; flex: 0 0 auto; width: 150px; text-align: center; }
.wf-jg-ring { width: 140px; height: 140px; display: block; margin: 0 auto; }
.wf-jg-ring-track { stroke: rgba(255, 255, 255, 0.10); }
.wf-jg-ring-fg { stroke: var(--wf-jg-accent, #e11d2e); transition: stroke-dashoffset 1.2s ease; }
.wf-jg-ring-center { position: absolute; left: 50%; top: 62px; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.wf-jg-ring-kicker { font-size: 10px; font-weight: 800; letter-spacing: 0.18em; color: var(--wf-jg-muted, #9ca3af); }
.wf-jg-ring-level { font-size: 30px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.wf-jg-ring-label { display: block; margin-top: 8px; font-size: 12px; color: var(--wf-jg-muted, #9ca3af); }
.wf-jg-xp { min-width: 0; }
.wf-jg-xp-kicker { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.18em; color: var(--wf-jg-muted, #9ca3af); margin-bottom: 6px; }
.wf-jg-xp-value { display: block; font-size: 40px; line-height: 1.05; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--wf-jg-text, #ffffff); }
.wf-jg-xp-line { display: block; margin-top: 8px; font-size: 14px; color: var(--wf-jg-muted, #9ca3af); }
.wf-jg-bars { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.wf-jg-bar-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.wf-jg-bar-pct { color: var(--wf-jg-muted, #9ca3af); font-variant-numeric: tabular-nums; }
.wf-jg-segments { display: flex; gap: 4px; }
.wf-jg-seg { flex: 1; height: 10px; border-radius: 3px; background: rgba(255, 255, 255, 0.10); }
.wf-jg-seg-on { box-shadow: 0 0 10px rgba(0, 0, 0, 0.25); }
.wf-jg-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wf-jg-chip-item { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.10); font-size: 13px; font-weight: 700; }
.wf-jg-chip-unlocked { background: rgba(34, 197, 94, 0.12); color: #bbf7d0; }
.wf-jg-chip-locked { background: rgba(255, 255, 255, 0.03); color: var(--wf-jg-muted, #9ca3af); }
.wf-jg-chip-ico { width: 17px; height: 17px; flex: 0 0 auto; }

/* ── showcase_cards: product cards, no WooCommerce ────────────────────── */
.wf-jg-showcase-grid { max-width: 1100px; margin: 0 auto; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.wf-jg-card { overflow: hidden; border-radius: var(--wf-jg-radius, 18px); border: 1px solid var(--wf-jg-glass-border, rgba(255, 255, 255, 0.10)); background: #12121f; display: flex; flex-direction: column; }
.wf-jg-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(140deg, #1e1030, #3b0f16 55%, #0b0b18); }
.wf-jg-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wf-jg-card-ph { position: absolute; inset: 0; background: radial-gradient(80% 90% at 20% 10%, rgba(225, 29, 46, 0.35), transparent 60%), radial-gradient(70% 80% at 90% 90%, rgba(139, 92, 246, 0.35), transparent 60%); }
.wf-jg-badge-sale { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; background: var(--wf-jg-sale, #f59e0b); color: #1a1000; font-size: 12px; font-weight: 900; }
.wf-jg-badge-flag { position: absolute; top: 12px; right: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.72); border: 1px solid rgba(255, 255, 255, 0.20); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; }
.wf-jg-card-headline { position: absolute; left: 14px; right: 14px; bottom: 12px; font-size: 22px; font-weight: 900; letter-spacing: 0.02em; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8); }
.wf-jg-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 0; flex: 1; }
.wf-jg-card-cat { margin: 0 0 6px; font-size: 12px; color: var(--wf-jg-muted, #9ca3af); letter-spacing: 0.04em; }
.wf-jg-card-title { margin: 0 0 10px; font-size: 17px; line-height: 1.35; font-weight: 800; color: var(--wf-jg-text, #ffffff); }
.wf-jg-spec { display: inline-block; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.10); font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.85); }
.wf-jg-price-row { margin: 16px 0; display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.wf-jg-price-from { font-size: 13px; color: var(--wf-jg-muted, #9ca3af); }
.wf-jg-price { font-size: 26px; font-weight: 900; color: var(--wf-jg-sale, #f59e0b); font-variant-numeric: tabular-nums; }
.wf-jg-old-price { font-size: 14px; color: var(--wf-jg-muted, #9ca3af); }
.wf-jg-btn { display: block; width: 100%; margin-top: auto; padding: 13px 16px; border-radius: 12px; border: 1px solid rgba(225, 29, 46, 0.55); background: rgba(225, 29, 46, 0.22); color: #fff; text-align: center; text-decoration: none; font-size: 15px; font-weight: 800; cursor: pointer; }
.wf-jg-btn:hover { background: rgba(225, 29, 46, 0.38); }
.wf-jg-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── format_converter: tiles + working browser tool ───────────────────── */
.wf-jg-conv-tiles { max-width: 560px; margin: 0 auto 30px; display: flex; align-items: center; justify-content: center; gap: 22px; }
.wf-jg-conv-tile { min-width: 130px; padding: 20px 18px; text-align: center; border-radius: var(--wf-jg-radius, 18px); border: 1px solid var(--wf-jg-glass-border, rgba(255, 255, 255, 0.10)); background: var(--wf-jg-glass-bg, rgba(255, 255, 255, 0.04)); font-size: 26px; font-weight: 900; letter-spacing: 0.06em; }
.wf-jg-conv-tile-to { border-color: rgba(225, 29, 46, 0.55); box-shadow: 0 0 0 4px rgba(225, 29, 46, 0.16), 0 0 32px rgba(225, 29, 46, 0.45); }
.wf-jg-conv-arrow { color: var(--wf-jg-accent, #e11d2e); filter: drop-shadow(0 0 12px rgba(225, 29, 46, 0.8)); }
.wf-jg-conv-arrow svg { width: 40px; height: 40px; display: block; }
.wf-jg-conv-box { max-width: 560px; margin: 0 auto; padding: 24px; border-radius: var(--wf-jg-radius, 18px); border: 1px solid var(--wf-jg-glass-border, rgba(255, 255, 255, 0.10)); background: var(--wf-jg-glass-bg, rgba(255, 255, 255, 0.04)); }
.wf-jg-drop { border: 2px dashed rgba(255, 255, 255, 0.25); border-radius: 14px; padding: 30px 18px; text-align: center; cursor: pointer; }
.wf-jg-drop:hover, .wf-jg-drop:focus-visible, .wf-jg-drop.wf-jg-drop-over { border-color: var(--wf-jg-accent, #e11d2e); outline: none; }
.wf-jg-drop-ico { display: block; font-size: 30px; color: var(--wf-jg-accent, #e11d2e); margin-bottom: 8px; }
.wf-jg-drop-text { display: block; font-weight: 800; font-size: 15px; }
.wf-jg-drop-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--wf-jg-muted, #9ca3af); }
.wf-jg-conv-preview { margin-top: 18px; text-align: center; }
.wf-jg-conv-img { max-width: 100%; max-height: 240px; border-radius: 12px; display: block; margin: 0 auto; }
.wf-jg-conv-meta { margin: 10px 0 0; font-size: 13px; color: var(--wf-jg-muted, #9ca3af); }
.wf-jg-quality { display: block; margin-top: 20px; }
.wf-jg-quality-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.wf-jg-quality-range { width: 100%; accent-color: var(--wf-jg-accent, #e11d2e); }
.wf-jg-conv-actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.wf-jg-conv-actions .wf-jg-btn { width: auto; flex: 1; }
.wf-jg-conv-download { background: rgba(34, 197, 94, 0.20); border-color: rgba(34, 197, 94, 0.55); }
.wf-jg-conv-clear { background: transparent; border: 1px solid rgba(255, 255, 255, 0.20); color: #fff; border-radius: 12px; padding: 13px 16px; font-weight: 700; cursor: pointer; }
.wf-jg-conv-msg, .wf-jg-conv-fallback { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--wf-jg-muted, #9ca3af); }
.wf-jg-conv-fallback { color: #fca5a5; border: 1px solid rgba(225, 29, 46, 0.5); background: rgba(225, 29, 46, 0.10); border-radius: 12px; padding: 12px 14px; }

@media (max-width: 900px) {
  .wf-jg-process-grid, .wf-jg-showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .wf-jg-title { font-size: 27px; }
}
@media (max-width: 640px) {
  .wf-jg-process, .wf-jg-showcase, .wf-jg-converter { padding: 40px 16px; }
  .wf-jg-process-grid, .wf-jg-showcase-grid { grid-template-columns: 1fr; }
  .wf-jg-rail-node { width: 40px; height: 40px; font-size: 15px; }
  .wf-jg-hud { padding: 28px 18px 22px; }
  .wf-jg-hud-top { flex-direction: column; text-align: center; }
  .wf-jg-xp-value { font-size: 32px; }
  .wf-jg-chips { grid-template-columns: 1fr; }
  .wf-jg-conv-tiles { gap: 12px; }
  .wf-jg-conv-tile { min-width: 0; flex: 1; font-size: 20px; padding: 16px 10px; }
  .wf-jg-conv-actions { flex-direction: column; }
  .wf-jg-conv-actions .wf-jg-btn { width: 100%; }
}
