/* ============================================================
   ArenaFoot Community — Design System Unificado
   Sincronizado com arenafoot-soul.css do jogo principal
   ============================================================ */

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

:root {
  /* === Core do jogo (sincronizado com arenafoot-soul.css) === */
  --af-ink: #080a0c;
  --af-canvas: #0d1013;
  --af-surface: #14191e;
  --af-surface-raised: #1a2026;
  --af-line: rgba(233, 239, 241, 0.11);
  --af-line-strong: rgba(233, 239, 241, 0.2);
  --af-copy: #f4f6f5;
  --af-copy-muted: #929ba3;

  /* === Tipografia === */
  --af-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --af-body: 'Barlow', 'Inter', sans-serif;
  --af-data: 'IBM Plex Mono', Consolas, monospace;

  /* === Easing === */
  --af-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --af-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* === Accent funcional (verde do jogo) === */
  --ui-accent: #22c55e;
  --ui-accent-hover: #16a34a;
  --ui-accent-soft: color-mix(in srgb, var(--ui-accent) 10%, transparent);

  /* === Superfícies === */
  --bg-deep: var(--af-canvas);
  --bg-surface: var(--af-surface);
  --bg-card: var(--af-surface-raised);
  --bg-input: #101419;
  --bg-elevated: #20272e;

  /* === Bordas === */
  --border-subtle: var(--af-line);
  --border-color: var(--af-line-strong);

  /* === Texto === */
  --text-main: var(--af-copy);
  --text-muted: var(--af-copy-muted);

  /* === Fontes (aliases) === */
  --font-family: var(--af-body);
  --font-display: var(--af-display);
  --font-body: var(--af-body);
  --font-mono: var(--af-data);

  /* === Bordas e Sombras === */
  --border-radius: 6px;
  --border-radius-sm: 4px;
  --border-radius-lg: 8px;
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.035);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.28);

  /* === Brand aliases === */
  --color-primary: var(--ui-accent);
  --color-primary-hover: var(--ui-accent-hover);
  --color-primary-light: var(--ui-accent-soft);
  --color-accent: #b7f34a;
  --color-accent-hover: #9bd933;
  --color-danger: #ff735c;
  --color-danger-light: rgba(239, 68, 68, 0.15);
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-info: #3b82f6;

  --color-bg: var(--af-canvas);
  --color-surface: var(--af-surface);
  --color-surface-raised: var(--af-surface-raised);
  --color-surface-inverse: #f4f6f5;
  --color-border: var(--af-line);
  --color-border-strong: var(--af-line-strong);
  --color-ink: var(--af-copy);
  --color-ink-secondary: var(--af-copy-muted);
  --color-ink-muted: rgba(239, 243, 241, 0.38);
  --color-ink-inverse: #080a0c;

  /* === Spacing === */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 2.5rem;
  --space-9: 3rem;
  --space-10: 4rem;

  /* === Layout === */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --sidebar-width: 240px;
  --header-height: 56px;
  --af-sidebar-width: 224px;

  /* === Z-Index === */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-backdrop: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;
  --z-mobile-menu: 250;

  /* === Transitions === */
  --duration-fast: 120ms;
  --duration-normal: 160ms;
  --duration-slow: 220ms;
  --ease-out: var(--af-ease-out);
  --ease-in-out: var(--af-ease-in-out);
  --transition-speed: 160ms;

  /* === Text Sizes === */
  --text-xs: 10px;
  --text-sm: 12px;
  --text-base: 14px;
  --text-lg: 16px;
  --text-xl: 18px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --text-4xl: 40px;
}

/* === Light Mode (sincronizado com arenafoot-soul.css) === */
.light,
[data-theme="light"] {
  --af-ink: #171915;
  --af-canvas: #d9dad4;
  --af-surface: #e8e8e2;
  --af-surface-raised: #f6f4ed;
  --af-line: rgba(21, 25, 22, 0.12);
  --af-line-strong: rgba(21, 25, 22, 0.22);
  --af-copy: #171b18;
  --af-copy-muted: #626961;
  --bg-deep: var(--af-canvas);
  --bg-surface: var(--af-surface);
  --bg-card: var(--af-surface-raised);
  --bg-input: #eeede7;
  --bg-elevated: #ffffff;
  --border-subtle: var(--af-line);
  --border-color: var(--af-line-strong);
  --text-main: var(--af-copy);
  --text-muted: var(--af-copy-muted);
  --ui-accent: #16a34a;
  --ui-accent-hover: #15803d;

  --color-bg: var(--af-canvas);
  --color-surface: var(--af-surface);
  --color-surface-raised: var(--af-surface-raised);
  --color-surface-inverse: #14191e;
  --color-border: var(--af-line);
  --color-border-strong: var(--af-line-strong);
  --color-ink: var(--af-copy);
  --color-ink-secondary: var(--af-copy-muted);
  --color-ink-muted: rgba(21, 25, 22, 0.38);
  --color-ink-inverse: #f4f6f5;

  --shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.12);
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
