/* ================================
   BASE.CSS
   — Global resets, variables, typography
   ================================ */

/* RESET / BASE STYLES */

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", sans-serif;
  font-size: var(--base-font-size, 14px);
  color: var(--color-text);
  background: linear-gradient(135deg, #0c1220 0%, #1a2436 100%);
  line-height: 1.4;
  background-attachment: fixed;
}

/* ================================
   VARIABLES — COLORS
   ================================ */

/* Text */
:root {
  --base-font-size: 14px;

  --color-text: #ffffff;
  --color-text-subtle: rgba(255, 255, 255, 1.0);

  /* Blue Theme - More vibrant carnival blues */
  --color-blue-main: #2563eb;
  --color-blue-dark: #1a368a;
  --color-blue-bg: #1e3a8a;
  --color-blue-bright: #3b82f6;
  --color-blue-xbright: #60a5fa;

  /* Red Theme - More vibrant carnival reds */
  --color-red-main: #dc2626;
  --color-red-dark: #7a1616;
  --color-red-bg: #991b1b;
  --color-red-bright: #ef4444;
  --color-red-xbright: #f87171;

  /* Green Theme - More vibrant carnival greens */
  --color-green-main: #16a34a;
  --color-green-dark: #0f5228;
  --color-green-bg: #166534;
  --color-green-bright: #22c55e;
  --color-green-xbright: #4ade80;

  --color-border: rgba(255,255,255,0.2);

  /* Spacing System */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
}

/* ================================
   GENERAL TYPOGRAPHY
   ================================ */

:root {
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --font-weight-black: 900;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.5em;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.3rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1em;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

/* ================================
   LINKS & INTERACTIVE TEXT
   ================================ */

a {
  color: var(--color-blue-xbright);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-blue-bright);
  text-decoration: underline;
}

/* ================================
   BUTTONS
   ================================ */

button {
  cursor: pointer;
  font-family: inherit;
  font-size: 1em;
  font-weight: var(--font-weight-medium);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.02em;
}

button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

button:active {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

button:focus {
  outline: 2px solid var(--color-blue-xbright);
  outline-offset: 2px;
}

/* ================================
   SCROLLBAR
   ================================ */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}
