@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&family=Space+Grotesk:wght@400;700&display=swap');

:root {
  --bg-color: #060608;
  --bg-card: rgba(10, 10, 14, 0.75);
  --bg-card-border: rgba(204, 255, 0, 0.12);
  --primary: #CCFF00; /* Neon Yellow-Green */
  --primary-glow: rgba(204, 255, 0, 0.35);
  --secondary: #00F0FF; /* Cyber Cyan */
  --secondary-glow: rgba(0, 240, 255, 0.25);
  --text-main: #F3F4F6;
  --text-muted: #8E939E;
  --accent: #FF007A; /* Neon Pink */
  --font-display: 'Space Grotesk', sans-serif;
  --font-sans: 'Outfit', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  background-image: 
    linear-gradient(rgba(204, 255, 0, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 255, 0, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: #15151f;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 30%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(204, 255, 0, 0.1), transparent);
}
.glass-panel:hover {
  border-color: rgba(204, 255, 0, 0.3);
  box-shadow: 0 15px 40px rgba(204, 255, 0, 0.05);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Neon Glow Buttons & Badges */
.btn-neon {
  background: var(--primary);
  color: #000;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.05em;
}
.btn-neon:hover {
  box-shadow: 0 0 25px var(--primary-glow);
  transform: translateY(-2px);
}
.btn-neon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: rotate(45deg);
  transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}
.btn-neon:hover::after {
  left: 120%;
  opacity: 1;
}

/* Slower Pulsing Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(204, 255, 0, 0.5);
  }
  70% {
    transform: scale(1.03);
    box-shadow: 0 0 0 20px rgba(204, 255, 0, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(204, 255, 0, 0);
  }
}
.btn-pulse {
  animation: pulse 2.5s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

/* Advanced Muscle Map Styles */
.muscle-map-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
}
.muscle-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}
.muscle-outline-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1.5;
  transition: stroke 0.5s ease;
}
.muscle-part-path {
  fill: #14141e;
  stroke: #252535;
  stroke-width: 0.8;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.muscle-part-path:hover, .muscle-part-path.active, .muscle-part-path.hover-highlight {
  fill: var(--primary);
  stroke: var(--bg-color);
  filter: drop-shadow(0 0 12px var(--primary-glow));
}

.badge-overlay-circle {
  fill: rgba(0, 0, 0, 0);
  stroke: none;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.badge-overlay-circle:hover, .badge-overlay-circle.active, .badge-overlay-circle.hover-highlight {
  fill: var(--primary);
  stroke: var(--bg-color);
  stroke-width: 1;
  fill-opacity: 0.4;
  filter: drop-shadow(0 0 12px var(--primary-glow));
}

/* SF Status Indicator */
.system-status {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--primary);
  animation: blink 2s infinite ease-in-out;
}
@keyframes blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Grid & Tables */
.compare-table {
  width: 100%;
  min-width: 900px; /* Ensure columns have enough space to never overlap */
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}
.compare-table th {
  padding: 18px 24px;
  border-bottom: 2px solid rgba(204, 255, 0, 0.15);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.compare-table td {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
  white-space: nowrap;
  vertical-align: middle;
}
.compare-table tr:hover td {
  background: rgba(204, 255, 0, 0.015);
}
.badge-best {
  background: linear-gradient(90deg, #ff007a, #7928ca);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-block;
  box-shadow: 0 0 10px rgba(255, 0, 122, 0.2);
}

/* Tabs */
.tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.05em;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.tab-btn:hover {
  border-color: rgba(204, 255, 0, 0.3);
  color: #fff;
}
.tab-btn.active {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(204, 255, 0, 0.2);
}

/* AI Quiz */
.quiz-step {
  display: none;
}
.quiz-step.active {
  display: block;
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.option-card {
  border: 1px solid rgba(255,255,255,0.06);
  padding: 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.01);
}
.option-card:hover {
  border-color: var(--secondary);
  background: rgba(0, 240, 255, 0.03);
  transform: translateY(-2px);
}
.option-card.selected {
  border-color: var(--primary);
  background: rgba(204, 255, 0, 0.03);
  box-shadow: inset 0 0 15px rgba(204, 255, 0, 0.02);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Video Card Styles */
.video-card {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  background: #000;
}
.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-card:hover img {
  transform: scale(1.05);
  opacity: 0.8;
}
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 15px rgba(204, 255, 0, 0.4);
}
.video-card:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

/* Video Modal overlay */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 4, 6, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.video-modal-content {
  width: 90%;
  max-width: 800px;
  background: var(--bg-color);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-modal.active .video-modal-content {
  transform: scale(1);
}

/* Scanner effect on loading */
.scanner-line {
  height: 1px;
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary);
  position: absolute;
  width: 100%;
  top: 0;
  animation: scan 4s infinite ease-in-out;
}
@keyframes scan {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}
