@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  ::selection {
    background-color: rgb(251 191 36 / 0.25);
    color: #92400e;
  }

  html.dark ::selection {
    color: #fef3c7;
  }

  ::-webkit-scrollbar {
    width: 5px;
  }

  ::-webkit-scrollbar-track {
    background: #f4f4f5;
  }

  ::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 3px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #a1a1aa;
  }

  html.dark ::-webkit-scrollbar-track {
    background: #09090b;
  }

  html.dark ::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 3px;
  }

  html.dark ::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
  }

  .devise-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
  }

  .devise-links a {
    font-size: 0.8125rem;
    color: #71717a;
    transition: color 0.15s;
    text-decoration: none;
  }

  .devise-links a:hover {
    color: #fbbf24;
  }

  #error_explanation {
    margin-bottom: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #fca5a5;
    background: rgba(254, 202, 202, 0.3);
    padding: 1rem;
  }

  html.dark #error_explanation {
    border-color: #7f1d1d;
    background: rgba(127, 29, 29, 0.2);
  }

  #error_explanation h2 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #b91c1c;
    margin-bottom: 0.5rem;
  }

  html.dark #error_explanation h2 {
    color: #fca5a5;
  }

  #error_explanation ul {
    list-style: disc;
    padding-left: 1rem;
  }

  #error_explanation li {
    font-size: 0.875rem;
    color: #dc2626;
  }

  html.dark #error_explanation li {
    color: #f87171;
  }
}

@layer components {
  .section-label {
    @apply text-xs font-semibold uppercase tracking-widest text-amber-500;
  }
}

/* Negotiation prose — outside @layer so these always win */
.negotiation-prose h1 {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #18181b;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e4e4e7;
}

.negotiation-prose h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f59e0b;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.negotiation-prose h2::before {
  content: '';
  display: inline-block;
  height: 0.375rem;
  width: 0.375rem;
  border-radius: 9999px;
  background-color: #f59e0b;
  flex-shrink: 0;
}

.negotiation-prose h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #27272a;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.negotiation-prose p {
  font-size: 0.875rem;
  color: #3f3f46;
  line-height: 1.625;
  margin-bottom: 0.75rem;
}

.negotiation-prose ul {
  margin-bottom: 1rem;
}

.negotiation-prose ul li {
  font-size: 0.875rem;
  color: #3f3f46;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
}

.negotiation-prose ul li::before {
  content: '—';
  color: #a1a1aa;
  flex-shrink: 0;
}

.negotiation-prose ol {
  margin-bottom: 1rem;
  counter-reset: list-counter;
}

.negotiation-prose ol li {
  font-size: 0.875rem;
  color: #3f3f46;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
  counter-increment: list-counter;
}

.negotiation-prose ol li::before {
  content: counter(list-counter) '.';
  color: #71717a;
  flex-shrink: 0;
  font-weight: 500;
}

.negotiation-prose strong {
  font-weight: 600;
  color: #18181b;
}

.negotiation-prose em {
  font-style: italic;
  color: #52525b;
}

.negotiation-prose hr {
  border-color: #e4e4e7;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.negotiation-prose blockquote {
  border-left: 2px solid rgba(245, 158, 11, 0.4);
  padding-left: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.negotiation-prose blockquote p {
  font-style: italic;
  color: #3f3f46;
}

.negotiation-prose code {
  color: #d97706;
  background: #f4f4f5;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-family: monospace;
}

/* Dark mode overrides */
html.dark .negotiation-prose h1 {
  color: #f4f4f5;
  border-bottom-color: #27272a;
}

html.dark .negotiation-prose h3 {
  color: #e4e4e7;
}

html.dark .negotiation-prose p {
  color: #a1a1aa;
}

html.dark .negotiation-prose ul li {
  color: #a1a1aa;
}

html.dark .negotiation-prose ul li::before {
  color: #52525b;
}

html.dark .negotiation-prose ol li {
  color: #a1a1aa;
}

html.dark .negotiation-prose ol li::before {
  color: #71717a;
}

html.dark .negotiation-prose strong {
  color: #e4e4e7;
}

html.dark .negotiation-prose em {
  color: #d4d4d8;
}

html.dark .negotiation-prose hr {
  border-color: #27272a;
}

html.dark .negotiation-prose blockquote p {
  color: #a1a1aa;
}

html.dark .negotiation-prose code {
  color: #fbbf24;
  background: rgba(39, 39, 42, 0.6);
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
