/* ===== Custom Styles for Alignerr Clone ===== */

/* Dot pattern background */
.bg-dot-pattern {
  background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Dashed border patterns */
.border-dashed-x-wide {
  border-top: 1px dashed currentColor;
}
.border-dashed-y-wide {
  border-left: 1px dashed currentColor;
}

/* Slanted lines background */
.bg-slanted-lines {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    currentColor 10px,
    currentColor 11px
  );
  background-size: 100% 100%;
}

/* Job card hover */
.job-card {
  transition: all 0.3s ease;
}
.job-card:hover {
  background-color: rgba(0, 0, 0, 0.02);
}
.dark .job-card:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Category filter active */
.filter-btn.active {
  background-color: #f5f5f5;
  color: #171717;
  font-weight: 500;
}
.dark .filter-btn.active {
  background-color: #0a0a0a;
  color: #fafafa;
}
.filter-btn.active .filter-indicator {
  background-color: #171717;
}
.dark .filter-btn.active .filter-indicator {
  background-color: #fafafa;
}

/* Accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.accordion-content.open {
  max-height: 1000px;
  transition: max-height 0.5s ease-in;
}

/* Process step highlight */
.process-step {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.process-step.active {
  opacity: 1;
}

/* Button glow on hover */
.btn-glow {
  position: relative;
  overflow: hidden;
}
.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 50%;
  background: radial-gradient(ellipse at top, rgba(203,203,203,0.9) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  filter: blur(8px);
}
.dark .btn-glow::before {
  background: radial-gradient(ellipse at top, rgba(50,50,50,0.9) 0%, transparent 70%);
}
.btn-glow:hover::before {
  opacity: 1;
}

/* Smooth page transitions */
.page-transition {
  animation: fadeIn 0.3s ease-in;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Story card */
.story-card {
  transition: all 0.3s ease;
}
.story-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Search input focus */
input[type="text"]:focus {
  box-shadow: 0 0 0 2px #171717;
}
.dark input[type="text"]:focus {
  box-shadow: 0 0 0 2px #fafafa;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f5f5;
}
::-webkit-scrollbar-thumb {
  background: #a3a3a3;
  border-radius: 4px;
}
.dark ::-webkit-scrollbar-track {
  background: #171717;
}
.dark ::-webkit-scrollbar-thumb {
  background: #525252;
}

/* Mobile menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open {
  transform: translateX(0);
}

/* Salary badge */
.salary-badge {
  background: linear-gradient(135deg, #f5f5f4, #e7e5e4);
}
.dark .salary-badge {
  background: linear-gradient(135deg, #1c1917, #292524);
}

/* ===== Job Detail — prose typography ===== */
.job-prose {
  color: #404040;
  line-height: 1.75;
  font-size: 15px;
}

/* Headings */
.job-prose h1 {
  font-family: "neue-haas-grotesk-display", "IBM Plex Sans", sans-serif;
  font-size: 28px;
  font-weight: 500;
  color: #171717;
  margin: 0 0 24px 0;
  line-height: 1.3;
}
.job-prose h2 {
  font-family: "neue-haas-grotesk-display", "IBM Plex Sans", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #171717;
  margin: 32px 0 16px 0;
  line-height: 1.35;
}
.job-prose h3 {
  font-family: "neue-haas-grotesk-display", "IBM Plex Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #171717;
  margin: 28px 0 12px 0;
  line-height: 1.4;
}
/* First heading — no top margin */
.job-prose > h1:first-child,
.job-prose > h2:first-child,
.job-prose > h3:first-child {
  margin-top: 0;
}

/* Paragraphs */
.job-prose p {
  margin: 0 0 16px 0;
  color: #525252;
}
.job-prose p em {
  color: #737373;
  font-size: 14px;
}

/* Lists */
.job-prose ul {
  list-style-type: disc;
  padding-left: 24px;
  margin: 0 0 20px 0;
}
.job-prose ul li {
  margin-bottom: 8px;
  color: #525252;
  padding-left: 4px;
}
.job-prose ul li strong {
  color: #171717;
  font-weight: 600;
}

/* Horizontal rules */
.job-prose hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 24px 0;
}

/* Dark mode overrides */
.dark .job-prose {
  color: #a3a3a3;
}
.dark .job-prose h1,
.dark .job-prose h2,
.dark .job-prose h3 {
  color: #f5f5f5;
}
.dark .job-prose p {
  color: #a3a3a3;
}
.dark .job-prose ul li {
  color: #a3a3a3;
}
.dark .job-prose ul li strong {
  color: #e5e5e5;
}
.dark .job-prose hr {
  border-top-color: #404040;
}
