/* Documentation Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  margin: 0;
  padding: 0;
  background: #f8f9fa;
}
.doc-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: 3rem 0;
  margin-bottom: 3rem;
}
.doc-header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 300;
}
.doc-header p {
  margin: 1rem 0 0 0;
  font-size: 1.25rem;
  opacity: 0.9;
}
.doc-nav {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: 2rem;
}
.doc-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}
.doc-nav a {
  display: block;
  padding: 1rem;
  color: #2c3e50;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.doc-nav a:hover {
  border-bottom-color: var(--color-primary);
}
.doc-section {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.doc-section h2 {
  margin-top: 0;
  color: var(--color-primary);
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.5rem;
}
.doc-section h3 {
  color: #2c3e50;
  margin-top: 2rem;
}
pre {
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  border-left: 4px solid var(--color-primary);
}
code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "Courier New", monospace;
}

/* Grid Examples */
.aiab-grid-example {
  margin: 2rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #e9ecef;
}
.aiab-grid-example .aiab-row {
  margin-bottom: 1rem;
}
.aiab-grid-example .aiab-row:last-child {
  margin-bottom: 0;
}
.aiab-grid-example [class*="col-"] {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: 1rem;
  text-align: center;
  border-radius: 4px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.aiab-grid-example-light [class*="col-"] {
  background: #e9ecef;
  color: #2c3e50;
  border: 1px solid #dee2e6;
}

/* Interactive Demo */
.interactive-demo {
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}
.demo-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.demo-controls button {
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.2s;
}
.demo-controls button:hover {
  background: var(--color-primary-dark);
}
.demo-controls button.aiab-active {
  background: var(--color-primary-dark);
}

/* Responsive Preview */
.responsive-preview {
  background: white;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  margin: 2rem 0;
  overflow-x: auto;
}
.device-frame {
  border: 2px solid #2c3e50;
  border-radius: 8px;
  padding: 1rem;
  margin: 0 auto;
  transition: width 0.3s ease;
}
.device-frame.desktop {
  width: 100%;
}
.device-frame.tablet {
  width: 768px;
}
.device-frame.mobile {
  width: 375px;
}
.device-label {
  text-align: center;
  color: #6c757d;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
th,
td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}
th {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
}

/* Alert Boxes */
.aiab-alert {
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
}
.aiab-alert-info {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  color: #1565c0;
}
.aiab-alert-tip {
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
  color: #2e7d32;
}
.aiab-alert-warning {
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  color: #e65100;
}

/* Badge */
.aiab-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: var(--color-primary);
  color: white;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}
.aiab-badge.new {
  background: #4caf50;
}
.aiab-badge.legacy {
  background: #ff9800;
}
