/* ============================================
   Empire Design System — Theme
   Version: 1.0
   Updated: 2026-02-21
   ============================================ */

:root {
  /* ---- Colors ---- */
  --bg-primary:     #0a0a0a;
  --bg-secondary:   #111111;
  --bg-card:        #151515;
  --bg-elevated:    #1a1a1a;
  --bg-hover:       #1f1f1f;
  --bg-active:      #252525;
  --bg-input:       #0f0f0f;

  --border:         #222222;
  --border-subtle:  #1a1a1a;
  --border-focus:   #4facfe;

  --text-primary:   #e8e8e8;
  --text-secondary: #a0a0a0;
  --text-muted:     #666666;
  --text-inverse:   #0a0a0a;

  /* Accents */
  --gold:           #d4af37;
  --gold-dim:       rgba(212, 175, 55, 0.15);
  --blue:           #4facfe;
  --blue-dim:       rgba(79, 172, 254, 0.12);
  --green:          #22c55e;
  --green-dim:      rgba(34, 197, 94, 0.12);
  --amber:          #f59e0b;
  --amber-dim:      rgba(245, 158, 11, 0.12);
  --red:            #ef4444;
  --red-dim:        rgba(239, 68, 68, 0.12);
  --purple:         #a855f7;
  --purple-dim:     rgba(168, 85, 247, 0.12);
  --pink:           #ec4899;
  --pink-dim:       rgba(236, 72, 153, 0.12);

  /* Entity colors */
  --entity-palacio:       #4facfe;
  --entity-palacio-dim:   rgba(79, 172, 254, 0.12);
  --entity-club:          #f59e0b;
  --entity-club-dim:      rgba(245, 158, 11, 0.12);
  --entity-personal:      #22c55e;
  --entity-personal-dim:  rgba(34, 197, 94, 0.12);
  --entity-vara:          #a855f7;
  --entity-vara-dim:      rgba(168, 85, 247, 0.12);
  --entity-lifestyliste:  #ec4899;
  --entity-lifestyliste-dim: rgba(236, 72, 153, 0.12);
  --entity-others:        #6b7280;
  --entity-others-dim:    rgba(107, 114, 128, 0.12);

  /* ---- Spacing ---- */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   32px;
  --space-2xl:  48px;
  --space-3xl:  64px;

  /* ---- Typography ---- */
  --font-sans:  system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:  'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

  --text-xs:    11px;
  --text-sm:    13px;
  --text-base:  15px;
  --text-lg:    17px;
  --text-xl:    20px;
  --text-2xl:   24px;
  --text-3xl:   32px;
  --text-4xl:   40px;

  --leading-tight:  1.3;
  --leading-normal: 1.5;
  --leading-loose:  1.7;

  --weight-normal:  400;
  --weight-medium:  500;
  --weight-semi:    600;
  --weight-bold:    700;

  /* ---- Radius ---- */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-full: 9999px;

  /* ---- Shadows ---- */
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.4);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow:  0 0 20px rgba(79, 172, 254, 0.15);

  /* ---- Transitions ---- */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.55, 0, 1, 0.45);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast:   0.12s;
  --duration-normal: 0.2s;
  --duration-slow:   0.35s;

  /* ---- Z-index ---- */
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-overlay:   300;
  --z-modal:     400;
  --z-toast:     500;
}

/* ---- Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: var(--leading-normal);
  min-height: 100vh;
  min-height: 100dvh;
}

::selection {
  background: var(--blue);
  color: var(--text-inverse);
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: opacity var(--duration-fast) var(--ease-out);
}
a:hover { opacity: 0.8; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
