/* Custom styles for AvaloniaUI.MCP documentation */

/* Header improvements */
.site-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-bottom: none;
}

.site-title {
  color: white !important;
  font-weight: 600;
}

/* Navigation */
.site-nav .page-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

.site-nav .page-link:hover {
  color: white !important;
}

/* Code blocks */
.highlight {
  border-radius: 6px;
  margin: 1rem 0;
}

/* Feature grid responsiveness */
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .doc-links {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-links {
    grid-template-columns: 1fr;
  }
}

/* Badge styling */
.badges {
  margin: 1rem 0;
}

.badges img {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Table styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

table th,
table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e1e4e8;
}

table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

table tr:hover {
  background-color: #f8f9fa;
}

/* Button styling */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin: 0.25rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.375rem;
  text-decoration: none;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease-in-out;
}

.btn-primary {
  color: #fff;
  background-color: #0366d6;
  border-color: #0366d6;
}

.btn-primary:hover {
  color: #fff;
  background-color: #0256cc;
  border-color: #024cb6;
  text-decoration: none;
}

.btn-secondary {
  color: #586069;
  background-color: #fff;
  border-color: #e1e4e8;
}

.btn-secondary:hover {
  color: #24292e;
  background-color: #f3f4f6;
  border-color: #d1d5da;
  text-decoration: none;
}

/* Alert boxes */
.alert {
  padding: 1rem;
  margin: 1rem 0;
  border: 1px solid transparent;
  border-radius: 0.375rem;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeaa7;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e1e4e8;
  padding: 2rem 0;
  margin-top: 3rem;
  background-color: #f8f9fa;
}

/* Syntax highlighting adjustments */
.highlight pre {
  background: #f8f9fa;
  border: 1px solid #e1e4e8;
  padding: 1rem;
  overflow-x: auto;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Print styles */
@media print {
  .site-nav,
  .site-footer,
  .btn {
    display: none;
  }

  .feature-grid,
  .doc-links,
  .metrics-grid,
  .community-links {
    display: block;
  }

  .feature-item,
  .doc-link,
  .metric,
  .community-link {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
}
