/* ===================================
   BIPOLAR ME - Mental Health Support Website
   Enhanced Design System & Global Styles
   =================================== */

/* === CSS VARIABLES === */
:root {
  /* Primary Colors - Enhanced */
  --color-primary: #4A90E2;
  --color-primary-light: #6BA8F0;
  --color-primary-dark: #3A7BC8;
  --color-primary-gradient: linear-gradient(135deg, #4A90E2 0%, #6BA8F0 100%);
  
  /* Secondary Colors */
  --color-secondary: #7ED7C1;
  --color-secondary-light: #9FE3D3;
  --color-secondary-dark: #5FC4A8;
  --color-secondary-gradient: linear-gradient(135deg, #7ED7C1 0%, #9FE3D3 100%);
  
  /* Neutral Colors */
  --color-white: #FFFFFF;
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-400: #9CA3AF;
  --color-gray-500: #6B7280;
  --color-gray-600: #4B5563;
  --color-gray-700: #374151;
  --color-gray-800: #1F2937;
  --color-gray-900: #111827;
  
  /* Emotion Colors (Soft Palette) */
  --color-anger: #E57373;
  --color-anxiety: #FFB74D;
  --color-sadness: #64B5F6;
  --color-emptiness: #B0BEC5;
  --color-euphoria: #F06292;
  --color-shame: #BA68C8;
  --color-irritability: #FF8A65;
  --color-confusion: #4DD0E1;
  
  /* Semantic Colors */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-info: #3B82F6;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  
  /* Font Sizes - Responsive */
  --text-xs: clamp(0.7rem, 1vw, 0.75rem);
  --text-sm: clamp(0.8rem, 1.2vw, 0.875rem);
  --text-base: clamp(0.9rem, 1.5vw, 1rem);
  --text-lg: clamp(1rem, 2vw, 1.125rem);
  --text-xl: clamp(1.1rem, 2.5vw, 1.25rem);
  --text-2xl: clamp(1.3rem, 3vw, 1.5rem);
  --text-3xl: clamp(1.6rem, 4vw, 1.875rem);
  --text-4xl: clamp(1.9rem, 5vw, 2.25rem);
  --text-5xl: clamp(2.2rem, 6vw, 3rem);
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows - Enhanced */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Container */
  --container-max-width: 1200px;
  
  /* Header Height */
  --header-height: 70px;
  --header-height-mobile: 60px;
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-gray-800);
  background-color: var(--color-gray-50);
  min-height: 100vh;
  overflow-x: hidden;
}

/* === ENHANCED HEADER === */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-gray-200);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-base);
  height: var(--header-height);
}

.header.scrolled {
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.98);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 var(--space-4);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-secondary);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  transition: transform var(--transition-fast);
  gap: var(--space-2);
}

.logo:hover {
  transform: scale(1.02);
}

.logo img {
  height: 36px;
  width: auto;
  transition: transform var(--transition-base);
}

.logo:hover img {
  transform: rotate(-5deg);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: var(--text-2xl);
  color: var(--color-gray-700);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle:hover {
  background-color: var(--color-gray-100);
  color: var(--color-primary);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-2);
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: block;
  padding: var(--space-2) var(--space-4);
  color: var(--color-gray-700);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--color-primary-gradient);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base);
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: rgba(74, 144, 226, 0.08);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
  color: var(--color-primary);
  background-color: rgba(74, 144, 226, 0.12);
  font-weight: 600;
}

.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* === MOBILE RESPONSIVE NAVIGATION === */
@media (max-width: 1024px) {
  :root {
    --header-height: var(--header-height-mobile);
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height-mobile);
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: calc(100vh - var(--header-height-mobile));
    background: white;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-6) 0;
    box-shadow: var(--shadow-2xl);
    transition: right var(--transition-slow);
    overflow-y: auto;
    border-left: 1px solid var(--color-gray-200);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-link {
    padding: var(--space-4) var(--space-6);
    border-radius: 0;
    border-left: 3px solid transparent;
    font-size: var(--text-base);
  }
  
  .nav-link::after {
    display: none;
  }
  
  .nav-link:hover,
  .nav-link.active {
    background-color: rgba(74, 144, 226, 0.08);
    border-left-color: var(--color-primary);
  }
  
  .logo {
    font-size: var(--text-lg);
  }
  
  .logo img {
    height: 32px;
  }
}

