/* APSRecruits V2 — Custom Styles */
/* Supplements Tailwind with brand-specific animations & overrides */

:root {
  --brand: #f9550d;
  --brand-light: #ff6b2b;
  --brand-dark: #e8440a;
  --navy: #151133;
  --navy-light: #1e1a4a;
  --navy-dark: #0d0b26;
}

/* ── Smooth scroll ───────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

/* ── Navbar states ───────────────────────────────────── */
#navbar {
  background: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#navbar.scrolled {
  background: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Always dark text — never white, even on transparent bg */
#navbar .nav-link { color: #151133 !important; }
#navbar .nav-link:hover { background: rgba(0, 0, 0, 0.04); color: #151133 !important; }
#navbar #mobile-toggle { color: #151133 !important; }
#navbar a, #navbar button, #navbar span { color: inherit; }

/* ── Fade-in on scroll ────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hamburger animation ──────────────────────────── */
#mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
#mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
#mobile-toggle.active .hamburger-line:nth-child(3) {
  width: 1.25rem;
  transform: translateY(-8px) rotate(-45deg);
}

/* ── Bento Grid — Fun asymmetric layout ────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bento-card {
  min-height: 180px;
}
.bento-wide {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-wide {
    grid-column: span 2;
  }
}
@media (max-width: 480px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-wide {
    grid-column: span 1;
  }
}

/* ── Blog article styles ──────────────────────────── */
.prose h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  color: #111;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.prose h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #333;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.prose p {
  font-family: 'Inter', sans-serif;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.prose ul, .prose ol {
  font-family: 'Inter', sans-serif;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.prose li {
  margin-bottom: 0.5rem;
}
.prose blockquote {
  border-left: 4px solid var(--brand);
  background: #fff7ed;
  padding: 1rem 1.5rem;
  border-radius: 0 0.75rem 0.75rem 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: #92400e;
}
.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover {
  color: var(--brand-dark);
}
.prose strong {
  color: #111;
  font-weight: 600;
}

/* ── Callout/email template blocks ────────────────── */
.callout {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #475569;
}
.callout-header {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

/* ── Selection ────────────────────────────────────── */
::selection {
  background: rgba(249, 85, 13, 0.15);
  color: #151133;
}

/* ── Smooth focus ring ────────────────────────────── */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ── Reduced motion ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .fade-in { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── Stats Ticker ─────────────────────────────────── */
@keyframes ticker-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
.animate-ticker {
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.ticker-track {
  width: max-content;
}
.animate-ticker:hover {
  animation-play-state: paused;
}
