/* Fireflare Docs — clean dark theme */

.site-header {
  background-color: #13131a !important;
  border-bottom: 1px solid #1e1e2c !important;
}

.side-bar {
  background-color: #13131a !important;
  border-right: none !important;
}

.side-bar .nav-list .nav-list-item .nav-list-link {
  color: #94a3b8 !important;
}

.side-bar .nav-list .nav-list-item .nav-list-link:hover,
.side-bar .nav-list .nav-list-item .nav-list-link.active {
  color: #f97316 !important;
  background: rgba(249, 115, 22, 0.08) !important;
}

.main-content {
  background-color: #0f0f16 !important;
  color: #e2e8f0 !important;
}

body {
  background-color: #0f0f16 !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #f1f5f9 !important;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { border-bottom: 1px solid #1e1e2c; padding-bottom: 0.5rem; }
h2 { border-bottom: 1px solid #1a1a26; padding-bottom: 0.3rem; }

p, li, td {
  color: #cbd5e1 !important;
  line-height: 1.7;
}

a {
  color: #f97316 !important;
  text-decoration: none;
}

a:hover {
  color: #fb923c !important;
  text-decoration: underline;
}

/* Inline code — no border, just subtle background */
code:not(pre code) {
  background: #1e1e2e !important;
  color: #a5b4fc !important;
  border: none !important;
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.875em;
  font-family: "SFMono-Regular", "Consolas", "Menlo", monospace !important;
}

/* Code blocks — no border, background contrast only */
pre,
.highlight,
pre.highlight,
.highlighter-rouge {
  background: #16161f !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  margin: 0.75rem 0;
}

pre code,
.highlight code {
  background: transparent !important;
  border: none !important;
  color: #cdd6f4 !important;
  font-size: 0.875rem;
  font-family: "SFMono-Regular", "Consolas", "Menlo", monospace !important;
  padding: 0;
}

/* Syntax highlighting — Catppuccin Mocha */
.highlight .k, .highlight .kr, .highlight .kd, .highlight .kn, .highlight .kp {
  color: #cba6f7 !important;
}

.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sc,
.highlight .sd, .highlight .se, .highlight .sh, .highlight .si, .highlight .sx {
  color: #a6e3a1 !important;
}

.highlight .m, .highlight .mf, .highlight .mi, .highlight .mh,
.highlight .mb, .highlight .il, .highlight .mo {
  color: #fab387 !important;
}

.highlight .nb, .highlight .nc, .highlight .nd, .highlight .nf, .highlight .ni {
  color: #89b4fa !important;
}

.highlight .na, .highlight .no, .highlight .nx {
  color: #89dceb !important;
}

.highlight .nt {
  color: #f38ba8 !important;
}

.highlight .bp, .highlight .n {
  color: #cdd6f4 !important;
}

.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs {
  color: #585b70 !important;
  font-style: italic;
}

.highlight .o, .highlight .p {
  color: #94a3b8 !important;
}

/* Details — background only, no border */
details {
  margin: 0.5rem 0;
  border: none;
  border-radius: 8px;
  background: #13131f !important;
  overflow: hidden;
}

details > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.75rem 1rem;
  color: #e2e8f0;
  font-weight: 600;
  user-select: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

details > summary::before {
  content: "▶";
  display: inline-block;
  margin-right: 0.6rem;
  color: #f97316;
  font-size: 0.65em;
  transition: transform 0.15s ease;
  vertical-align: middle;
}

details[open] > summary::before {
  transform: rotate(90deg);
}

details[open] > summary {
  color: #f97316;
}

details > *:not(summary) {
  padding: 0 1rem;
}

details > *:last-child {
  padding-bottom: 0.75rem;
}

/* Tables — minimal, just row separators */
table {
  border: none !important;
  width: 100%;
}

table thead th {
  background: transparent !important;
  color: #94a3b8 !important;
  border-bottom: 1px solid #2a2a3a !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

table td, table th {
  border: none !important;
  border-bottom: 1px solid #1a1a26 !important;
  color: #cbd5e1 !important;
}

table tbody tr:last-child td {
  border-bottom: none !important;
}

.table-wrapper {
  border: none !important;
  box-shadow: none !important;
}

hr {
  border: none;
  border-top: 1px solid #1e1e2c;
  margin: 2rem 0;
}

.search-input {
  background: #1a1a2e !important;
  border: 1px solid #2a2a3a !important;
  color: #e2e8f0 !important;
  border-radius: 6px;
}

.aux-nav-list .aux-nav-list-item a {
  color: #94a3b8 !important;
}

.aux-nav-list .aux-nav-list-item a:hover {
  color: #f97316 !important;
}

.site-title {
  color: #f97316 !important;
  font-weight: 700;
}

.page-content,
.main-content section {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .main-content {
    padding: 1rem !important;
  }
}
