/* Risk Runners - Enhanced Modern CSS Styles */

/* CSS Variables for consistent theming */
:root {
  --primary-color: #1a365d;
  --secondary-color: #2b77ad;
  --accent-color: #e53e3e;
  --success-color: #38a169;
  --warning-color: #dd6b20;
  --info-color: #3182ce;
  --text-color: #2d3748;
  --text-light: #718096;
  --text-muted: #a0aec0;
  --background-color: #ffffff;
  --background-light: #f7fafc;
  --background-dark: #edf2f7;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

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

p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

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

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

/* Header and Navigation */
.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.header .container {
  position: relative;
  z-index: 1;
}

.header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.header h4 {
  font-size: 1.3rem;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Navigation Links */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 500;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: white;
}

.nav-icon {
  font-size: 1.1rem;
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Video Container */
.video-container {
  text-align: center;
  margin: 3rem 0;
}

.video-container iframe {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* Info Section */
.info-section {
  background: var(--background-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.info-section h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.info-section p {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.info-section p:last-child {
  color: var(--accent-color);
  font-style: italic;
  font-weight: 600;
  font-size: 1.2rem;
  text-align: center;
  margin-top: 1.5rem;
}

/* Search Container */
.search-container {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin: 2rem 0;
  position: relative;
}

.search-container h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

#searchInput {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
  background: var(--background-light);
}

#searchInput:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

#searchResults {
  list-style: none;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  max-height: 400px;
  overflow-y: auto;
  margin-top: 0.5rem;
  box-shadow: var(--shadow);
  display: none;
}

#searchResults li {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

#searchResults li:last-child {
  border-bottom: none;
}

#searchResults li:hover {
  background: var(--background-light);
}

#searchResults a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.25rem;
}

#searchResults a:hover {
  color: var(--primary-color);
}

#searchResults p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* Company List */
.company-list {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin: 2rem 0;
}

.company-list h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-align: center;
}

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

.company-item {
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
  background: var(--background-light);
}

.company-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--secondary-color);
}

.company-item a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.company-item a:hover {
  color: var(--primary-color);
}

.company-symbol {
  color: var(--text-light);
  font-size: 0.9rem;
  font-family: 'Courier New', monospace;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }
  
  .header h4 {
    font-size: 1rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .container {
    padding: 1rem;
  }
  
  .video-container iframe {
    width: 100%;
    height: 250px;
  }
  
  .company-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 1rem 0;
  }
  
  .header h1 {
    font-size: 1.5rem;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .search-container,
  .info-section,
  .company-list {
    padding: 1rem;
  }
}

/* Loading and Animation States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

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

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

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

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

.feature-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--secondary-color);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.feature-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* Search Enhancements */
.search-wrapper {
  position: relative;
}

.search-filters {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  background: white;
  color: var(--text-color);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
}

.filter-btn:hover {
  background: var(--background-light);
  border-color: var(--secondary-color);
}

.filter-btn.active {
  background: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}

/* Stats Section */
.stats-section {
  background: var(--background-light);
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  margin: 3rem 0;
  box-shadow: var(--shadow-sm);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Browse Section */
.browse-section {
  margin: 3rem 0;
}

.browse-section h3 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.75rem;
}

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

.category-card {
  display: block;
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  border: 1px solid var(--border-light);
  text-align: center;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--secondary-color);
  color: inherit;
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.category-card h4 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.category-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* Featured Section */
.featured-section {
  margin: 3rem 0;
}

.featured-section h3 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.75rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.featured-card {
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  position: relative;
}

.featured-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--secondary-color);
}

.featured-card h4 {
  margin-bottom: 0.75rem;
}

.featured-card h4 a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.featured-card h4 a:hover {
  color: var(--secondary-color);
}

