/* Cohesion Core - Main Styles */

:root {
  /* Brand Colors */
  --cc-primary: #2563eb;
  --cc-primary-dark: #1e40af;
  --cc-primary-light: #3b82f6;
  --cc-secondary: #7c3aed;
  --cc-accent: #06b6d4;

  /* Neutral Colors */
  --cc-dark: #0f172a;
  --cc-gray-900: #1e293b;
  --cc-gray-800: #334155;
  --cc-gray-700: #475569;
  --cc-gray-600: #64748b;
  --cc-gray-500: #94a3b8;
  --cc-gray-400: #cbd5e1;
  --cc-gray-300: #e2e8f0;
  --cc-gray-200: #f1f5f9;
  --cc-gray-100: #f8fafc;
  --cc-white: #ffffff;

  /* Semantic Colors */
  --cc-success: #10b981;
  --cc-warning: #f59e0b;
  --cc-error: #ef4444;
  --cc-info: #3b82f6;

  /* Spacing */
  --cc-spacing-xs: 0.5rem;
  --cc-spacing-sm: 1rem;
  --cc-spacing-md: 1.5rem;
  --cc-spacing-lg: 2rem;
  --cc-spacing-xl: 3rem;
  --cc-spacing-2xl: 4rem;

  /* Typography */
  --cc-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --cc-font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;

  /* Border Radius */
  --cc-radius-sm: 0.375rem;
  --cc-radius-md: 0.5rem;
  --cc-radius-lg: 0.75rem;
  --cc-radius-xl: 1rem;

  /* Shadows */
  --cc-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --cc-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --cc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --cc-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --cc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--cc-font-sans);
  color: var(--cc-gray-900);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: var(--cc-white);
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--cc-dark);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--cc-gray-700);
}

a {
  color: var(--cc-primary);
  text-decoration: none;
  transition: var(--cc-transition);
}

a:hover {
  color: var(--cc-primary-dark);
}

/* Custom Button Styles */
.btn-cc-primary {
  background: linear-gradient(135deg, var(--cc-primary) 0%, var(--cc-primary-dark) 100%);
  border: none;
  color: var(--cc-white);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--cc-radius-md);
  transition: var(--cc-transition);
  box-shadow: var(--cc-shadow-md);
}

.btn-cc-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--cc-shadow-lg);
  background: linear-gradient(135deg, var(--cc-primary-dark) 0%, var(--cc-primary) 100%);
  color: var(--cc-white);
}

.btn-cc-secondary {
  background: transparent;
  border: 2px solid var(--cc-primary);
  color: var(--cc-primary);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--cc-radius-md);
  transition: var(--cc-transition);
}

.btn-cc-secondary:hover {
  background: var(--cc-primary);
  color: var(--cc-white);
  transform: translateY(-2px);
}

/* Section Styles */
.cc-section {
  padding: 5rem 0;
}

.cc-section-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: var(--cc-white) !important;
}

.cc-section-dark h1,
.cc-section-dark h2,
.cc-section-dark h3,
.cc-section-dark h4,
.cc-section-dark h5,
.cc-section-dark h6,
.cc-section-dark p,
.cc-section-dark span {
  color: var(--cc-white) !important;
}

.cc-section-dark .text-light {
  color: rgba(255, 255, 255, 0.9) !important;
}

.cc-section-dark .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

.cc-section-light {
  background-color: var(--cc-gray-100);
}

/* Hero Section with Dark Background */
.cc-hero-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%) !important;
  padding-top: 8rem !important;
  min-height: 600px;
}

.cc-hero-dark h1,
.cc-hero-dark h2,
.cc-hero-dark h3,
.cc-hero-dark h4,
.cc-hero-dark h5,
.cc-hero-dark h6,
.cc-hero-dark p,
.cc-hero-dark span,
.cc-hero-dark label,
.cc-hero-dark div {
  color: var(--cc-white) !important;
}

.cc-hero-dark .text-light {
  color: rgba(255, 255, 255, 0.9) !important;
}

.cc-hero-dark .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Additional contrast fixes */
.cc-hero-dark a:not(.btn),
.cc-section-dark a:not(.btn) {
  color: rgba(255, 255, 255, 0.9) !important;
}

.cc-hero-dark a:not(.btn):hover,
.cc-section-dark a:not(.btn):hover {
  color: var(--cc-white) !important;
}

/* Ensure buttons maintain their styles in dark sections */
.cc-hero-dark .btn-outline-light,
.cc-section-dark .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: var(--cc-white) !important;
}

.cc-hero-dark .btn-outline-light:hover,
.cc-section-dark .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--cc-white) !important;
}

/* Card Styles */
.cc-card {
  background: var(--cc-white);
  border-radius: var(--cc-radius-lg);
  padding: 2rem;
  box-shadow: var(--cc-shadow-md);
  transition: var(--cc-transition);
  border: 1px solid var(--cc-gray-300);
}

.cc-card:hover {
  box-shadow: var(--cc-shadow-xl);
  transform: translateY(-4px);
}

.cc-card-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cc-primary-light) 0%, var(--cc-primary) 100%);
  border-radius: var(--cc-radius-md);
  margin-bottom: 1.5rem;
  color: var(--cc-white);
  font-size: 1.5rem;
}

/* Gradient Text */
.cc-gradient-text {
  background: linear-gradient(135deg, var(--cc-primary) 0%, var(--cc-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Feature Grid */
.cc-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--cc-spacing-sm); }
.mb-2 { margin-bottom: var(--cc-spacing-md); }
.mb-3 { margin-bottom: var(--cc-spacing-lg); }
.mb-4 { margin-bottom: var(--cc-spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--cc-spacing-sm); }
.mt-2 { margin-top: var(--cc-spacing-md); }
.mt-3 { margin-top: var(--cc-spacing-lg); }
.mt-4 { margin-top: var(--cc-spacing-xl); }

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }

  .cc-section {
    padding: 3rem 0;
  }

  .cc-feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
