/* ============================================
   BASE STYLES & RESET
   ============================================ */

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

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: background-color var(--theme-transition) ease,
              color var(--theme-transition) ease;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-tech);
  font-weight: 700;
  line-height: 1.2;
}

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

/* Links */
a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--neon-green);
}

/* Buttons */
button {
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--transition-speed) ease;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Scrollbar (for modal/logbook) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* Selection */
::selection {
  background: var(--neon-cyan);
  color: var(--bg-primary);
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}

/* Disable transitions on theme change initially */
.no-transition,
.no-transition * {
  transition: none !important;
}
