/* styles.scss */
:root {
  --bg: #f8fafc;
  --sidebar: #1e293b;
  --sidebar-active: #3b82f6;
  --card: #ffffff;
  --text: #334155;
  --muted: #64748b;
  --accent: #3b82f6;
  --border: #e2e8f0;
  --code-bg: #f1f5f9;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444; }

/* Breakpoints */
/* Mixins */
/* Base */
* {
  box-sizing: border-box; }

body {
  margin: 0;
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  display: flex;
  height: 100vh; }

/* Sidebar */
.sidebar {
  width: 280px;
  background: var(--sidebar);
  color: #fff;
  padding: 2rem 0;
  overflow-y: auto;
  position: fixed;
  height: 100vh;
  z-index: 1000; }
  .sidebar.open {
    transform: translateX(0); }
  .sidebar-header {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem; }
    .sidebar-header h2 {
      margin: 0;
      font-size: 1.25rem;
      font-weight: 700; }
      .sidebar-header h2 a {
        color: inherit;
        text-decoration: none; }
  .sidebar-section {
    margin-bottom: 1.5rem; }
    .sidebar-section h3 {
      padding: 0 1.5rem;
      margin: 0 0 0.5rem 0;
      font-size: 0.875rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: rgba(255, 255, 255, 0.6); }

/* Sidebar - enhancements */
.sidebar-search {
  padding: 0 1.5rem 1rem 1.5rem; }
  .sidebar-search input[type="search"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.15s ease; }
  .sidebar-search input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.5); }

/* Section toggle (collapsible) */
.sidebar-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 0.5rem 1.5rem;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s; }
  .sidebar-section-toggle:hover {
    background: rgba(255, 255, 255, 0.03); }
  .sidebar-section-toggle .section-title {
    font-weight: 600;
    text-transform: none;
    color: rgba(255, 255, 255, 0.9); }
  .sidebar-section-toggle .section-chevron {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    transition: transform 0.15s ease; }

/* Open section class for chevron rotation and subtle background */
.open-section .sidebar-section-toggle {
  background: rgba(0, 0, 0, 0.06); }

.open-section .section-chevron {
  transform: rotate(90deg); }

/* Section list container */
.sidebar-section-list {
  padding: 0.25rem 0;
  margin: 0; }

/* Sidebar link refinements including external links and parent active state */
.sidebar-link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent; }
  .sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff; }
  .sidebar-link.active {
    background: rgba(59, 130, 246, 0.12);
    border-left-color: var(--sidebar-active);
    color: #fff; }
  .sidebar-link.active-parent {
    background: rgba(255, 255, 255, 0.02);
    border-left-color: transparent;
    color: #fff; }

/* External link styling */
.sidebar-link.external {
  display: flex;
  align-items: center;
  justify-content: space-between; }

.external-icon {
  margin-left: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem; }

/* small helper for visually hidden text used for accessibility */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; }

/* Mobile open/close behavior */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s; }
    .sidebar.open {
      transform: translateX(0);
      box-shadow: 2px 0 12px rgba(2, 6, 23, 0.4); } }
/* Layout */
.main-content {
  flex: 1;
  margin-left: 280px;
  overflow-y: auto; }

.container {
  max-width: 1000px;
  margin: 0 auto; }

/* Typography */
h1, h2, h3, h4 {
  margin: 2rem 0 1rem 0; }

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 0; }

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem; }

h3 {
  font-size: 1.25rem;
  font-weight: 600; }

h4 {
  font-size: 1.1rem;
  font-weight: 600; }

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }

/* Endpoint/Method labels */
.endpoint,
.method,
.endpoint-path {
  font-family: 'Monaco', 'Menlo', monospace;
  font-weight: 600; }

.endpoint {
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 1.1rem; }

.method {
  background: var(--success);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-right: 0.5rem; }

.endpoint-path {
  color: var(--text);
  margin-left: 0.5rem; }

/* Code blocks */
code {
  background: var(--code-bg);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.9rem; }

pre {
  background: var(--code-bg);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  border: 1px solid var(--border); }
  pre code {
    background: none;
    padding: 0; }

/* Tables */
.param-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0; }
  .param-table th, .param-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border); }
  .param-table th {
    background: var(--code-bg);
    font-weight: 600;
    color: var(--text); }
  .param-table td:first-child {
    font-family: 'Monaco', 'Menlo', monospace;
    font-weight: 600;
    color: var(--accent); }

