/* shared.css — Typography, colors, resets, responsive */

:root {
  --canvas-bg: #f5f4f0;
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.3);
  --bg-window: rgba(255, 255, 255, 0.6);
  --bg-window-header: rgba(255, 255, 255, 0.35);
  --bg-window-header-inactive: rgba(245, 244, 240, 0.4);
  --bg-taskbar: #ffffff;
  --bg-icon-hover: rgba(0, 0, 0, 0.04);
  --bg-tooltip: rgba(30, 30, 30, 0.9);

  --text-primary: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-muted: #999999;
  --text-desktop: #1a1a1a;
  --text-link: #1a1a1a;

  --border-window: rgba(255, 255, 255, 0.5);
  --border-subtle: rgba(0, 0, 0, 0.04);

  --shadow-window: 0 25px 50px rgba(0, 0, 0, 0.06);
  --shadow-window-focused: 0 25px 50px rgba(0, 0, 0, 0.1);
  --shadow-taskbar: 0 10px 40px rgba(0, 0, 0, 0.1);

  --radius-window: 28px;
  --radius-btn: 14px;
  --radius-icon: 16px;

  --z-desktop: 1;
  --z-window-base: 100;
  --z-taskbar: 10000;
  --z-tooltip: 10001;
  --z-screensaver: 20000;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
               Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Cascadia Code", "JetBrains Mono",
               Menlo, Consolas, monospace;

  --accent: #1a1a1a;
  --accent-light: #f0f0ee;
  --green: #2d5a4c;
  --yellow: #dda15e;
  --red: #e07a5f;
  --orange: #d4a373;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
}

a {
  color: var(--text-link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

code, pre {
  font-family: var(--font-mono);
}

pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 1rem;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.6;
  white-space: pre;
  tab-size: 2;
}

code {
  background: rgba(0, 0, 0, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  outline: none;
}

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

/* Scrollbar normalization */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.2); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: #333;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--accent-light);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: #e8e8e5;
}

/* Mobile responsive */
@media (max-width: 768px) {
  :root {
    --radius-window: 24px;
  }
}