.company-sector {
  color: var(--info-color);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.risk-summary {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

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

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: white;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin: 0;
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
  .header h1 {
    font-size: 2.8rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header {
    padding: 2rem 0;
  }
  
  .header h1 {
    font-size: 2.2rem;
  }
  
  .header h4 {
    font-size: 1.1rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .nav-link {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .container {
    padding: 1rem;
  }
  
  .video-container iframe {
    width: 100%;
    height: 250px;
  }
  
  .features-grid,
  .category-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .search-filters {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 1.5rem 0;
  }
  
  .header h1 {
    font-size: 1.8rem;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .search-container,
  .info-section,
  .stats-section {
    padding: 1.5rem;
  }
  
  .feature-item,
  .category-card,
  .featured-card {
    padding: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Loading States and Animations */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-up {
  animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Focus States for Accessibility */
.nav-link:focus,
.filter-btn:focus,
.category-card:focus,
#searchInput:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .search-container {
    display: none;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
  
  .info-section,
  .stats-section,
  .browse-section,
  .featured-section {
    break-inside: avoid;
    margin: 1rem 0;
  }
}
/* Enhanced Search Results Styling */
.search-type-header {
  background: var(--background-dark);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  color: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.type-name {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.type-count {
  background: var(--secondary-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.search-result-item {
  border-bottom: 1px solid var(--border-light);
}

.search-result-item:last-child {
  border-bottom: none;
}

.result-link {
  display: block;
  padding: 1rem;
  transition: var(--transition);
  text-decoration: none;
}

.result-link:hover,
.result-link.keyboard-active {
  background: var(--background-light);
  color: inherit;
}

.result-title {
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.result-title mark {
  background: rgba(49, 130, 206, 0.2);
  color: var(--primary-color);
  padding: 0.1em 0.2em;
  border-radius: 3px;
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.result-type {
  background: var(--background-dark);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-separator {
  color: var(--text-muted);
}

.result-source {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
}

.result-score {
  margin-left: auto;
  background: var(--success-color);
  color: white;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
}

.more-results-indicator {
  padding: 1rem;
  text-align: center;
  background: var(--background-light);
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
}

.more-results-content span {
  font-weight: 600;
  color: var(--secondary-color);
}

.more-results-content small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
}

.no-results {
  padding: 2rem;
  text-align: center;
}

.no-results-content {
  max-width: 300px;
  margin: 0 auto;
}

.no-results-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-results-text strong {
  color: var(--text-color);
  display: block;
  margin-bottom: 0.5rem;
}

.no-results-text p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

.search-error {
  padding: 1rem;
  background: rgba(229, 62, 62, 0.1);
  border-left: 4px solid var(--accent-color);
}

.error-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.error-icon {
  font-size: 1.2rem;
}

.error-message {
  color: var(--accent-color);
  font-weight: 500;
}

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

.keyboard-focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Loading States */
.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy.loaded {
  opacity: 1;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  border-top-color: var(--secondary-color);
  animation: spin 1s ease-in-out infinite;
}

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

/* Error Message Styling */
.error-message {
  background: rgba(229, 62, 62, 0.1);
  border: 1px solid rgba(229, 62, 62, 0.3);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin: 1rem 0;
  color: var(--accent-color);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
    --text-light: #000000;
    --background-light: #ffffff;
  }
  
  .nav-link,
  .filter-btn,
  .category-card,
  .featured-card {
    border: 2px solid currentColor;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .fade-in,
  .slide-up {
    animation: none;
  }
}

/* Company Directory Styles */
.company-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.company-link:hover {
    color: inherit;
}

.company-industry {
    color: var(--info-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.company-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.stat-icon {
    font-size: 0.9rem;
}

/* Enhanced company grid for directory */
.company-grid .company-item {
    min-height: 140px;
    display: flex;
    flex-direction: column;
}

.company-grid .company-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Industry Browser Enhancements */
.industry-companies {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.company-link {
    display: block;
    padding: 0.5rem 0.75rem;
    background: var(--background-light);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.company-link:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.company-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.more-companies {
    padding: 0.5rem 0.75rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
}

.industry-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
}

.view-all-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.view-all-btn:hover {
    background: var(--primary-color);
}

/* Industry Modal */
.industry-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.25rem;
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body .company-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.modal-body .company-item {
    display: block;
    padding: 0.75rem;
    background: var(--background-light);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.modal-body .company-item:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.modal-body .company-name {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Loading States */
.loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-light);
}

.loading-placeholder .loading-spinner {
    margin-right: 1rem;
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #4a90e2;
    --secondary-color: #64b5f6;
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --background-color: #121212;
    --background-light: #1e1e1e;
    --background-dark: #2a2a2a;
    --border-color: #333333;
    --border-light: #2a2a2a;
  }
  
  .header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  }
  
  .feature-item,
  .category-card,
  .featured-card,
  .stat-item {
    background: var(--background-light);
    border-color: var(--border-color);
  }
}
/* Industry Browser Styles */
.breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-current {
  color: white;
  font-weight: 500;
}

.industry-stats {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.stat-badge {
  background: var(--secondary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.industry-category {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.industry-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--secondary-color);
}

.industry-header {
  padding: 1.5rem;
  background: var(--background-light);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.industry-header h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.25rem;
}

.company-count {
  background: var(--secondary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.industry-subcategories {
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.subcategory-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--background-light);
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.subcategory-link:hover {
  background: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}

.subcategory-name {
  font-weight: 500;
  font-size: 0.9rem;
}

.subcategory-count {
  background: rgba(0, 0, 0, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

.subcategory-link:hover .subcategory-count {
  background: rgba(255, 255, 255, 0.2);
}

.risk-highlights {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.risk-tag {
  padding: 0.3rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.risk-tag.high {
  background: rgba(229, 62, 62, 0.1);
  color: var(--accent-color);
  border: 1px solid rgba(229, 62, 62, 0.3);
}

.risk-tag.medium {
  background: rgba(221, 107, 32, 0.1);
  color: var(--warning-color);
  border: 1px solid rgba(221, 107, 32, 0.3);
}

.risk-tag.low {
  background: rgba(56, 161, 105, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(56, 161, 105, 0.3);
}

.quick-actions {
  margin: 3rem 0;
  text-align: center;
}

.quick-actions h3 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--secondary-color);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

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

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

.action-btn.secondary:hover {
  background: var(--secondary-color);
  color: white;
}

.action-icon {
  font-size: 1.2rem;
}

/* Responsive adjustments for industry browser */
@media (max-width: 768px) {
  .industry-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .industry-subcategories {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .action-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .industry-header {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  
  .industry-subcategories {
    padding: 1rem;
  }
  
  .risk-highlights {
    padding: 1rem;
    justify-content: center;
  }
}