/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* ===== Global UI Polish ===== */

/* Elevated card shadow — use instead of Tailwind's shadow-sm */
.card-shadow {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}
.card-shadow-md {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Cards with border — hover lift */
.card-shadow.border:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Primary CTA buttons */
body .bg-blue-600 {
  border-radius: 8px !important;
  transition: all 0.2s ease;
}
body .bg-blue-600:hover {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
  transform: translateY(-1px);
}

/* ===== Typography ===== */
body h1 {
  letter-spacing: -0.025em;
}
body h2 {
  letter-spacing: -0.015em;
}
body a {
  transition: color 0.15s ease;
}

/* ---------------------------------------------------------------------------
 * Rich-text (Action Text / Trix) typography.
 * actiontext.css zeroes all margins inside .trix-content and Tailwind's
 * preflight strips list markers, so structured job descriptions (h1 sections,
 * bullet lists — e.g. AI-generated JDs) rendered as an unreadable flat wall.
 * These rules restore hierarchy everywhere rich text appears: the rendered
 * .trix-content output, the trix-editor itself, and the .prose wrappers on
 * the job pages (Tailwind's typography plugin is not installed, so .prose
 * alone does nothing).
 * ------------------------------------------------------------------------- */
.trix-content h1, trix-editor h1, .prose h1 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 1.25em 0 0.5em;
}
.trix-content h1:first-child, trix-editor h1:first-child, .prose h1:first-child {
  margin-top: 0;
}
.trix-content p, trix-editor div, .prose p {
  margin: 0 0 0.75em;
}
.trix-content ul, trix-editor ul, .prose ul {
  list-style: disc;
  margin: 0 0 0.75em;
  padding-left: 1.5em;
}
.trix-content ol, trix-editor ol, .prose ol {
  list-style: decimal;
  margin: 0 0 0.75em;
  padding-left: 1.5em;
}
.trix-content li, trix-editor li, .prose li {
  margin: 0 0 0.25em;
}
