/* Mind Theme System */
/* Based on vibeship design language */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');
@import url('https://cdn.jsdelivr.net/npm/geist@1.2.0/dist/fonts/geist-sans/style.min.css');

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

/* Root Variables */
:root {
  /* Font families */
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Geist Sans', 'Geist', system-ui, sans-serif;

  /* Font sizes - balanced between compact and readable */
  --text-xs: 0.7rem;
  --text-sm: 0.8rem;
  --text-base: 0.925rem;
  --text-lg: 1.05rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2.25rem;
  --text-4xl: 2.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Border radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;

  /* Accent colors */
  --green: #2ECC71;
  --green-dim: #00C49A;
  --orange-dim: #d97706;
  --red: #FF4D4D;
  --blue: #3399FF;
  --violet: #9D8CFF;
  --pink: #FF66C4;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-glow-green: 0 0 20px rgba(0, 196, 154, 0.3);
}

/* Light Theme (Default) */
:root, [data-theme="light"] {
  --bg-primary: #e8e8e8;
  --bg-secondary: #dedede;
  --bg-tertiary: #d4d4d4;
  --bg-inverse: #0e1016;

  --text-primary: #1a1a1a;
  --text-secondary: #3d3d3d;
  --text-tertiary: #5a5a5a;
  --text-inverse: #e8e8e8;

  --border: #c8c8c8;
  --border-strong: #a8a8a8;

  --gray-100: #e0e0e0;
  --gray-200: #d4d4d4;
  --gray-300: #c8c8c8;
  --gray-400: #a8a8a8;
  --gray-500: #888888;
  --gray-600: #5a5a5a;
  --gray-700: #3d3d3d;
  --gray-800: #2a2a2a;
  --gray-900: #1a1a1a;

  /* Light mode green - darker with blue tint for readability */
  --green-dim: #0d847a;
  --shadow-glow-green: 0 0 20px rgba(10, 138, 106, 0.2);

  /* Light mode orange - use Claude coral for readability */
  --orange: #D97757;

  /* Terminal colors - light terminal for light mode */
  --terminal-bg: #f5f5f0;
  --terminal-header: #eaeae5;
  --terminal-border: #d0d0c8;
  --terminal-text: #3d3d3d;
  --terminal-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --terminal-command: #0d847a;
  --terminal-heading: #1a1a1a;
  --terminal-item: #4a4a4a;
  --terminal-muted: #6a6a6a;

  --logo-invert: 0;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: #0e1016;
  --bg-secondary: #151820;
  --bg-tertiary: #1c202a;
  --bg-inverse: #ffffff;

  --text-primary: #e2e4e9;
  --text-secondary: #9aa3b5;
  --text-tertiary: #6b7489;
  --text-inverse: #0c0e14;

  --border: #2a3042;
  --border-strong: #3d4558;

  --gray-100: #0f1218;
  --gray-200: #181c25;
  --gray-300: #2a3142;
  --gray-400: #3d4559;
  --gray-500: #5a6478;
  --gray-600: #8892a6;
  --gray-700: #b8c0d0;
  --gray-800: #dce1eb;
  --gray-900: #f0f2f5;

  /* Bright shiny green for dark mode */
  --green-dim: #00C49A;
  --shadow-glow-green: 0 0 20px rgba(0, 196, 154, 0.3);

  /* Claude coral for dark mode too - consistent */
  --orange: #D97757;

  /* Terminal colors - slightly lighter than bg for contrast */
  --terminal-bg: #0a0c12;
  --terminal-header: #080a0f;
  --terminal-border: #1a1f2e;
  --terminal-text: #a8b5c9;
  --terminal-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --terminal-command: #a6e3a1;
  --terminal-heading: #cdd6f4;
  --terminal-item: #bac2de;
  --terminal-muted: #9399b2;

  --logo-invert: 1;
}

/* Base Styles */
html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--text-primary);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn-primary {
  border-color: var(--green-dim);
  color: var(--green-dim);
}

.btn-primary:hover {
  background: var(--green-dim);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow-green);
}

.btn-lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
}

/* Cards */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: var(--space-5);
  transition: all var(--transition-fast);
}

/* Code blocks */
code {
  font-family: var(--font-mono);
  background: var(--bg-tertiary);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: var(--space-4);
  overflow-x: auto;
  font-size: var(--text-sm);
}

pre code {
  background: transparent;
  padding: 0;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 4px;
}

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

/* Utility classes */
.text-green { color: var(--green); }
.text-teal { color: var(--green-dim); }
.text-orange { color: var(--orange); }
.text-muted { color: var(--text-secondary); }
.font-mono { font-family: var(--font-mono); }
.font-serif { font-family: var(--font-serif); }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.1em; }