/* Menu Overlay */
.menu-overlay {
  display: none;
  position: fixed;
  top: var(--header-height-mobile);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height-mobile));
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-8);
  }
}

/* === SECTIONS === */
.section {
  padding: var(--space-12) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-16) 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: var(--space-20) 0;
  }
}

/* === ENHANCED HERO === */
.hero {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, rgba(126, 215, 193, 0.05) 100%);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(126, 215, 193, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero {
    padding: var(--space-20) 0;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-secondary);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: var(--text-5xl);
  }
}

.hero p {
  font-size: var(--text-lg);
  color: var(--color-gray-600);
  margin-bottom: var(--space-8);
  line-height: 1.8;
}

/* === ENHANCED CARDS === */
.tool-card,
.emotion-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-primary-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-light);
}

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

@media (min-width: 768px) {
  .tool-card {
    padding: var(--space-8);
  }
}

/* Emotion Cards Grid */
.emotion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

@media (min-width: 480px) {
  .emotion-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .emotion-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .emotion-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.emotion-card {
  text-align: center;
  cursor: pointer;
  padding: var(--space-6);
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.emotion-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-2xl);
}

.emotion-card .emotion-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  display: block;
  transition: transform var(--transition-base);
}

.emotion-card:hover .emotion-icon {
  transform: scale(1.2) rotate(5deg);
}

.emotion-card h3 {
  font-size: var(--text-xl);
  color: var(--color-gray-800);
  margin-bottom: var(--space-2);
  font-weight: 600;
}

.emotion-card p {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: 1.5;
}

/* Emotion-specific hover colors */
.emotion-card[data-emotion="anger"]:hover {
  border-color: var(--color-anger);
  background: linear-gradient(135deg, rgba(229, 115, 115, 0.05) 0%, white 100%);
}

.emotion-card[data-emotion="anxiety"]:hover {
  border-color: var(--color-anxiety);
  background: linear-gradient(135deg, rgba(255, 183, 77, 0.05) 0%, white 100%);
}

.emotion-card[data-emotion="sadness"]:hover {
  border-color: var(--color-sadness);
  background: linear-gradient(135deg, rgba(100, 181, 246, 0.05) 0%, white 100%);
}

.emotion-card[data-emotion="emptiness"]:hover {
  border-color: var(--color-emptiness);
  background: linear-gradient(135deg, rgba(176, 190, 197, 0.05) 0%, white 100%);
}

.emotion-card[data-emotion="euphoria"]:hover {
  border-color: var(--color-euphoria);
  background: linear-gradient(135deg, rgba(240, 98, 146, 0.05) 0%, white 100%);
}

.emotion-card[data-emotion="shame"]:hover {
  border-color: var(--color-shame);
  background: linear-gradient(135deg, rgba(186, 104, 200, 0.05) 0%, white 100%);
}

.emotion-card[data-emotion="irritability"]:hover {
  border-color: var(--color-irritability);
  background: linear-gradient(135deg, rgba(255, 138, 101, 0.05) 0%, white 100%);
}

.emotion-card[data-emotion="confusion"]:hover {
  border-color: var(--color-confusion);
  background: linear-gradient(135deg, rgba(77, 208, 225, 0.05) 0%, white 100%);
}

/* === ENHANCED BUTTONS === */
.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-primary);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width var(--transition-slow), height var(--transition-slow);
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--color-primary-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--color-secondary-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(126, 215, 193, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(126, 215, 193, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* === EMERGENCY BUTTON === */
.btn-emergency {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: white;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--text-base);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
  z-index: 999;
  transition: all var(--transition-base);
  animation: pulse 2s infinite;
}

.btn-emergency:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.5);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
  }
  50% {
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.6);
  }
}

@media (max-width: 768px) {
  .btn-emergency {
    bottom: var(--space-4);
    right: var(--space-4);
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
  }
}

/* === FOOTER === */
.footer {
  background: linear-gradient(180deg, var(--color-gray-900) 0%, var(--color-gray-800) 100%);
  color: var(--color-gray-300);
  padding: var(--space-12) 0 var(--space-6);
  margin-top: var(--space-20);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section h4 {
  color: white;
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--space-2);
}

