/* ==========================================================================
   Detpak Hearing Health & Audiology Archive — Dark Theme Stylesheet
   Established 1987 | DETMOLD NZ SALES LIMITED
   ========================================================================== */

:root {
  --bg-main: #090D16;
  --bg-surface: #0F172A;
  --bg-card: #131D2F;
  --bg-card-hover: #17243A;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(20, 184, 166, 0.4);
  --primary: #14B8A6;
  --primary-hover: #0D9488;
  --primary-light: #2DD4BF;
  --primary-glow: rgba(20, 184, 166, 0.25);
  --accent-cyan: #06B6D4;
  --accent-blue: #38BDF8;
  --accent-amber: #F59E0B;
  --text-main: #F8FAFC;
  --text-body: #94A3B8;
  --text-muted: #64748B;
}

body {
  background-color: var(--bg-main);
  color: var(--text-body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

.soundwave-bar {
  display: inline-block;
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
  animation: wavePulse 1.4s ease-in-out infinite alternate;
}
.soundwave-bar:nth-child(1) { height: 8px; animation-delay: 0.1s; }
.soundwave-bar:nth-child(2) { height: 16px; animation-delay: 0.25s; }
.soundwave-bar:nth-child(3) { height: 24px; animation-delay: 0.4s; }
.soundwave-bar:nth-child(4) { height: 14px; animation-delay: 0.15s; }
.soundwave-bar:nth-child(5) { height: 20px; animation-delay: 0.35s; }
.soundwave-bar:nth-child(6) { height: 10px; animation-delay: 0.2s; }

@keyframes wavePulse {
  0% { transform: scaleY(0.4); opacity: 0.5; }
  100% { transform: scaleY(1.2); opacity: 1; }
}

.glass-panel {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
}

.card-dark {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-dark:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px -5px var(--primary-glow);
}

.frequency-chip {
  background: rgba(20, 184, 166, 0.1);
  color: var(--primary-light);
  border: 1px solid rgba(20, 184, 166, 0.25);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.authority-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(20, 184, 166, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #FDE68A;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-heading {
  background: linear-gradient(135deg, #F8FAFC 0%, #CBD5E1 50%, #14B8A6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-teal {
  background: linear-gradient(135deg, #14B8A6 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px 0 rgba(20, 184, 166, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2DD4BF 0%, #14B8A6 100%);
  box-shadow: 0 6px 20px 0 rgba(20, 184, 166, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.accordion-item {
  border-bottom: 1px solid var(--border-subtle);
}

.accordion-header {
  width: 100%;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
}

.accordion-header:hover {
  color: var(--primary-light);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--text-body);
}

.accordion-item.active .accordion-body {
  max-height: 800px;
  padding-bottom: 1.25rem;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--primary-light);
}
