/* Custom CSS for Kafka Connect WebSocket Documentation */

/* Hero section styling */
.hero {
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--md-default-fg-color--light);
  max-width: 800px;
  margin: 1.5rem auto;
  line-height: 1.6;
}

/* Grid cards for feature highlights */
.grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.grid.cards > div {
  background: var(--md-code-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grid.cards > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.success {
  background-color: #10b981;
  color: white;
}

.status-badge.warning {
  background-color: #f59e0b;
  color: white;
}

.status-badge.error {
  background-color: #ef4444;
  color: white;
}

.status-badge.info {
  background-color: #3b82f6;
  color: white;
}

/* Code block enhancements */
.highlight pre {
  border-radius: 0.5rem;
  background-color: var(--md-code-bg-color);
}

/* Command prompt styling */
.highlight .gp {
  user-select: none;
  color: var(--md-default-fg-color--light);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

table thead {
  background-color: var(--md-code-bg-color);
}

table thead th {
  font-weight: 600;
  text-align: left;
  padding: 0.75rem;
  border-bottom: 2px solid var(--md-default-fg-color--lightest);
}

table tbody td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

table tbody tr:hover {
  background-color: var(--md-code-bg-color);
}

/* Admonition styling enhancements */
.admonition {
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.admonition.warning {
  border-left: 4px solid #f59e0b;
}

.admonition.danger {
  border-left: 4px solid #ef4444;
}

.admonition.tip {
  border-left: 4px solid #10b981;
}

.admonition.info {
  border-left: 4px solid #3b82f6;
}

/* CTA section */
.cta-section {
  background: var(--md-code-bg-color);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  margin: 3rem 0;
}

.cta-section h2 {
  margin-top: 0;
}

/* Button enhancements */
.md-button {
  border-radius: 0.375rem;
  font-weight: 600;
  transition: all 0.2s ease;
  margin: 0.5rem;
}

.md-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.md-button--primary {
  background-color: #ef4444;
  color: white;
}

.md-button--primary:hover {
  background-color: #dc2626;
}

/* Navigation breadcrumbs */
.md-path {
  color: var(--md-default-fg-color--light);
  font-size: 0.875rem;
}

/* Search highlighting */
mark {
  background-color: #fef08a;
  color: inherit;
  padding: 0 0.25rem;
  border-radius: 0.25rem;
}

/* Mermaid diagram styling */
.mermaid {
  text-align: center;
  margin: 2rem 0;
}

/* Icon styling */
.lg.middle {
  font-size: 3rem;
  color: var(--md-primary-fg-color);
}

/* Responsive design adjustments */
@media screen and (max-width: 768px) {
  .grid.cards {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero p {
    font-size: 1rem;
  }

  table {
    font-size: 0.875rem;
  }

  table thead th,
  table tbody td {
    padding: 0.5rem;
  }
}

/* Code copy button enhancement */
.md-clipboard {
  background-color: var(--md-primary-fg-color);
  border-radius: 0.25rem;
  transition: background-color 0.2s ease;
}

.md-clipboard:hover {
  background-color: var(--md-accent-fg-color);
}

/* Version badge */
.md-version {
  font-weight: 600;
  color: var(--md-primary-fg-color);
}

/* Footnote styling */
.footnote {
  font-size: 0.875rem;
  color: var(--md-default-fg-color--light);
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--md-default-fg-color--lightest);
}

/* Collapsible sections */
details {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  user-select: none;
}

details[open] summary {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
  padding-bottom: 0.5rem;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--md-default-bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--md-default-fg-color--lighter);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--md-default-fg-color--light);
}
