/* Outsprint Documentation — Brand Overrides */

:root {
  /* Brand colors */
  --os-blue: #3b82f6;
  --os-blue-hover: #2563eb;
  --os-dark-bg: #0a0a0a;
  --os-dark-surface: #141414;
  --os-dark-border: #262626;
  --os-text-primary: #fafafa;
  --os-text-secondary: #a3a3a3;
  --os-green: #22c55e;
  --os-amber: #f59e0b;
  --os-red: #ef4444;
}

/* Material theme overrides — dark (slate) */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #3b82f6;
  --md-primary-fg-color--light: #60a5fa;
  --md-primary-fg-color--dark: #2563eb;
  --md-accent-fg-color: #3b82f6;
  --md-default-bg-color: #0a0a0a;
  --md-default-bg-color--light: #141414;
  --md-default-bg-color--lighter: #1a1a1a;
  --md-default-fg-color: #fafafa;
  --md-default-fg-color--light: #a3a3a3;
  --md-default-fg-color--lighter: #737373;
  --md-typeset-a-color: #60a5fa;
  --md-code-bg-color: #141414;
  --md-footer-bg-color: #0a0a0a;
  --md-footer-bg-color--dark: #050505;
}

/* Material theme overrides — light */
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #3b82f6;
  --md-primary-fg-color--light: #60a5fa;
  --md-primary-fg-color--dark: #2563eb;
  --md-accent-fg-color: #3b82f6;
  --md-typeset-a-color: #2563eb;
}

/* Header */
.md-header {
  background-color: var(--md-default-bg-color);
  border-bottom: 1px solid var(--os-dark-border);
}

[data-md-color-scheme="slate"] .md-header {
  border-bottom-color: #262626;
}

/* Navigation tabs */
.md-tabs {
  background-color: var(--md-default-bg-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Sidebar */
.md-sidebar {
  scrollbar-width: thin;
}

/* Content area */
.md-typeset h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.md-typeset h2 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Admonition overrides */
[data-md-color-scheme="slate"] .md-typeset .admonition,
[data-md-color-scheme="slate"] .md-typeset details {
  background-color: #141414;
  border-color: #262626;
}

/* Code blocks */
[data-md-color-scheme="slate"] .md-typeset code {
  background-color: #1a1a1a;
  border: 1px solid #262626;
}

[data-md-color-scheme="slate"] .md-typeset pre > code {
  border: none;
}

/* Tables */
[data-md-color-scheme="slate"] .md-typeset table:not([class]) {
  background-color: #0a0a0a;
  border: 1px solid #262626;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  background-color: #141414;
  border-color: #262626;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) td {
  border-color: #1a1a1a;
}

/* Chat example styling */
.chat-example {
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
  background-color: #141414;
}

[data-md-color-scheme="default"] .chat-example {
  background-color: #f8f9fa;
  border-color: #e0e0e0;
}

.chat-example .user-message {
  background-color: #3b82f6;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 12px 12px 4px 12px;
  margin-bottom: 0.75rem;
  max-width: 80%;
  margin-left: auto;
  font-size: 0.9rem;
}

.chat-example .ai-message {
  background-color: #1a1a1a;
  color: #fafafa;
  padding: 0.75rem 1rem;
  border-radius: 12px 12px 12px 4px;
  margin-bottom: 0.75rem;
  max-width: 80%;
  font-size: 0.9rem;
  border: 1px solid #262626;
}

[data-md-color-scheme="default"] .chat-example .ai-message {
  background-color: #ffffff;
  color: #1a1a1a;
  border-color: #e0e0e0;
}

.chat-example .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #737373;
  margin-bottom: 0.25rem;
}

/* Screenshot images */
.md-typeset img {
  border-radius: 8px;
  border: 1px solid #262626;
}

[data-md-color-scheme="default"] .md-typeset img {
  border-color: #e0e0e0;
}

/* Keyboard shortcuts table */
.shortcuts-table td:first-child {
  white-space: nowrap;
  font-family: var(--md-code-font-family);
}

/* Status badges for changelog */
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--new {
  background-color: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.badge--improved {
  background-color: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.badge--fixed {
  background-color: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

/* Search highlight */
.md-search__highlight {
  background-color: rgba(59, 130, 246, 0.3);
}

/* Footer */
.md-footer {
  border-top: 1px solid #262626;
}

[data-md-color-scheme="default"] .md-footer {
  border-top-color: #e0e0e0;
}

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

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--os-text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero .cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .cta-buttons a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.hero .cta-buttons .primary {
  background-color: #3b82f6;
  color: white;
}

.hero .cta-buttons .primary:hover {
  background-color: #2563eb;
}

.hero .cta-buttons .secondary {
  background-color: transparent;
  color: var(--md-default-fg-color);
  border: 1px solid #404040;
}

.hero .cta-buttons .secondary:hover {
  border-color: #3b82f6;
}

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

.feature-card {
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #262626;
  background-color: #141414;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: #3b82f6;
}

[data-md-color-scheme="default"] .feature-card {
  background-color: #f8f9fa;
  border-color: #e0e0e0;
}

.feature-card h3 {
  margin-top: 0;
  font-size: 1rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--os-text-secondary);
  margin-bottom: 0;
}