/* Utilities */
.type-badge {
  background: var(--warning);
  color: #fff;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase; }

.optional {
  color: var(--muted);
  font-style: italic;
  font-size: 0.875rem; }

ul li {
  margin: 0.5rem 0; }

/* Example boxes */
.example-box {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0; }
  .example-box .example-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text); }

/* Highlight section */
.highlight {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  margin: 2rem 0; }

/* Sections (legacy toggle) */
.section {
  display: none; }

.section.active {
  display: block; }

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
  border: 1px solid; }
  .alert-info {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af; }
  .alert-warning {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e; }
  .alert-danger {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c; }

/* Steps */
.steps {
  counter-reset: step-counter; }

.step {
  counter-increment: step-counter;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem; }
  .step::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--accent);
    color: #fff;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem; }

/* Mobile menu toggle */
.mobile-menu {
  display: none; }
  @media (max-width: 768px) {
    .mobile-menu {
      display: block;
      position: fixed;
      top: 1rem;
      left: 1rem;
      z-index: 1001;
      background: var(--accent);
      color: #fff;
      border: none;
      padding: 0.5rem;
      border-radius: 4px;
      cursor: pointer; } }

/* Responsive sidebar/layout */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s; }

  .main-content {
    margin-left: 0; } }
/* Home page */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0; }
  @media (max-width: 768px) {
    .home-grid {
      grid-template-columns: 1fr; } }

.home-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s; }
  .home-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
  .home-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem; }
  .home-card h3 {
    margin: 0 0 1rem 0;
    color: var(--text); }
  .home-card p {
    color: var(--muted);
    margin-bottom: 1.5rem; }

.home-card-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s; }
  .home-card-link:hover {
    color: #2563eb; }

/* Overview grid */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0; }
  @media (max-width: 768px) {
    .overview-grid {
      grid-template-columns: 1fr; } }
  .overview-grid .overview-item h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em; }
  .overview-grid .overview-item code {
    font-weight: 600; }

/* Endpoint list */
.endpoint-list {
  /* kept for structure; remove if unused */
  /* space-y: 1rem; (tailwind-like; no-op in CSS) */ }

.endpoint-item {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 1rem; }
  .endpoint-item .endpoint-info {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem; }
  .endpoint-item p {
    color: var(--muted);
    margin: 0; }

/* 404 page */
.error-display {
  text-align: center;
  padding: 2rem 0; }
  .error-display .error-code {
    font-size: 8rem;
    font-weight: bold;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
    @media (max-width: 768px) {
      .error-display .error-code {
        font-size: 5rem; } }
    @media (max-width: 480px) {
      .error-display .error-code {
        font-size: 4rem; } }
  .error-display h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text);
    border: none;
    padding: 0; }
    @media (max-width: 768px) {
      .error-display h2 {
        font-size: 1.5rem; } }
  .error-display p {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto; }
    @media (max-width: 768px) {
      .error-display p {
        font-size: 1rem; } }

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem; }
  @media (max-width: 768px) {
    .error-actions {
      flex-direction: column;
      align-items: center; }
      .error-actions .btn-primary, .error-actions .btn-secondary {
        width: 100%;
        max-width: 250px;
        text-align: center; } }

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 2px solid transparent; }

.btn-primary {
  background: var(--accent);
  color: #fff; }
  .btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent); }
  .btn-secondary:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px); }

/* 404 popular links */
.popular-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 1rem 0; }
  @media (max-width: 768px) {
    .popular-links {
      grid-template-columns: 1fr;
      gap: 1.5rem; } }
  .popular-links .link-group h3 {
    font-size: 1rem;
    margin: 0 0 0.75rem 0;
    color: var(--text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em; }
  .popular-links .link-group ul {
    list-style: none;
    padding: 0;
    margin: 0; }
    .popular-links .link-group ul li {
      margin-bottom: 0.5rem; }
  .popular-links .link-group a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease; }
    .popular-links .link-group a:hover {
      color: #2563eb;
      text-decoration: underline; }

/* Small viewport tweaks */
@media (max-width: 480px) {
  .error-display {
    padding: 1rem 0; } }

/*# sourceMappingURL=styles.css.map */
