/**
 * Orixas — Flowbite custom theme (generated via MCP user-flowbite)
 * Brand: #E31C2E · Accents: magenta/cyan/lime/gold · Dark-first agency
 * Usage: map tokens into the landing page :root / [data-theme]
 */

:root {
  /* Typography */
  --fb-font-sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --fb-font-heading: "Fraunces", ui-serif, Georgia, serif;
  --fb-font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Radius — soft modern agency (12–18px) */
  --fb-radius-sm: 6px;
  --fb-radius: 12px;
  --fb-radius-lg: 16px;
  --fb-radius-xl: 18px;
  --fb-radius-full: 9999px;

  /* Brand scale from Flowbite MCP (#E31C2E) */
  --fb-brand-50: #f9f6f6;
  --fb-brand-100: #f1e9ea;
  --fb-brand-200: #e9cdd0;
  --fb-brand-300: #f2979f;
  --fb-brand-400: #ec6571;
  --fb-brand-500: #e63343;
  --fb-brand-600: #cc1929;
  --fb-brand-700: #a81522;
  --fb-brand-800: #7f101a;
  --fb-brand-900: #5b0b12;
  --fb-brand-950: #360c10;

  /* Logo accents */
  --fb-magenta: #c44bd6;
  --fb-cyan: #3ba3e8;
  --fb-lime: #7ec83a;
  --fb-gold: #f0a830;

  /* Light surfaces */
  --fb-bg: #f4f1ea;
  --fb-surface: #ffffff;
  --fb-surface-2: #ebe7de;
  --fb-text: #16161f;
  --fb-text-muted: #5c5c70;
  --fb-border: rgba(22, 22, 31, 0.12);
  --fb-focus: var(--fb-cyan);
  --fb-success: #5ca822;
  --fb-danger: #c45b4e;

  /* Elevation (Flowbite-like) */
  --fb-shadow-sm: 0 1px 2px rgba(16, 16, 24, 0.06);
  --fb-shadow: 0 4px 16px rgba(16, 16, 24, 0.08);
  --fb-shadow-lg: 0 12px 40px rgba(16, 16, 24, 0.12);
}

html.dark,
[data-theme="dark"] {
  --fb-bg: #0b0b10;
  --fb-surface: #14141c;
  --fb-surface-2: #1c1c28;
  --fb-text: #f5f3ee;
  --fb-text-muted: #a0a0b4;
  --fb-border: rgba(245, 243, 238, 0.12);
  --fb-success: #7ec83a;
  --fb-danger: #e28b7d;
  --fb-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --fb-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  --fb-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] {
  --fb-bg: #f4f1ea;
  --fb-surface: #ffffff;
  --fb-surface-2: #ebe7de;
  --fb-text: #16161f;
  --fb-text-muted: #5c5c70;
  --fb-border: rgba(22, 22, 31, 0.12);
  --fb-success: #5ca822;
  --fb-danger: #c45b4e;
  --fb-shadow-sm: 0 1px 2px rgba(16, 16, 24, 0.06);
  --fb-shadow: 0 4px 16px rgba(16, 16, 24, 0.08);
  --fb-shadow-lg: 0 12px 40px rgba(16, 16, 24, 0.12);
}

/* Flowbite-inspired primitives (vanilla, no Tailwind) */
.fb-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--fb-radius-full);
  border: 1px solid var(--fb-border);
  background: var(--fb-surface);
  color: var(--fb-text-muted);
}
.fb-badge--brand {
  background: color-mix(in srgb, var(--fb-brand-500) 12%, transparent);
  border-color: color-mix(in srgb, var(--fb-brand-500) 28%, transparent);
  color: var(--fb-brand-600);
}
[data-theme="dark"] .fb-badge--brand {
  color: var(--fb-brand-400);
}
.fb-alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: var(--fb-radius);
  border: 1px solid var(--fb-border);
  font-size: 0.9rem;
  margin-top: 0.85rem;
}
.fb-alert--success {
  background: color-mix(in srgb, var(--fb-success) 12%, transparent);
  border-color: color-mix(in srgb, var(--fb-success) 35%, transparent);
  color: var(--fb-success);
}
.fb-alert--danger {
  background: color-mix(in srgb, var(--fb-danger) 12%, transparent);
  border-color: color-mix(in srgb, var(--fb-danger) 35%, transparent);
  color: var(--fb-danger);
}
.fb-input,
.fb-select,
.fb-textarea {
  width: 100%;
  background: var(--fb-bg);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius);
  color: var(--fb-text);
  padding: 0.75rem 0.9rem;
  font: inherit;
  box-shadow: var(--fb-shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fb-input:focus,
.fb-select:focus,
.fb-textarea:focus {
  outline: none;
  border-color: var(--fb-cyan);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fb-cyan) 28%, transparent);
}
.fb-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fb-text-muted);
}
.fb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: var(--fb-radius-full);
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.fb-btn:hover {
  transform: translateY(-1px);
}
.fb-btn--primary {
  background: var(--fb-brand-500);
  color: #fff;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--fb-brand-500) 30%, transparent);
}
.fb-btn--primary:hover {
  background: var(--fb-brand-600);
}
.fb-btn--outline {
  background: transparent;
  border-color: var(--fb-border);
  color: var(--fb-text);
}
.fb-card {
  background: var(--fb-surface);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-xl);
  box-shadow: var(--fb-shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.fb-card:hover {
  box-shadow: var(--fb-shadow);
  transform: translateY(-2px);
}
.fb-alert.is-visible {
  display: flex;
}
.fb-alert[hidden] {
  display: none !important;
}
.fb-divider {
  border: 0;
  border-top: 1px solid var(--fb-border);
  margin: 1.25rem 0;
}
