/* Hematology Design System for DuffyNull.com */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --primary-slate: #0f172a;
  --secondary-slate: #1e293b;
  --burgundy-primary: #881337;
  --burgundy-dark: #4c0519;
  --crimson-accent: #9f1239;
  --rose-accent: #e11d48;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
  background-color: #fafaf9;
  scroll-behavior: smooth;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #f5f5f4;
}
::-webkit-scrollbar-thumb {
  background: #d6d3d1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a8a29e;
}

/* Glassmorphism Header */
.glass-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-pattern-burgundy {
  background-color: #0c0a09;
  background-image: 
    radial-gradient(rgba(190, 18, 60, 0.16) 1px, transparent 1px), 
    radial-gradient(rgba(159, 18, 57, 0.10) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
}

/* Status Badges for Clinical Trials */
.badge-recruiting {
  background-color: #ecfdf5 !important;
  color: #065f46 !important;
  border: 1px solid #a7f3d0 !important;
}

.badge-completed {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

.badge-not_yet_recruiting,
.badge-not-yet-recruiting {
  background-color: #fffbeb !important;
  color: #92400e !important;
  border: 1px solid #fde68a !important;
}

.badge-terminated,
.badge-suspended {
  background-color: #fff1f2 !important;
  color: #9f1239 !important;
  border: 1px solid #fecdd3 !important;
}

.badge-active,
.badge-active_not_recruiting {
  background-color: #f0f9ff !important;
  color: #0369a1 !important;
  border: 1px solid #bae6fd !important;
}

.badge-unknown {
  background-color: #f8fafc !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
}

/* Custom Modal Animation */
.modal-fade-in {
  animation: fadeIn 0.15s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* ========================================================
   PRINT STYLESHEET (Emergency Wallet Card Optimization)
   ======================================================== */
@media print {
  body * {
    visibility: hidden;
  }

  #printable-wallet-card, #printable-wallet-card * {
    visibility: visible;
  }

  body {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #printable-wallet-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 3.375in !important;
    height: 2.125in !important;
    max-width: 3.375in !important;
    max-height: 2.125in !important;
    margin: 0 !important;
    padding: 0.18in !important;
    border: 2px solid #881337 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-sizing: border-box !important;
    page-break-inside: avoid;
  }

  #printable-wallet-card h4, 
  #printable-wallet-card span, 
  #printable-wallet-card p,
  #printable-wallet-card div {
    color: #000000 !important;
  }

  .no-print {
    display: none !important;
  }
}

/* Altcha Widget Styling */
altcha-widget {
  --altcha-color-primary: #881337;
  --altcha-color-primary-hover: #9f1239;
  --altcha-color-border: #e2e8f0;
  --altcha-color-border-hover: #cbd5e1;
  --altcha-border-radius: 0.75rem;
  --altcha-max-width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Accessible Native Accordion FAQ */
details.faq-item {
  transition: all 0.2s ease-in-out;
}
details.faq-item[open] summary svg.chevron {
  transform: rotate(180deg);
}
details.faq-item summary::-webkit-details-marker {
  display: none;
}
details.faq-item summary {
  list-style: none;
}
