/* ==========================================================================
   theme.css — SynthWave CSS Custom Properties & Base Resets
   Business Card Generator
   ========================================================================== */

:root {
  /* Backgrounds */
  --bg-deep:        #0a0a1a;
  --bg-surface:     #12122a;
  --bg-elevated:    #1a1a3e;
  --bg-panel:       #141432;

  /* Accents */
  --accent-pink:    #ff2975;
  --accent-cyan:    #00f0ff;
  --accent-purple:  #b026ff;
  --accent-yellow:  #ffe156;

  /* Text */
  --text-primary:   #e8e8f0;
  --text-secondary: #8888aa;
  --text-muted:     #555577;

  /* Borders */
  --border-subtle:  #2a2a4e;
  --border-focus:   var(--accent-cyan);

  /* Shadows / Glows */
  --glow-pink:      0 0 20px rgba(255, 41, 117, 0.3);
  --glow-cyan:      0 0 20px rgba(0, 240, 255, 0.3);
  --glow-purple:    0 0 20px rgba(176, 38, 255, 0.3);

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  /* Typography */
  --font-ui: 'JetBrains Mono', 'Fira Code', monospace;
  --font-size-xs: 9px;
  --font-size-sm: 11px;
  --font-size-md: 13px;
  --font-size-lg: 15px;

  /* Transitions */
  --transition-fast: 120ms ease;
  --transition-normal: 200ms ease;

  /* Border radius */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
}

/* ---------- Base Reset ---------- */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-ui);
  font-size: var(--font-size-md);
  line-height: 1.4;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* ---------- Selection ---------- */

::selection {
  background: rgba(0, 240, 255, 0.25);
  color: var(--text-primary);
}

::-moz-selection {
  background: rgba(0, 240, 255, 0.25);
  color: var(--text-primary);
}

/* ---------- Focus ---------- */

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* Remove default focus ring for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* ---------- Scrollbar (WebKit) ---------- */

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

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

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 3px;
}

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

::-webkit-scrollbar-corner {
  background: var(--bg-deep);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) var(--bg-deep);
}

/* ---------- Utility classes ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Neon text glow utility */
.glow-text-cyan {
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5),
               0 0 20px rgba(0, 240, 255, 0.2);
}

.glow-text-pink {
  text-shadow: 0 0 8px rgba(255, 41, 117, 0.5),
               0 0 20px rgba(255, 41, 117, 0.2);
}
