/* Modern Premium Design System for AutoIndustryCompare.com */

/* CSS Custom Properties for Design System */
:root {
  /* Primary Brand Colors */
  --primary-blue: #0066cc;
  --primary-blue-dark: #004499;
  --primary-blue-light: #3385d6;
  --secondary-orange: #ff6b35;
  --secondary-orange-dark: #e55529;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Typography */
  --font-sans: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-mono: 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
  
  /* Spacing Scale */
  --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;
  --space-24: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  /* Shadows */
  --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);
  
  /* Animation */
  --transition-fast: 150ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 300ms ease-out;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--gray-50);
  color: var(--gray-900);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Typography System */
.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 var(--space-4) 0;
  letter-spacing: -0.025em;
}

h1, .h1 { font-size: 3rem; font-weight: 700; }
h2, .h2 { font-size: 2.25rem; font-weight: 600; }
h3, .h3 { font-size: 1.875rem; }
h4, .h4 { font-size: 1.5rem; }
h5, .h5 { font-size: 1.25rem; }
h6, .h6 { font-size: 1.125rem; }

.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }

/* Modern Navigation */
.navbar-modern {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-base);
}

.navbar-modern .navbar-brand img {
  height: 40px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(24%) sepia(18%) saturate(1047%) hue-rotate(191deg) brightness(95%) contrast(92%);
}

.navbar-modern .nav-link {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  position: relative;
}

.navbar-modern .nav-link:hover,
.navbar-modern .nav-link.active {
  color: var(--primary-blue);
  background: var(--gray-100);
}

.dropdown-menu-modern {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  margin-top: var(--space-2);
}

.dropdown-menu-modern .dropdown-item {
  color: var(--gray-700);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.dropdown-menu-modern .dropdown-item:hover {
  background: var(--gray-100);
  color: var(--primary-blue);
}

/* Hero Section */
.hero-modern {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: var(--white);
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
}

.hero-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-modern h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero-modern .lead {
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto var(--space-8) auto;
}

/* Search Component */
.search-modern {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 600px;
  margin: 0 auto;
}

.search-modern input {
  border: none;
  outline: none;
  flex: 1;
  padding: var(--space-4);
  font-size: 1.1rem;
  background: transparent;
  color: var(--gray-900);
}

.search-modern input::placeholder {
  color: var(--gray-500);
}

.search-modern button {
  background: var(--secondary-orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-8);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.search-modern button:hover {
  background: var(--secondary-orange-dark);
  transform: translateY(-1px);
}

/* Modern Cards */
.card-modern {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition-base);
  height: 100%;
}

.card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gray-300);
}

.card-modern .card-body {
  padding: var(--space-8);
}

.card-modern .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-3);
}

.card-modern .card-text {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.card-modern .btn-modern {
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-6);
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition-fast);
}

.card-modern .btn-modern:hover {
  background: var(--primary-blue-dark);
  color: var(--white);
  transform: translateY(-1px);
}

/* Provider Cards */
.provider-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition-base);
  margin-bottom: var(--space-6);
}

.provider-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue-light);
}

.provider-card .card-body {
  padding: var(--space-8);
}

.provider-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.provider-logo {
  flex-shrink: 0;
  width: 120px;
  height: 60px;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.provider-title {
  flex: 1;
}

.provider-title h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.provider-title a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.provider-title a:hover {
  color: var(--primary-blue);
}

.provider-badge {
  background: linear-gradient(45deg, var(--secondary-orange), var(--secondary-orange-dark));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.provider-description {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.provider-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--gray-200);
}

.provider-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--gray-600);
  font-size: 0.9rem;
}

.provider-meta-item strong {
  color: var(--gray-700);
  font-weight: 500;
}

/* Category Pills */
.category-pill {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
}

.category-pill:hover {
  background: var(--primary-blue);
  color: var(--white);
}

/* Data Tables Enhancement */
.table-modern {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.table-modern th {
  background: var(--gray-50);
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--gray-200);
  padding: var(--space-4);
}

.table-modern td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}

.table-modern tbody tr:hover {
  background: var(--gray-50);
}

/* Footer */
.footer-modern {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--space-16) 0 var(--space-8) 0;
  border-top: 1px solid var(--gray-800);
}

.footer-modern a {
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-modern a:hover {
  color: var(--primary-blue-light);
}

/* Utilities */
.bg-gradient {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%) !important;
  color: white !important;
}

.bg-gradient h1,
.bg-gradient h2,
.bg-gradient h3,
.bg-gradient p,
.bg-gradient .lead {
  color: white !important;
}

.text-primary { color: var(--primary-blue); }
.text-secondary { color: var(--secondary-orange); }

.section-padding {
  padding: var(--space-20) 0;
}

.section-padding-sm {
  padding: var(--space-12) 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --space-24: 4rem;
    --space-20: 3rem;
    --space-16: 2.5rem;
  }
  
  .hero-modern h1 {
    font-size: 2.5rem;
  }
  
  .search-modern {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .search-modern input,
  .search-modern button {
    width: 100%;
  }
  
  .provider-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
  }
  
  .provider-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-modern h1 {
    font-size: 2rem;
  }
  
  .card-modern .card-body,
  .provider-card .card-body {
    padding: var(--space-6);
  }
}