
/* Enhanced driver board card styles */
.driver-section {
  padding: 60px 0;
}

.driver-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  margin: 40px 0;
}

.driver-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border: 1px solid #e8f0fe;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.driver-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(42, 92, 170, 0.15);
  border-color: #2A5CAA;
}

.driver-visual {
  padding: 25px 25px 20px 25px;
  background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.driver-icon {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.driver-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 180px;
  max-height: 140px;
}

.driver-card:hover .driver-icon img {
  transform: scale(1.05);
}

.driver-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.driver-tag {
  background: #e6f0ff;
  color: #2A5CAA;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 500;
  align-self: flex-start;
}

.driver-name {
  color: #2A5CAA;
  font-size: 1.2rem;
  margin: 0 0 10px 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

.driver-desc {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 15px 0;
  flex: 1;
}

.driver-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0 15px 0;
}

.spec-tag {
  background: #f0f7ff;
  color: #2A5CAA;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}

.spec-tag.wifi {
  background: #fff0f0;
  color: #d32f2f;
}

.spec-tag.bluetooth {
  background: #f0f0ff;
  color: #3f51b5;
}

.spec-tag.budget {
  background: #f0f0f0;
  color: #666;
}

.spec-tag.arduino {
  background: #00979d;
  color: white;
}

.driver-link {
  display: inline-flex;
  align-items: center;
  color: #FF6B35;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  margin-top: auto;
  padding: 8px 16px;
  background: #fff5f0;
  border-radius: 20px;
  width: fit-content;
}

.driver-link:hover {
  color: white;
  background: #FF6B35;
  transform: translateX(5px);
}

.driver-link::after {
  content: "→";
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.driver-link:hover::after {
  transform: translateX(3px);
}

/* Comparison Table */
.comparison-table {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-top: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.comparison-table h3 {
  color: #2A5CAA;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

thead {
  background: #f8f9fa;
}

th {
  font-weight: 600;
  color: #2A5CAA;
  font-family: 'Montserrat', sans-serif;
  padding: 12px 15px;
  text-align: left;
  border-bottom: 2px solid #e0e0e0;
}

td {
  color: #555;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

tr:hover {
  background: #f8f9fa;
}

.difficulty {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.difficulty.low {
  background: #e8f5e9;
  color: #2e7d32;
}

.difficulty.medium {
  background: #fff8e1;
  color: #f57c00;
}

.difficulty.easy {
  background: #e3f2fd;
  color: #1976d2;
}

/* Responsive design */
@media (max-width: 1200px) {
  .driver-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .driver-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .driver-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .driver-visual {
    padding: 20px 20px 15px 20px;
  }
  
  .driver-info {
    padding: 20px;
  }
  
  .comparison-table {
    padding: 20px;
  }
  
  table {
    min-width: 600px;
  }
}
