/* Global Styles */

:root {
  --color-primary: #d97706;
  --color-primary-dark: #b45309;
  --color-primary-light: #fcd34d;
  --color-neutral-900: #171717;
  --color-neutral-800: #262626;
  --color-neutral-700: #404040;
  --color-neutral-600: #525252;
  --color-neutral-500: #737373;
  --color-neutral-400: #a3a3a3;
  --color-neutral-300: #d4d4d4;
  --color-neutral-200: #e5e5e5;
  --color-neutral-100: #f5f5f5;
  --color-neutral-50: #fafafa;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-neutral-900);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  color: var(--color-neutral-600);
  line-height: 1.6;
}

strong, .font-semibold {
  font-weight: 600;
}

bold, .font-bold {
  font-weight: 700;
}

/* Links */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

/* Buttons */
button, input[type="button"], input[type="submit"] {
  cursor: pointer;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
}

button:focus, input[type="button"]:focus, input[type="submit"]:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Primary Button */
.btn-primary, button.primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover, button.primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-primary:active, button.primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.btn-secondary, button.secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover, button.secondary:hover {
  background-color: rgba(217, 119, 6, 0.1);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--color-neutral-300);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  background-color: white;
  color: var(--color-neutral-900);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
  outline: none;
}

/* Cards */
.card {
  border: 1px solid var(--color-neutral-200);
  border-radius: 0.5rem;
  padding: 1.5rem;
  background: white;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--color-neutral-300);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(217, 119, 6, 0.1);
  color: var(--color-primary-dark);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Dividers */
hr, .divider {
  border: none;
  height: 1px;
  background-color: var(--color-neutral-200);
  margin: 1.5rem 0;
}

/* Code blocks */
code {
  background-color: var(--color-neutral-100);
  border-radius: 0.25rem;
  padding: 0.125rem 0.375rem;
  font-family: 'Courier New', monospace;
  color: var(--color-neutral-900);
}

pre {
  background-color: var(--color-neutral-900);
  color: #e0e0e0;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* Lists */
ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

ul li, ol li {
  margin-bottom: 0.5rem;
  color: var(--color-neutral-600);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Responsive images */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}
