/* ==========================================================================
   SPARQ PHYSIOTHERAPY — ELITE ATHLETIC & SPORTS SCIENCE STYLESHEET
   Aesthetic: High-contrast athletic blue sports performance (Peak Dynamics style)
   ========================================================================== */

:root {
  /* Deep Athletic Sports Navy & Cobalt Blues */
  --bg-deep: #070D1E;
  --bg-surface: #0D1733;
  --bg-card: #132247;
  --bg-card-hover: #182C5A;
  
  /* Electric Neon Lime / Athletic Sports Green & Electric Cyan */
  --neon-lime: #10E066;
  --neon-lime-hover: #0DD05C;
  --neon-lime-glow: rgba(16, 224, 102, 0.45);
  --neon-lime-subtle: rgba(16, 224, 102, 0.12);
  --neon-cyan: #00F5D4;
  --electric-blue: #00D2FF;
  
  /* Typography & Contrasts */
  --text-white: #FFFFFF;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-neon: rgba(16, 224, 102, 0.45);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Allura', cursive;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background-color: var(--bg-deep);
  color: var(--text-primary);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #182C5A;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-lime);
}

/* Selection */
::selection {
  background-color: var(--neon-lime);
  color: #000000;
}

/* Athletic Grid Background Pattern on Deep Blue */
.bg-athletic-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(59, 130, 246, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
}

.bg-dot-grid {
  background-size: 24px 24px;
  background-image: radial-gradient(rgba(0, 210, 255, 0.18) 1px, transparent 1px);
}

/* Neon Glow Utilities */
.neon-glow {
  box-shadow: 0 0 25px var(--neon-lime-glow);
}

.neon-glow-sm {
  box-shadow: 0 0 15px rgba(16, 224, 102, 0.3);
}

.neon-text-glow {
  text-shadow: 0 0 20px rgba(16, 224, 102, 0.6);
}

.neon-border {
  border-color: var(--neon-lime);
  box-shadow: 0 0 15px rgba(16, 224, 102, 0.25);
}

/* Card Styling on Deep Blue */
.athletic-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.athletic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-lime), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.athletic-card:hover {
  border-color: var(--border-neon);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(3, 7, 18, 0.7), 0 0 22px rgba(16, 224, 102, 0.2);
}

.athletic-card:hover::before {
  opacity: 1;
}

/* Buttons */
.btn-neon {
  background-color: var(--neon-lime);
  color: #040E07;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all var(--transition-fast);
  box-shadow: 0 0 20px rgba(16, 224, 102, 0.4);
}

.btn-neon:hover {
  background-color: #12f570;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(16, 224, 102, 0.65);
  color: #000000;
}

.btn-neon:active {
  transform: translateY(0) scale(0.98);
}

.btn-outline {
  border: 1px solid var(--border-medium);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-weight: 700;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--neon-lime);
  color: var(--neon-lime);
  background: var(--neon-lime-subtle);
  transform: translateY(-2px);
}

/* Badge styling */
.badge-athletic {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 224, 102, 0.35);
  background: rgba(16, 224, 102, 0.1);
  color: var(--neon-lime);
}

/* Pulse indicator dot */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--neon-lime);
  box-shadow: 0 0 10px var(--neon-lime);
  animation: pulse-ring 2s infinite cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; filter: drop-shadow(0 0 8px var(--neon-lime)); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Interactive Pain Map Silhouette & Hotspots */
#svg-container {
  position: relative;
  width: 280px;
  height: 520px;
  margin: 0 auto;
}

.hotspot {
  position: absolute;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 6px;
  outline: none;
}

.hotspot-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--neon-lime);
  border: 2px solid #070D1E;
  box-shadow: 0 0 12px var(--neon-lime);
  transition: transform 0.2s ease, background-color 0.2s ease;
  position: relative;
}

.hotspot-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--neon-lime);
  opacity: 0.6;
  animation: hotspot-ripple 2s infinite ease-out;
}

@keyframes hotspot-ripple {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hotspot:hover .hotspot-dot,
.hotspot.active .hotspot-dot {
  transform: scale(1.4);
  background-color: #FFFFFF;
  box-shadow: 0 0 20px #FFFFFF, 0 0 30px var(--neon-lime);
}

.hotspot-label {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(13, 23, 51, 0.95);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
  transition: all 0.2s ease;
}

.hotspot:hover .hotspot-label,
.hotspot.active .hotspot-label {
  border-color: var(--neon-lime);
  color: var(--neon-lime);
  background: #070D1E;
  box-shadow: 0 0 10px rgba(16, 224, 102, 0.3);
}

/* Tech Tabs styling */
.tech-tab-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  transition: all 0.25s ease;
}

.tech-tab-btn:hover {
  color: var(--text-white);
  border-color: var(--border-medium);
  background: var(--bg-card);
}

.tech-tab-btn.active {
  border-color: var(--neon-lime);
  background: var(--bg-card);
  color: var(--neon-lime);
  box-shadow: 0 0 20px rgba(16, 224, 102, 0.25);
}

/* Modals & Backdrop */
.modal-overlay {
  background: rgba(7, 13, 30, 0.88);
  backdrop-filter: blur(14px);
}

/* Subtle sports diagonal accent ribbon */
.sports-accent-bar {
  background: linear-gradient(90deg, var(--neon-lime) 0%, var(--neon-cyan) 100%);
  height: 3px;
  width: 100%;
}

/* Radio button sport cards */
.injury-select-btn {
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
  cursor: pointer;
}

.injury-select-btn:hover {
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.06);
}

.injury-select-btn.selected {
  border-color: var(--neon-lime);
  background: rgba(16, 224, 102, 0.12);
  color: var(--neon-lime);
  box-shadow: 0 0 15px rgba(16, 224, 102, 0.2);
}

/* Marquee / Infinite Ticker */
.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
}

.ticker-move {
  display: inline-block;
  animation: ticker 30s linear infinite;
}

@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  #svg-container {
    width: 220px;
    height: 440px;
  }
}

/* Interactive Booking Pills */
.injury-pill-btn,
.slot-pill-btn,
.inline-injury-btn,
.triage-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.injury-pill-btn:hover,
.slot-pill-btn:hover,
.inline-injury-btn:hover,
.triage-btn:hover {
  border-color: rgba(16, 224, 102, 0.5);
  color: #ffffff;
  background: rgba(16, 224, 102, 0.06);
}

.injury-pill-btn.selected,
.slot-pill-btn.selected,
.inline-injury-btn.selected,
.triage-btn.active {
  background: rgba(16, 224, 102, 0.15) !important;
  border-color: #10E066 !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(16, 224, 102, 0.25);
}

