/* ============================================
   SIMS 4 CC CREATOR — Design System
   Inspired by The Sims 4 UI + Modern Dark Theme
   ============================================ */

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

/* ---- Color Tokens ---- */
:root {
  /* Sims-Inspired Palette */
  --plumbob-green: #39b54a;
  --plumbob-green-light: #5cdb6e;
  --plumbob-green-dark: #2a8a38;
  --plumbob-glow: rgba(57, 181, 74, 0.3);
  --diamond-blue: #3a8fd4;
  --diamond-blue-light: #5ba8e8;
  --simoleon-gold: #f5c542;
  --simoleon-gold-dark: #d4a520;
  --romance-pink: #e84393;
  --skill-purple: #8e44ad;

  /* Dark Theme Base */
  --bg-primary: #0d0f14;
  --bg-secondary: #141820;
  --bg-tertiary: #1a1f2e;
  --bg-elevated: #1e2538;
  --bg-card: rgba(30, 37, 56, 0.7);
  --bg-glass: rgba(30, 37, 56, 0.5);
  --bg-glass-hover: rgba(40, 50, 75, 0.6);

  /* Surface Colors */
  --surface-border: rgba(255, 255, 255, 0.06);
  --surface-border-hover: rgba(255, 255, 255, 0.12);
  --surface-overlay: rgba(0, 0, 0, 0.5);

  /* Text Colors */
  --text-primary: #f0f2f5;
  --text-secondary: #9ba4b5;
  --text-tertiary: #6b7280;
  --text-accent: var(--plumbob-green-light);
  --text-inverse: #0d0f14;

  /* Semantic Colors */
  --success: #34d399;
  --warning: #fbbf24;
  --error: #f87171;
  --info: var(--diamond-blue-light);

  /* Gradients */
  --gradient-plumbob: linear-gradient(135deg, #2a8a38, #39b54a, #5cdb6e);
  --gradient-header: linear-gradient(135deg, #141820, #1a1f2e);
  --gradient-glass: linear-gradient(135deg, rgba(30, 37, 56, 0.8), rgba(20, 24, 32, 0.6));
  --gradient-accent: linear-gradient(135deg, var(--plumbob-green), var(--diamond-blue));
  --gradient-gold: linear-gradient(135deg, var(--simoleon-gold), var(--simoleon-gold-dark));

  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px var(--plumbob-glow);
  --shadow-glow-lg: 0 0 40px var(--plumbob-glow);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-toast: 400;
  --z-tooltip: 500;

  /* Sidebar */
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background Pattern — subtle grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(57, 181, 74, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(58, 143, 212, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(142, 68, 173, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

img {
  max-width: 100%;
  height: auto;
}

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

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

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

::-webkit-scrollbar-track {
  background: transparent;
}

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

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

/* ---- Selection ---- */
::selection {
  background: var(--plumbob-green);
  color: var(--text-inverse);
}

/* ---- Focus ---- */
:focus-visible {
  outline: 2px solid var(--plumbob-green);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---- 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;
}

.text-gradient {
  background: var(--gradient-plumbob);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
