/* StyleGrab Documentation Theme */

:root {
  --sg-primary: #3b82f6;
  --sg-primary-dark: #2563eb;
  --sg-text: #1f2937;
  --sg-text-muted: #6b7280;
  --sg-bg: #ffffff;
  --sg-code-bg: #f3f4f6;
}

/* Header branding */
.sidebar .sidebar-scrollbox {
  padding-top: 1rem;
}

/* Code blocks */
pre {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.9em;
}

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

table th {
  background: #f9fafb;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #e5e7eb;
}

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

table tr:hover {
  background: #f9fafb;
}

/* API endpoint styling */
pre code {
  display: block;
}

/* Method badges in code */
.content code:first-child {
  font-weight: 600;
}

/* Blockquotes for warnings/notes */
blockquote {
  border-left: 4px solid var(--sg-primary);
  background: #eff6ff;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
}

blockquote p {
  margin: 0;
}

/* Links */
a {
  color: var(--sg-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Headers */
h1, h2, h3 {
  color: var(--sg-text);
  margin-top: 2rem;
}

h1 {
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

/* Horizontal rules for section breaks */
hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}

/* Search improvements */
#searchbar {
  border-radius: 6px;
  border: 1px solid #d1d5db;
  padding: 0.5rem 1rem;
}

#searchbar:focus {
  border-color: var(--sg-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  table {
    font-size: 0.875rem;
  }
  
  table th, table td {
    padding: 0.5rem;
  }
}