.footer-section a {
  color: var(--color-gray-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  border-top: 1px solid var(--color-gray-700);
  padding-top: var(--space-6);
  text-align: center;
  color: var(--color-gray-500);
  font-size: var(--text-sm);
}

/* === UTILITY CLASSES === */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* === ANIMATIONS === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.5s ease-out;
}

/* === ACCESSIBILITY === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* === RESPONSIVE IMAGES === */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === TOOL STEPS === */
.tool-steps {
  list-style: none;
  counter-reset: step-counter;
  margin-left: 0;
  padding-left: 0;
}

.tool-steps li {
  counter-increment: step-counter;
  position: relative;
  padding-left: var(--space-10);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.tool-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--color-primary-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

/* === TOOL TIP === */
.tool-tip {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.08) 0%, rgba(126, 215, 193, 0.08) 100%);
  border-left: 4px solid var(--color-primary);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-top: var(--space-4);
}

.tool-tip strong {
  color: var(--color-primary);
}

/* === ALERT BOXES === */
.alert {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  border-left: 4px solid;
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  border-color: var(--color-warning);
  color: var(--color-gray-800);
}

.alert-info {
  background-color: rgba(59, 130, 246, 0.1);
  border-color: var(--color-info);
  color: var(--color-gray-800);
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: var(--color-success);
  color: var(--color-gray-800);
}

.alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: var(--color-error);
  color: var(--color-gray-800);
}

/* === LOADING STATES === */
.skeleton {
  background: linear-gradient(90deg, var(--color-gray-200) 25%, var(--color-gray-300) 50%, var(--color-gray-200) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* === PRINT STYLES === */
@media print {
  .header,
  .footer,
  .btn-emergency,
  .mobile-menu-toggle {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .tool-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}


/* ========================================
   Spectrum and Nutrition Pages Styles
   ======================================== */

.spectrum-card,
.nutrition-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.spectrum-title,
.section-title {
  color: var(--primary);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.spectrum-intro,
.nutrient-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.spectrum-types,
.characteristics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.type-card,
.char-item {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.type-card h3,
.char-item h4 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.type-card p,
.char-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.impact-list ul,
.obsessions-compulsions ul,
.symptoms-grid ul {
  list-style: none;
  padding: 0;
}

.impact-list li,
.obsessions-compulsions li,
.symptoms-grid li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.impact-list li:before,
.obsessions-compulsions li:before,
.symptoms-grid li:before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.obsessions-compulsions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.oc-column h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.symptoms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.symptom-group {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
}

.symptom-group h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.overlap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.overlap-item {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  border-top: 3px solid var(--secondary);
}

.overlap-item h4 {
  color: var(--secondary);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.overlap-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.connections-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Nutrition Page Styles */

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.principle-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.principle-item h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.principle-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.nutrient-section {
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 8px;
}

.nutrient-section h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.food-examples {
  margin-top: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 6px;
}

.food-examples strong {
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}

.food-examples ul {
  list-style: none;
  padding: 0;
}

.food-examples li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.food-examples li:before {
  content: "✓";
  color: var(--secondary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.condition-nutrition {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.condition-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-left: 5px solid var(--primary);
}

.condition-card h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.condition-card ul {
  list-style: none;
  padding: 0;
}

.condition-card li {
  padding: 0.6rem 0 0.6rem 1.5rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.6;
}

.condition-card li:before {
  content: "→";
  color: var(--secondary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.tip-item {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  border-top: 3px solid var(--secondary);
}

.tip-item h4 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.tip-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.when-seek-help ul {
  list-style: none;
  padding: 0;
}

.when-seek-help li {
  padding: 0.6rem 0 0.6rem 2rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.6;
}

.when-seek-help li:before {
  content: "🩺";
  position: absolute;
  left: 0;
}

.help-note {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 6px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .spectrum-types,
  .characteristics-grid,
  .overlap-grid,
  .principles-grid,
  .tips-grid {
    grid-template-columns: 1fr;
  }
  
  .obsessions-compulsions,
  .symptoms-grid {
    grid-template-columns: 1fr;
  }
  
  .spectrum-card,
  .nutrition-card {
    padding: 1.5rem;
  }
  
  .spectrum-title,
  .section-title {
    font-size: 1.5rem;
  }
}
