/* base.css - variables, reset, typography */

:root {
  /* Colors */
  --color-primary: #D4AF37;
  --color-primary-light: #F4E29A;
  --color-primary-shadow: #8C6A1D;
  --color-primary-dark: #5E4312;
  --gold-gradient: linear-gradient(135deg, #5E4312 0%, #8C6A1D 18%, #D4AF37 48%, #F4E29A 64%, #D4AF37 78%, #8C6A1D 100%);
  --gold-gradient-hover: linear-gradient(135deg, #8C6A1D 0%, #D4AF37 28%, #F4E29A 52%, #F8ECB5 64%, #D4AF37 84%, #8C6A1D 100%);
  --gold-glow: 0 0 24px rgba(212, 175, 55, 0.32), 0 0 54px rgba(244, 226, 154, 0.14);
  --gold-glow-strong: 0 10px 34px rgba(212, 175, 55, 0.38), 0 0 72px rgba(244, 226, 154, 0.22);
  --color-accent-neon: #FF1493;
  --color-dark-navy: #000814;
  --color-dark-blue: #001D3D;
  --color-dark-blue-alt: #003566;
  --color-bg-dark: #000814;
  --color-bg-darker: #001D3D;
  --color-bg-panel: #FFFFFF;
  --color-text: #FFFFFF;
  --color-text-secondary: #E0E0E0;
  --color-text-muted: #B0B0B0;
  --color-border: #003566;
  --color-border-light: #001D3D;
  --color-overlay: rgba(0, 8, 20, 0.95);
  --color-hover: #003566;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 16px;
  --font-size-sm: 14px;
  --font-size-xs: 12px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;
  --font-size-3xl: 48px;
  --font-size-4xl: 64px;
  --line-height-base: 1.6;
  --line-height-tight: 1.2;

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

  /* Layout */
  --container-width: 1280px;
  --header-height: 120px;
  --panel-width: 480px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Z-index */
  --z-header: 100;
  --z-dropdown: 150;
  --z-overlay: 300;
  --z-panel: 400;
}

body:not(.intelligence-dashboard-page) :where([class*="kicker"]) {
  color: #d4af37;
  background: linear-gradient(135deg, #7a5518 0%, #d4af37 32%, #f8ecb5 50%, #c89b2a 68%, #8c6a1d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 14px rgba(212, 175, 55, 0.18);
}

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

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

body {
  font-family: var(--font-sans);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: #000814;
  overflow-x: hidden;
}

body.scroll-locked {
  overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
}

h2 {
  font-size: var(--font-size-2xl);
}

h3 {
  font-size: var(--font-size-xl);
}

h4 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  :root {
    --font-size-3xl: 36px;
    --font-size-2xl: 28px;
    --font-size-xl: 20px;
    --header-height: 72px;
    --panel-width: 100%;
  }
}
