/* Enhanced UI theme overrides
   Fonts: Inter (body), Poppins (headings)
   Colors: reuse existing palette (primary, accent, neutrals) - no new colors
*/

/* Typography */
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,
h2,
h3,
.brand {
  font-family: "Poppins", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif;
  letter-spacing: -0.015em;
}

/* Header polish */
.site-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(6px);
}
.brand {
  transition: color .2s ease, transform .2s ease;
}
.brand:hover {
  transform: translateY(-1px);
}

/* Nav underline animation */
.nav a {
  position: relative;
  transition: background-color .2s ease, color .2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

/* Buttons micro-interactions */
.btn {
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary,
.btn-accent {
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.18); /* uses primary tone */
}
.btn-accent {
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.18); /* accent tone */
}

/* Cards hover lift and subtle shadow */
.card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  border-color: #e5e7eb;
}

/* Hero solid background (no gradients per guidelines) + spacing */
.hero {
  background: #fff !important;
}
.hero h1 {
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.2rem);
}

/* Tables: row hover */
.table tbody tr {
  transition: background-color .2s ease;
}
.table tbody tr:hover {
  background: #f9fafb;
}

/* Focus visibility */
:where(a, button, input, select) {
  outline: none;
}
:where(a, button, .input, select):focus-visible {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.35);
  border-radius: 10px;
}

/* Reveal-on-scroll animation */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
