/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-text-main);
}

.breadcrumb-separator {
  color: var(--color-border);
}

/* Callouts / Alerts */
.callout {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid;
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
}

.callout-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.callout-content {
  flex: 1;
}

.callout-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  margin-top: 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.note {
  background: var(--color-note-bg);
  border-color: var(--color-note-border);
  color: var(--color-note-text);
}
.note .callout-icon { color: #3b82f6; }

.tip {
  background: var(--color-tip-bg);
  border-color: var(--color-tip-border);
  color: var(--color-tip-text);
}
.tip .callout-icon { color: #10b981; }

.warning {
  background: var(--color-warning-bg);
  border-color: var(--color-warning-border);
  color: var(--color-warning-text);
}
.warning .callout-icon { color: #f59e0b; }

.success {
  background: var(--color-success-bg);
  border-color: var(--color-success-border);
  color: var(--color-success-text);
}
.success .callout-icon { color: #22c55e; }

/* Steps */
.steps-container {
  margin: 2rem 0;
}

.step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--color-text-main);
}

.step-content {
  flex: 1;
  padding-top: 0.25rem;
}

.step-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Screenshot */
.screenshot-container {
  margin: 2rem 0;
}

.screenshot {
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: zoom-in;
  transition: box-shadow 0.2s ease;
}

.screenshot:hover {
  box-shadow: var(--shadow-md);
}

.screenshot img {
  width: 100%;
  display: block;
}

.screenshot-caption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

/* Prev/Next Navigation */
.docs-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.docs-nav-link {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
}

.docs-nav-link:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.docs-nav-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.docs-nav-title {
  font-weight: 500;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.docs-nav-next {
  text-align: right;
}
.docs-nav-next .docs-nav-title {
  justify-content: flex-end;
}

/* Heading anchors */
.heading-anchor {
  opacity: 0;
  margin-left: 0.5rem;
  color: var(--color-text-muted);
  transition: opacity 0.2s;
}

h2:hover .heading-anchor,
h3:hover .heading-anchor {
  opacity: 1;
}

.heading-anchor:hover {
  color: var(--color-primary);
}

/* Related Articles */
.related-articles {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--color-bg-muted);
  border-radius: var(--radius-md);
}

.related-articles h3 {
  margin-top: 0;
}

.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-articles li {
  margin-bottom: 0.5rem;
}

.related-articles a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Search Modal Overlay */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 100;
  padding: 1rem;
  align-items: flex-start;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.search-overlay.active {
  display: flex;
}

.search-modal {
  width: 100%;
  max-width: 600px;
  background: var(--color-bg-main);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  margin-top: 10vh;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}

.search-modal-header {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-modal-input {
  flex: 1;
  border: none;
  font-size: 1.125rem;
  outline: none;
  color: var(--color-text-main);
}

.search-results {
  overflow-y: auto;
  padding: 1rem;
}

.search-result-item {
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  text-decoration: none;
  display: block;
}

.search-result-item:hover,
.search-result-item.selected {
  background: var(--color-bg-muted);
}

.search-result-title {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.search-result-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
