/**
 * BOND OS - Base Styles
 * Centralized base styles for all BOND OS applications
 *
 * ARCHITECTURE:
 * 1. design-tokens.css (variables only)
 * 2. base-styles.css (this file - reset + theme-aware base)
 * 3. App-specific index.css (app-specific overrides/additions)
 *
 * SYNC: This file is synced via npm run sync-design-tokens
 */

/* === RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === ROOT (Light theme defaults for non-authenticated pages) === */
:root {
  /* Typography */
  font-family: var(--font-body);
  line-height: 1.5;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Default colors (overridden by [data-theme]) */
  color-scheme: dark;
  color: var(--color-text-primary);
  background-color: var(--color-darkest-depth);
}

/* === BODY === */
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;

  /* Theme-aware background */
  background: var(--color-deep-dark);
  color: var(--color-text-primary);
}

/* === ROOT CONTAINER === */
#root {
  min-height: 100vh;
}

/* === LINKS === */
a {
  color: var(--color-bond-red);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--color-bond-red-dark);
}

/* === BUTTONS === */
button {
  font-family: inherit;
  cursor: pointer;
}

/* === HEADINGS === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

/* === PARAGRAPHS === */
p {
  font-family: var(--font-body);
  color: var(--color-text-primary);
}

/* === ANIMATIONS === */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
