/* ============================================
   HireFound — Shared Styles
   Source of truth: Homepage (/index.html)
   ============================================ */

/* === CSS Custom Properties === */
:root {
  --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-quint: cubic-bezier(0.86, 0, 0.07, 1);
  --primary: #8B2252;
  --secondary: #D4A574;
  --dark: #1A1A2E;
}

/* === Sticky Nav === */
.nav-glass {
  background: rgba(196, 181, 253, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #FDA4AF;
}

/* === Nav Logo (pre-colored primary SVG, no filter needed) === */
.nav-logo {
  transition: opacity 0.2s ease;
}
.nav-logo:hover {
  opacity: 0.75;
}

/* === Footer Logo (signature SVG in white on dark bg) === */
.footer-logo {
  filter: brightness(0) invert(1);
}

/* === Scroll Reveal === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out-quint), transform 0.6s var(--ease-out-quint);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* === Cards === */
.premium-card {
  position: relative;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-quint), box-shadow 0.4s var(--ease-out-quint);
  transform-style: preserve-3d;
  will-change: transform;
}
.premium-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 0 0 4px 4px;
  transition: width 0.5s var(--ease-out-quint);
}
.premium-card:hover::after {
  width: 100%;
}
.premium-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(139, 34, 82, 0.12);
}

/* === Filter Pills === */
.filter-pill {
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  color: #6B6560;
  background: rgba(139, 34, 82, 0.06);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.filter-pill:hover {
  background: rgba(139, 34, 82, 0.1);
  color: var(--primary);
}
.filter-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.filter-pill:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* === Skip to Content === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100;
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

/* === Focus Indicators === */
a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* === Arabic Font (from Jobs_Page) === */
[lang="ar"], [dir="rtl"] {
  font-family: 'Noto Sans Arabic', 'Inter', system-ui, sans-serif;
}


/* === Rich Text Content (Job Descriptions) === */
.prose a,
.job-description a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.prose a:hover,
.job-description a:hover {
  color: #1d4ed8;
}
.prose h2, .job-description h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.prose h3, .job-description h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}
.prose ul, .job-description ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}
.prose ol, .job-description ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}
.prose li, .job-description li {
  margin-bottom: 0.25rem;
}
