/**
 * Semantic Tension Tools — Shared Styling
 * Inherits design system from main site while maintaining tool-specific needs
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Core Design Tokens (from semantic tension) */
  --tool-bg: 255 255 255;
  --tool-text: 10 10 10;
  --tool-text-muted: 115 115 115;
  --tool-surface-0: 255 255 255;
  --tool-surface-1: 250 250 250;
  --tool-surface-2: 245 245 245;
  --tool-border: 229 231 235;
  --tool-border-dark: 156 163 175;
  --tool-accent: 99 102 241;
  --tool-success: 34 197 94;
}

/* Base Typography */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: rgb(var(--tool-bg));
  color: rgb(var(--tool-text));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 4rem; /* Space for fixed nav */
}

@media (min-width: 640px) {
  body {
    padding-top: 2.5rem; /* Less padding on larger screens */
  }
}

/* Override Tailwind CDN Dark Classes → Light Theme */
.bg-neutral-950 {
  background: rgb(var(--tool-bg)) !important;
  color: rgb(var(--tool-text)) !important;
}

.bg-neutral-900 {
  background: rgb(var(--tool-surface-1)) !important;
  border-color: rgb(var(--tool-border)) !important;
}

.bg-neutral-800 {
  background: rgb(var(--tool-surface-2)) !important;
  border-color: rgb(var(--tool-border)) !important;
}

.text-neutral-100 {
  color: rgb(var(--tool-text)) !important;
}

.text-neutral-400 {
  color: rgb(var(--tool-text-muted)) !important;
}

.text-neutral-500 {
  color: rgb(var(--tool-text-muted)) !important;
}

.text-neutral-600 {
  color: rgb(156 163 175) !important;
}

.border-neutral-700 {
  border-color: rgb(var(--tool-border)) !important;
}

.border-neutral-400 {
  border-color: rgb(var(--tool-border-dark)) !important;
}

/* Hover States */
.hover\:text-neutral-100:hover {
  color: rgb(var(--tool-text)) !important;
}

.hover\:bg-neutral-700:hover {
  background: rgb(var(--tool-surface-2)) !important;
}

.hover\:bg-black\/5:hover {
  background: rgb(var(--tool-surface-1)) !important;
}

/* Focus States */
.focus\:border-neutral-500:focus {
  border-color: rgb(var(--tool-border-dark)) !important;
  outline: none;
}

/* Accent/Success Colors (keep as-is) */
.text-green-400 {
  color: rgb(var(--tool-success)) !important;
}

/* Buttons */
.bg-neutral-100 {
  background: rgb(var(--tool-text)) !important;
  color: rgb(var(--tool-bg)) !important;
}

.hover\:bg-white\/90:hover {
  background: rgb(50 50 50) !important;
}

/* Backdrop for drop zones */
.bg-neutral-950\/95 {
  background: rgba(var(--tool-bg), 0.95) !important;
}

/* Custom Tool Components */
.tool-header {
  text-align: center;
  margin-bottom: 2rem;
}

.tool-container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
}
