/* Aihub Design System — tokens, typography, motion */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@600;700;800&display=swap');

:root,
[data-theme="dark"] {
  color-scheme: dark;

  --bg: #060d18;
  --bg2: #0a1424;
  --card: #0f1c30;
  --card2: #142338;
  --border: #1a2f4a;
  --border2: #234060;

  --cyan: #00d4ff;
  --cyan2: #0099cc;
  --cyan3: #006699;
  --text: #b8d4ee;
  --text2: #6a8fad;
  --white: #ffffff;

  --gold: #f5a623;
  --green: #00e676;
  --red: #ff3d5a;
  --purple: #a855f7;

  --gradient: linear-gradient(135deg, #0099cc, #00d4ff);
  --gradient-gold: linear-gradient(135deg, #c8860a, #f5c842);
  --gradient-casino: linear-gradient(135deg, #1a0a3e 0%, #0d2040 50%, #091a30 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 24px rgba(0, 212, 255, 0.15);

  --sw: 250px;
  --nh: 60px;
  --bh: 64px;
  --radius: 14px;
  --radius2: 10px;
  --radius3: 6px;

  --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms;
  --dur-normal: 250ms;
  --dur-slow: 400ms;
}

[data-theme="light"] {
  color-scheme: light;

  --bg: #f4f7fb;
  --bg2: #eaf0f7;
  --card: #ffffff;
  --card2: #f8fafc;
  --border: #d8e2ed;
  --border2: #c5d3e3;

  --cyan: #0077aa;
  --cyan2: #0099cc;
  --cyan3: #005580;
  --text: #2a3f55;
  --text2: #5a7490;
  --white: #0a1628;

  --gold: #c8860a;
  --green: #00a854;
  --red: #d63050;
  --purple: #7c3aed;

  --gradient: linear-gradient(135deg, #0077aa, #00a8d4);
  --gradient-gold: linear-gradient(135deg, #b8780a, #e8b020);
  --gradient-casino: linear-gradient(135deg, #e8eef6 0%, #dce8f4 50%, #d0e0f0 100%);

  --shadow-sm: 0 2px 8px rgba(10, 30, 60, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 30, 60, 0.12);
  --shadow-lg: 0 16px 48px rgba(10, 30, 60, 0.16);
  --shadow-glow: 0 0 24px rgba(0, 119, 170, 0.12);
}

/* Global typography & motion overrides */
body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .brand-name, .u-hero-val, .mcard-name, .adm-topbar h2 {
  font-family: var(--font-display);
}

/* Smooth theme transition */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background-color var(--dur-normal) var(--ease-out),
              border-color var(--dur-normal) var(--ease-out),
              color var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out) !important;
}

/* Theme toggle button */
.theme-btn {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius3);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: transform var(--dur-fast) var(--ease-spring), border-color var(--dur-fast);
  flex-shrink: 0;
}
.theme-btn:hover {
  border-color: var(--cyan);
  transform: scale(1.06);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
