/* Custom styling for HiBayES documentation */

/* Hero section styling */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 2rem;
  border-radius: 0.75rem;
  margin-bottom: 3rem;
  text-align: center;
}

.hero-section h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.25rem;
  opacity: 0.95;
}

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

.feature-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature-card h3 {
  color: #495057;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.feature-card p {
  margin-bottom: 0;
  color: #6c757d;
}

/* Code blocks enhancement */
pre {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
}

pre.sourceCode {
  background-color: #f8f9fa;
}

/* Callout boxes */
.callout {
  margin: 1.5rem 0;
}

.callout-note {
  border-left-color: #0d6efd;
}

.callout-tip {
  border-left-color: #198754;
}

.callout-warning {
  border-left-color: #ffc107;
}

.callout-important {
  border-left-color: #dc3545;
}

/* API reference styling */
.api-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
}

.api-section h3 {
  color: #495057;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* Parameter tables */
.param-table {
  width: 100%;
  margin: 1rem 0;
}

.param-table th {
  background-color: #e9ecef;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
}

.param-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #dee2e6;
}

/* Badge styling */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.25rem;
  margin-right: 0.5rem;
}

.badge-primary {
  background-color: #0d6efd;
  color: white;
}

.badge-success {
  background-color: #198754;
  color: white;
}

.badge-warning {
  background-color: #ffc107;
  color: #000;
}

/* Navigation enhancement */
.navbar {
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Sidebar styling */
.sidebar nav[role="doc-toc"] > ul {
  font-size: 0.95rem;
}

.sidebar nav[role="doc-toc"] > ul > li {
  margin: 0.5rem 0;
}

/* Button styling */
.btn-custom {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-custom:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  color: white;
}