/* Planetary Talent Brand Colors */
:root {
  --color-brand-primary: rgb(237 96 51);
  --color-brand-orange: rgb(237 96 51);
  --color-brand-orange-light: rgb(254 243 199);
  --color-brand-teal: rgb(93 198 173);
  --color-brand-teal-light: rgb(234 247 244);
  --color-brand-blue: rgb(93 163 198);
  --color-brand-blue-light: rgb(219 234 254);
  --color-brand-black: rgb(26 26 26);
  /* Backgrounds */
  --background: rgb(247, 243, 242);
  --background-secondary: rgb(255, 255, 255);
  --background-tertiary: rgb(247, 243, 242);

  /* Text */
  --foreground: 0 0% 13%;
  --muted-foreground: 0 0% 46%;
  --muted: 0 0% 96.5%;

  /* Borders */
  --border: 0 0% 91%;
  --input: 0 0% 91%;
  --ring: 14 80% 57%;

  /* Primary (Orange) */
  --primary: 14 80% 57%;
  --primary-foreground: 0 0% 100%;

  /* Secondary */
  --secondary: 0 0% 96%;
  --secondary-foreground: 0 0% 13%;

  /* Accent (Teal) */
  --accent: 162 45% 55%;
  --accent-foreground: 0 0% 100%;

  /* Destructive */
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 98%;

  /* Border Radius */
  --radius: 0.5rem;
  --radius-pill: 100px;
}

* {
  border-color: hsl(var(--border));
}

html {
  font-size: 1.125rem;
}

body {
  background-color: var(--background);
  color: hsl(var(--foreground));
  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

/* Markdown/Prose styling */
.markdown-content {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.markdown-content p {
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  color: hsl(var(--foreground));
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.markdown-content h1 { font-size: 1.5rem; }
.markdown-content h2 { font-size: 1.25rem; }
.markdown-content h3 { font-size: 1.125rem; }
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 { font-size: 1rem; }

.markdown-content ul,
.markdown-content ol {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.markdown-content ul { list-style-type: disc; }
.markdown-content ol { list-style-type: decimal; }

.markdown-content li {
  margin-bottom: 0.375rem;
  padding-left: 0.25rem;
}

.markdown-content li::marker {
  color: hsl(var(--muted-foreground));
}

.markdown-content strong {
  color: hsl(var(--foreground));
  font-weight: 600;
}

.markdown-content a {
  color: var(--color-brand-orange);
  text-decoration: underline;
}

.markdown-content a:hover { opacity: 0.8; }

.markdown-content blockquote {
  border-left: 3px solid var(--color-brand-orange);
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: hsl(var(--muted-foreground));
}

.markdown-content code {
  background-color: hsl(var(--muted));
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.markdown-content pre {
  background-color: hsl(var(--muted));
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.markdown-content pre code {
  background: none;
  padding: 0;
}

.markdown-content hr {
  border: none;
  border-top: 1px solid hsl(var(--border));
  margin: 1.5rem 0;
}

.markdown-content > *:first-child { margin-top: 0; }
.markdown-content > *:last-child { margin-bottom: 0; }

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 150ms;
  cursor: pointer;
  outline: none;
  border-radius: 100px;
  height: 2.5rem;
  padding: 0.5rem 1rem;
  border: none;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn svg {
  pointer-events: none;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--color-brand-orange);
  color: white;
}

.btn-outline {
  border: 1px solid var(--color-brand-orange);
  color: var(--color-brand-orange);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--color-brand-orange);
  color: white;
}

.btn-ghost {
  background: transparent;
  border-radius: 0.5rem;
}

.btn-ghost:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-sm {
  height: 2.25rem;
  padding: 0 0.75rem;
}

.btn-full {
  width: 100%;
  height: 2.75rem;
}

.btn-lg {
  height: 2.75rem;
  padding: 0 2rem;
}

/* Input styles */
.input {
  width: 100%;
  min-width: 0;
  height: 2.25rem;
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--input));
  background-color: transparent;
  padding: 0.25rem 0.75rem;
  font-size: 1rem;
  box-sizing: border-box;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  transition: color 150ms, box-shadow 150ms;
  outline: none;
}

.input::placeholder {
  color: hsl(var(--muted-foreground));
}

.input:focus-visible {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.5);
}

.input:disabled {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.5;
}

@media (min-width: 768px) {
  .input {
    font-size: 0.875rem;
  }
}

/* Select trigger */
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  font-size: 0.875rem;
  background: white;
  cursor: pointer;
  outline: none;
}

.select-trigger:focus {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.5);
}

/* Mobile sheet overlay */
.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0.5);
}

.sheet-content {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  width: 100%;
  max-width: 380px;
  background-color: var(--background-secondary);
  border-left: 1px solid hsl(var(--border));
  padding: 1.5rem;
  transition: transform 300ms ease-in-out;
}

/* Slider track */
.slider-track {
  position: relative;
  width: 100%;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: hsl(var(--secondary));
}

.slider-range {
  position: absolute;
  height: 100%;
  border-radius: 9999px;
  background-color: var(--color-brand-orange);
}

.slider-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  border: 2px solid var(--color-brand-orange);
  background-color: white;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}
