@import "tailwindcss";

@theme inline {
  /* Brand Colors - Cierre Scale */
  --color-steel-50: #f6f7f9;
  --color-steel-100: #eceef2;
  --color-steel-200: #d5d9e2;
  --color-steel-300: #b1bac9;
  --color-steel-400: #8695aa;
  --color-steel-500: #677690;
  --color-steel-600: #525f77;
  --color-steel-700: #434d61;
  --color-steel-800: #3a4252;
  --color-steel-900: #343a46;
  --color-steel-950: #1e2128;

  --color-wood-50: #faf8f6;
  --color-wood-100: #f2ede6;
  --color-wood-200: #e4d9cc;
  --color-wood-300: #d3c0aa;
  --color-wood-400: #c0a186;
  --color-wood-500: #b4896c;
  --color-wood-600: #a77560;
  --color-wood-700: #8b5f51;
  --color-wood-800: #724f46;
  --color-wood-900: #5d423b;
  --color-wood-950: #31211e;

  --color-bronze-50: #fbf9f1;
  --color-bronze-100: #f5edda;
  --color-bronze-200: #ead8b4;
  --color-bronze-300: #dcbd85;
  --color-bronze-400: #d0a15e;
  --color-bronze-500: #c68943;
  --color-bronze-600: #b87138;
  --color-bronze-700: #995630;
  --color-bronze-800: #7c462d;
  --color-bronze-900: #663b27;
  --color-bronze-950: #391d12;

  --color-accent: #c68943;
  --color-accent-light: #d0a15e;
  --color-accent-dark: #995630;

  --font-sans: var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
}

:root {
  --background: #0f0f11;
  --foreground: #faf8f6;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans, system-ui, sans-serif);
}

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

::-webkit-scrollbar-track {
  background: #1e2128;
}

::-webkit-scrollbar-thumb {
  background: #434d61;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #525f77;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(198, 137, 67, 0.3); }
  50% { box-shadow: 0 0 40px rgba(198, 137, 67, 0.6); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in {
  animation: slideIn 0.5s ease-out forwards;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Glass Effect */
.glass {
  background: rgba(30, 33, 40, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #c68943 0%, #d0a15e 50%, #e4d9cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Range Slider Custom */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
}

input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, #c68943 0%, #434d61 100%);
  height: 6px;
  border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -7px;
  background: #c68943;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  border: 3px solid #1e2128;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(198, 137, 67, 0.5);
}

input[type="range"]::-moz-range-track {
  background: linear-gradient(90deg, #c68943 0%, #434d61 100%);
  height: 6px;
  border-radius: 3px;
}

input[type="range"]::-moz-range-thumb {
  background: #c68943;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  border: 3px solid #1e2128;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Canvas Container */
.canvas-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: radial-gradient(ellipse at center, #1e2128 0%, #0f0f11 70%);
  border-radius: 12px;
  overflow: hidden;
}

.canvas-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 15, 17, 0.3) 100%);
  pointer-events: none;
  z-index: 1;
}
