/* ============================================================
   Fuel Digital Media — Design System
   Shared theme for all Fuel Builders Hub pages
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* — Brand Palette — */
  --fuel-orange:   #FF5C28;
  --fuel-orange-2: #FF7A4A;
  --fuel-dark:     #E64A19;
  --fuel-amber:    #FFB240;

  /* — Backgrounds — */
  --bg:            #0C1520;
  --bg-2:          #111D2E;
  --bg-3:          #0A1018;

  /* — Surfaces (glass) — */
  --surface:       rgba(255, 255, 255, 0.055);
  --surface-2:     rgba(255, 255, 255, 0.09);
  --surface-strong: rgba(255, 255, 255, 0.13);

  /* — Text — */
  --text:          #E2EAF4;
  --muted:         rgba(226, 234, 244, 0.50);
  --muted-2:       rgba(226, 234, 244, 0.32);

  /* — Borders — */
  --line:          rgba(255, 255, 255, 0.09);
  --line-2:        rgba(255, 255, 255, 0.14);

  /* — Accent (alias → orange) — */
  --accent:        var(--fuel-orange);
  --accent-strong: var(--fuel-dark);
  --accent-soft:   rgba(255, 92, 40, 0.12);
  --accent-glow:   rgba(255, 92, 40, 0.22);

  /* — Status — */
  --danger:        #EF4444;
  --danger-soft:   rgba(239, 68, 68, 0.14);
  --success:       #22C55E;
  --success-soft:  rgba(34, 197, 94, 0.14);
  --warn:          #F59E0B;

  /* — Radii — */
  --radius-xl:  28px;
  --radius-lg:  20px;
  --radius-md:  14px;
  --radius-sm:  10px;
  --radius-xs:  7px;

  /* — Shadows — */
  --shadow:     0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-sm:  0 6px 18px  rgba(0, 0, 0, 0.30);
  --glow:       0 0 28px rgba(255, 92, 40, 0.28);

  /* — Typography — */
  --font:       "Inter", "Segoe UI", system-ui, sans-serif;
  --mono:       "JetBrains Mono", "Fira Code", "Courier New", monospace;
}

/* ── Reset ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%,   rgba(255,92,40,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 80%, rgba(255,178,64,0.07) 0%, transparent 50%),
    linear-gradient(160deg, var(--bg-2) 0%, var(--bg-3) 100%);
  min-height: 100vh;
}

/* ── Typography ─────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text);
}

p { margin: 0; }

a { color: var(--accent); text-underline-offset: 3px; }

/* ── Logo ───────────────────────────────── */
.fuel-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  user-select: none;
}

.fuel-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--fuel-orange) 0%, var(--fuel-amber) 100%);
  display: grid;
  place-items: center;
  box-shadow: var(--glow);
  flex-shrink: 0;
}

.fuel-logo-mark svg { width: 18px; height: 18px; }

.fuel-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.fuel-logo-name {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.fuel-logo-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Eyebrow / badge ────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(255,92,40,0.22);
  color: var(--fuel-orange-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Buttons ────────────────────────────── */
button, .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 9px 18px;
  font: 600 13px/1 var(--font);
  cursor: pointer;
  transition:
    transform    0.18s ease,
    box-shadow   0.18s ease,
    background   0.18s ease,
    border-color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--fuel-orange) 0%, var(--fuel-amber) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--glow);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 36px rgba(255,92,40,0.38);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line-2);
}

.btn-secondary:hover {
  background: var(--surface-strong);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(239,68,68,0.22);
}

.btn-danger:hover { background: rgba(239,68,68,0.22); }

.btn-link {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--fuel-orange-2);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 2px 0;
}

.btn-link:hover { color: var(--text); }

button:disabled, .btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Status pill ────────────────────────── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
}

.status-pill.is-active  { background: var(--accent-soft);   color: var(--fuel-orange-2); border-color: rgba(255,92,40,0.22); }
.status-pill.is-success { background: var(--success-soft);  color: var(--success); border-color: rgba(34,197,94,0.22); }
.status-pill.is-danger  { background: var(--danger-soft);   color: var(--danger);  border-color: rgba(239,68,68,0.22); }

/* ── Form inputs ────────────────────────── */
input, select, textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  outline: none;
  width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  -webkit-appearance: none;
}

input::placeholder, textarea::placeholder { color: var(--muted-2); }

input:focus, select:focus, textarea:focus {
  border-color: var(--fuel-orange);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

select { cursor: pointer; }

textarea { resize: vertical; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

/* ── Card / panel surface ───────────────── */
.card, .panel, .workspace {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ── Tab buttons ────────────────────────── */
.tab-btn {
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
}

.tab-btn:hover { background: var(--surface-strong); color: var(--text); }

.tab-btn.is-active {
  background: rgba(255, 255, 255, 0.93);
  color: #0C1520;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.28), 0 0 4px rgba(255, 255, 255, 0.50);
  font-weight: 700;
}

/* ── Divider ────────────────────────────── */
.divider {
  height: 1px;
  background: var(--line);
  border: none;
  margin: 0;
}

/* ── Code / mono ────────────────────────── */
code, pre, .mono {
  font-family: var(--mono);
  font-size: 12px;
}

pre {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  overflow-x: auto;
  color: var(--text);
}

/* ── Scrollbar (WebKit) ─────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }

/* ── Utility ────────────────────────────── */
[hidden] { display: none !important; }

.text-muted  { color: var(--muted); }
.text-danger { color: var(--danger); }
.text-accent { color: var(--accent); }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-6  { gap: 6px; }
.gap-8  { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
