/* ShawReply custom CSS — on top of Tailwind CDN.
   Only styles Tailwind utility classes can't do cleanly. */

/* ───── Form field toggle helper ─────
   main.js adds/removes .hidden for visible-state transitions. */

/* ───── Fade-in on scroll (IntersectionObserver adds .fade-in-visible) ───── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ───── Nav scroll state ───── */
#site-nav {
  transition: background-color 200ms ease, backdrop-filter 200ms ease, border-color 200ms ease;
}
.nav-scrolled {
  background-color: rgba(11, 17, 32, 0.8) !important;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: rgba(36, 51, 86, 0.5) !important;
}

/* ───── Hero radial background ───── */
.hero-bg {
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(255, 107, 44, 0.18), transparent 60%),
    radial-gradient(ellipse 80% 50% at 80% 10%, rgba(255, 107, 44, 0.08), transparent 60%);
}

/* ───── Glass card ───── */
.glass {
  background: rgba(19, 27, 46, 0.6);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border: 1px solid rgba(36, 51, 86, 0.6);
}

/* ───── Audit form field layout ───── */
.audit-form .field input,
.audit-form .field select {
  width: 100%;
  background-color: #131b2e;
  border: 1px solid #243356;
  color: #eef2ff;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
}
.audit-form .field input:focus,
.audit-form .field select:focus {
  border-color: #ff6b2c;
  box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.15);
}
.audit-form .field input::placeholder {
  color: #8b93b7;
}
.audit-form optgroup {
  color: #8b93b7;
  font-weight: 700;
  font-style: normal;
}

/* ───── Review card accent bars (Tailwind can't do :not() + sentiment easily) ───── */
.review-card {
  position: relative;
  overflow: hidden;
}
.review-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #243356;
}
.review-card[data-sentiment="positive"]::before { background: #10b981; }
.review-card[data-sentiment="mixed"]::before    { background: #f59e0b; }
.review-card[data-sentiment="negative"]::before  { background: #ef4444; }

/* ───── Mono stat numbers ───── */
.stat-value {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
}

/* ───── Copy-to-clipboard button states ───── */
.copy-btn.copied {
  background-color: rgba(16, 185, 129, 0.15) !important;
  border-color: #10b981 !important;
  color: #10b981 !important;
}

/* ───── FAQ accordion ───── */
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}
.faq-item.open .faq-answer {
  max-height: 600px;
}
.faq-item .faq-icon {
  transition: transform 200ms ease;
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* ───── Prose adjustments for legal pages ───── */
.legal-prose h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; color: #eef2ff; }
.legal-prose h3 { font-size: 1.125rem; font-weight: 700; margin-top: 1.25rem; margin-bottom: 0.5rem; color: #eef2ff; }
.legal-prose p { margin-bottom: 1rem; line-height: 1.65; color: #c7cce0; }
.legal-prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; color: #c7cce0; }
.legal-prose li { margin-bottom: 0.375rem; }
.legal-prose hr { border-color: #243356; margin: 2rem 0; }
.legal-prose a { color: #ff6b2c; }
.legal-prose a:hover { color: #e85a1b; }

/* ───── Code block (for internal audit view) ───── */
.code-block {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  background: #0b1120;
  border: 1px solid #243356;
  color: #eef2ff;
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
}

/* ───── Focus ring for accessibility ───── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #ff6b2c;
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ───── Mobile nav overlay ───── */
#mobile-nav {
  transition: opacity 200ms ease, transform 200ms ease;
}
#mobile-nav.hidden {
  opacity: 0;
  pointer-events: none;
}
