/* ==========================================================================
   Scroll Market — Editorial Matte & Warm Cream Design System
   Human-crafted, tactile, warm porcelain palette (no dark neon AI tropes)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Warm Cream & Porcelain Canvas */
  --bg-cream: #faf8f5;
  --bg-cream-warm: #f4eee2;
  --bg-card: #ffffff;
  --bg-card-alt: #f8f5ee;
  
  /* Natural Matte Borders */
  --border-subtle: #e8e2d5;
  --border-strong: #d8d0c0;
  --border-focus: #1c1917;

  /* Typography Colors */
  --text-primary: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #857f78;

  /* Matte Color Accents (No glossy neons) */
  --matte-charcoal: #1c1917;
  --matte-berry: #9f1239;
  --matte-berry-soft: #fdf2f4;
  --matte-rose: #be185d;
  --matte-ocean: #0369a1;
  --matte-ocean-soft: #f0f9ff;
  --matte-sage: #166534;
  --matte-sage-soft: #f0fdf4;
  --matte-terracotta: #c2410c;
  
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  background-color: var(--bg-cream);
  color: var(--text-primary);
  font-family: var(--font-sans);
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

/* ==========================================================================
   MATTE UNIFIED ICONS
   All icons default to warm matte stone/charcoal color (#44403c)
   ========================================================================== */
svg.lucide, i[data-lucide] {
  color: #44403c !important;
  stroke: #44403c !important;
}

/* Exceptions: Solid contrast buttons keep white icons */
.btn-matte-primary svg.lucide,
.btn-matte-rose svg.lucide,
.btn-matte-forest svg.lucide,
.btn-matte-primary i[data-lucide],
.btn-matte-rose i[data-lucide],
.btn-matte-forest i[data-lucide] {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* Matte Icon Badges */
.icon-box-matte {
  background-color: #f4eee2;
  border: 1px solid #e8e2d5;
  color: #44403c;
}

/* Matte Cards with subtle, natural physical shadow */
.card-matte {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 0.875rem;
  box-shadow: 0 1px 3px rgba(40, 35, 25, 0.03), 0 3px 8px rgba(40, 35, 25, 0.02);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-matte:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 12px rgba(40, 35, 25, 0.05);
}

/* Matte Buttons */
.btn-matte-primary {
  background-color: #1c1917;
  color: #ffffff;
  border: 1px solid #1c1917;
  transition: all 0.15s ease;
}
.btn-matte-primary:hover {
  background-color: #2e2a27;
  border-color: #2e2a27;
}

.btn-matte-rose {
  background-color: #be185d;
  color: #ffffff;
  border: 1px solid #9d174d;
  transition: all 0.15s ease;
}
.btn-matte-rose:hover {
  background-color: #9d174d;
}

.btn-matte-secondary {
  background-color: #f3ede2;
  color: #1c1917;
  border: 1px solid #dcd3c3;
  transition: all 0.15s ease;
}
.btn-matte-secondary:hover {
  background-color: #ebe3d5;
  border-color: #cfc4b1;
}

.btn-matte-forest {
  background-color: #15803d;
  color: #ffffff;
  border: 1px solid #166534;
  transition: all 0.15s ease;
}
.btn-matte-forest:hover {
  background-color: #166534;
}

/* Matte Pill Badges */
.badge-sage {
  background-color: #f4eee2;
  border: 1px solid #e8e2d5;
  color: #44403c;
}

.badge-rose {
  background-color: #f4eee2;
  border: 1px solid #e8e2d5;
  color: #44403c;
}

.badge-sky {
  background-color: #f4eee2;
  border: 1px solid #e8e2d5;
  color: #44403c;
}

.badge-warm {
  background-color: #f4eee2;
  border: 1px solid #e8e2d5;
  color: #44403c;
}

/* Interactive Configurator Options */
.config-option {
  cursor: pointer;
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  transition: all 0.15s ease;
}

.config-option:hover {
  border-color: var(--border-strong);
  background-color: #fcfbf9;
}

.config-option.selected {
  border: 2px solid #1c1917 !important;
  background-color: #f4eee2 !important;
}

/* Large Demo Mockup Container */
.demo-window-frame {
  background-color: #ffffff;
  border: 1px solid #dfd8cc;
  box-shadow: 0 8px 24px -8px rgba(45, 38, 25, 0.08), 0 16px 32px -12px rgba(45, 38, 25, 0.05);
  border-radius: 1rem;
}

/* Custom Scrollbar for warm aesthetic */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #f4eee2;
}
::-webkit-scrollbar-thumb {
  background: #d8d0c0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b5ac9b;
}
