/* ============================= */
/*          GLOBAL RESET         */
/* ============================= */

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

/* ============================= */
/*        DESIGN SYSTEM          */
/* ============================= */

:root {
  /* Brand */
  --primary-color: #009dff;
  --primary-hover: #00c8ff;
  --primary-active: #006eb3;
  --accent-color: #00c8ff;

  /* Backgrounds */
  --bg-dark: #000000;
  --bg-darker: #0a0a0a;
  --card-bg: #181818;
  --card-bg-hover: #202020;
  --input-bg: #242424;

  /* Text */
  --text-light: #ffffff;
  --text-gray: #888888;
  --text-muted: rgba(255, 255, 255, 0.6);

  /* Borders & Effects */
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-color: rgba(0, 157, 255, 0.15);

  /* Layout */
  --container-width: 1200px;
  --border-radius: 12px;
  --transition-speed: 0.3s;

  /* Typography */
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ============================= */
/*         LIGHT THEME           */
/* ============================= */

[data-theme="light"] {
  --bg-dark: #ffffff;
  --bg-darker: #f5f5f5;
  --card-bg: #ffffff;
  --card-bg-hover: #f0f0f0;
  --input-bg: #f8f8f8;

  --text-light: #1a1a1a;
  --text-gray: #666666;
  --text-muted: rgba(0, 0, 0, 0.6);

  --border-color: rgba(0, 0, 0, 0.1);
  --shadow-color: rgba(0, 102, 204, 0.1);
}

/* ============================= */
/*         BASE STYLES           */
/* ============================= */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  transition: background-color var(--transition-speed) ease,
              color var(--transition-speed) ease;
  overflow-x: hidden;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
}

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

/* Container Utility */
.container {
  width: min(var(--container-width), 90%);
  margin: 0 auto;
}

/* ============================= */
/*         ACCESSIBILITY         */
/* ============================= */

:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
