/* Custom table styles for blog posts */
.custom-table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-table thead {
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
}

.custom-table th {
  color: white;
  font-weight: 600;
  text-align: left;
  padding: 1rem;
  font-size: 0.9rem;
}

.custom-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
}

.custom-table tbody tr:nth-child(even) {
  background-color: rgba(243, 244, 246, 0.7);
}

.custom-table tbody tr:hover {
  background-color: rgba(79, 70, 229, 0.1);
}

.custom-table td {
  padding: 1rem;
  font-size: 0.9rem;
}

.custom-table a {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.custom-table a:hover {
  color: #7c3aed;
  text-decoration: underline;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .custom-table {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }
  
  .custom-table tbody tr {
    border-bottom: 1px solid #374151;
  }
  
  .custom-table tbody tr:nth-child(even) {
    background-color: rgba(31, 41, 55, 0.5);
  }
  
  .custom-table tbody tr:hover {
    background-color: rgba(79, 70, 229, 0.2);
  }
  
  .custom-table td {
    color: #e5e7eb;
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .custom-table {
    display: block;
    overflow-x: auto;
  }
  
  .custom-table th, 
  .custom-table td {
    padding: 0.75rem;
    font-size: 0.8rem;
  }
}
