/* BeatsBot Design System - Medical Grade Light Theme */
/* Expert Digital Marketing Design for Pharmaceutical Platform */

:root {
  /* Color Palette - Medical/Healthcare Standard */
  --primary-blue: #0066CC;        /* Trust Blue - Reliability */
  --primary-blue-hover: #0052A3;  /* Darker blue for hover states */
  --primary-blue-light: #E6F0FF;  /* Light blue background */
  
  --success-green: #00A859;       /* Success Green - Positive outcomes */
  --success-green-hover: #008547; /* Darker green for hover */
  --success-green-light: #E6F5EC; /* Light green background */
  
  --action-orange: #FF6B35;       /* Action Orange - CTAs */
  --action-orange-hover: #E55A2B; /* Darker orange for hover */
  
  --background-light: #F8FAFB;    /* Light Gray - Clean medical appearance */
  --background-white: #FFFFFF;    /* Pure white for cards */
  --background-section: #F0F4F7;  /* Section backgrounds */
  
  --text-primary: #1A1A1A;        /* Near black - High readability */
  --text-secondary: #4A5568;      /* Gray text for secondary content */
  --text-light: #718096;          /* Lighter gray for metadata */
  
  --border-color: #E2E8F0;        /* Light borders */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', Monaco, Consolas, 'Courier New', monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  
  /* Spacing */
  --space-1: 0.25rem;     /* 4px */
  --space-2: 0.5rem;      /* 8px */
  --space-3: 0.75rem;     /* 12px */
  --space-4: 1rem;        /* 16px */
  --space-5: 1.25rem;     /* 20px */
  --space-6: 1.5rem;      /* 24px */
  --space-8: 2rem;        /* 32px */
  --space-10: 2.5rem;     /* 40px */
  --space-12: 3rem;       /* 48px */
  --space-16: 4rem;       /* 64px */
  
  /* Border Radius */
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-full: 9999px;  /* Full rounded */
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
}

/* Global Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background-light);
}

/* Typography Classes */
.heading-1 {
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.heading-2 {
  font-size: var(--text-4xl);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.heading-3 {
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

.heading-4 {
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

.text-lead {
  font-size: var(--text-xl);
  line-height: 1.7;
  color: var(--text-secondary);
}

.text-body {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-secondary);
}

.text-small {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-light);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn:focus {
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

.btn-primary {
  background-color: var(--primary-blue);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-blue-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: white;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background-color: var(--primary-blue-light);
  transform: translateY(-1px);
}

.btn-cta {
  background-color: var(--action-orange);
  color: white;
  font-size: var(--text-lg);
  padding: var(--space-4) var(--space-8);
}

.btn-cta:hover {
  background-color: var(--action-orange-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

/* Card Component */
.card {
  background-color: var(--background-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-header {
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.card-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Badge Component */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
}

.badge-success {
  background-color: var(--success-green-light);
  color: var(--success-green);
}

.badge-large {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-base);
}

/* Container and Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: var(--space-16) 0;
}

.section-alt {
  background-color: var(--background-section);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Flex Utilities */
.flex {
  display: flex;
}

.flex-center {
  align-items: center;
  justify-content: center;
}

.flex-between {
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  flex-direction: column;
}

/* Icon Styles */
.icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.icon-large {
  width: 48px;
  height: 48px;
}

.icon-primary {
  color: var(--primary-blue);
}

.icon-success {
  color: var(--success-green);
}

/* Form Elements */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: white;
  transition: all var(--transition-base);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Navigation Styles */
.nav {
  background-color: var(--background-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary-blue);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-base);
}

.nav-link:hover {
  color: var(--primary-blue);
}

/* Trust Indicators */
.trust-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin: var(--space-6) 0;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background-color: var(--background-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-badge-icon {
  color: var(--success-green);
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .heading-1 {
    font-size: var(--text-4xl);
  }
  
  .heading-2 {
    font-size: var(--text-3xl);
  }
  
  .section {
    padding: var(--space-10) 0;
  }
  
  .nav-menu {
    gap: var(--space-4);
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Print Styles for Compliance Documentation */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .nav,
  .btn,
  .no-print {
    display: none !important;
  }
  
  .section {
    page-break-inside: avoid;
  }
}

/* Accessibility Focus States */
*:focus-visible {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Loading States */
.loading {
  position: relative;
  color: transparent;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-blue);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile Responsiveness Fixes */
@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
  }
  
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Container adjustments */
  .container {
    padding: 0 1rem;
    max-width: 100%;
  }
  
  /* Navigation responsive */
  .nav-container {
    flex-wrap: wrap;
  }
  
  .nav-menu {
    width: 100%;
    order: 3;
    margin-top: 1rem;
  }
  
  /* Mobile menu styles */
  .menu-toggle, .hamburger {
    display: block;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
  }
  
  /* Responsive text */
  h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Grid responsiveness */
  .grid {
    grid-template-columns: 1fr;
  }
  
  /* Ensure images don't overflow */
  img {
    max-width: 100%;
    height: auto;
  }
}