/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap");
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-color: #f6f3ff;
  --text-color: #1e1535;
  --link-color: #6d28d9;
  --sidebar-bg: #ede9ff;
  --sidebar-border: #c4b5fd;
  --code-bg: #ede9ff;
  --code-border: #c4b5fd;
  --heading-color: #5b21b6;
  --topbar-bg: rgba(246, 243, 255, 0.92);
  --example-bg: #fdf4ff;
  --example-border: #c4b5fd;
  --example-question-bg: rgba(139, 92, 246, 0.08);
  --accent: #7c3aed;
  --accent-light: rgba(124, 58, 237, 0.12);
}

[data-theme=dark] {
  --bg-color: #1a1b26;
  --text-color: #c0caf5;
  --link-color: #73daca;
  --sidebar-bg: #16161e;
  --sidebar-border: #292e42;
  --code-bg: #16161e;
  --code-border: #292e42;
  --heading-color: #7dcfff;
  --topbar-bg: rgba(26, 27, 38, 0.9);
  --example-bg: #1f2335;
  --example-border: #73daca;
  --example-question-bg: rgba(115, 218, 202, 0.08);
  --accent: #73daca;
  --accent-light: rgba(115, 218, 202, 0.1);
}

body {
  margin: 0;
  font-family: "PT Serif", "Times New Roman", Times, serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.75;
  font-size: 1.05rem;
  transition: background-color 0.3s, color 0.3s;
}

/* Callout blocks */
blockquote.note {
  border-left: 4px solid #facc15;
  background-color: rgba(250, 204, 21, 0.1);
  padding: 1rem;
  border-radius: 4px;
  margin: 1.5rem 0;
  color: var(--text-color);
}
blockquote.note strong {
  color: #b45309;
  display: block;
  margin-bottom: 0.5rem;
}

blockquote.warning {
  border-left: 4px solid #e11d48;
  background-color: rgba(225, 29, 72, 0.08);
  padding: 1rem;
  border-radius: 4px;
  margin: 1.5rem 0;
}
blockquote.warning strong {
  color: #be123c;
  display: block;
  margin-bottom: 0.5rem;
}

blockquote.tip {
  border-left: 4px solid var(--accent);
  background-color: var(--accent-light);
  padding: 1rem;
  border-radius: 4px;
  margin: 1.5rem 0;
}
blockquote.tip strong {
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

blockquote {
  border-left: 3px solid var(--sidebar-border);
  margin: 1.5rem 0;
  padding: 0.5rem 1rem;
  color: var(--text-color);
  opacity: 0.85;
}

[data-theme=dark] blockquote.note {
  border-left-color: #eab308;
  background-color: rgba(234, 179, 8, 0.1);
}
[data-theme=dark] blockquote.note strong {
  color: #fce7f3;
}

/* Multimedia */
img, video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem auto;
  display: block;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

figure.image-container {
  margin: 2rem auto;
  text-align: center;
  max-width: 100%;
}
figure.image-container figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 1.75rem;
  margin-top: 0;
  border-bottom: 2px solid var(--sidebar-border);
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-size: 1.15rem;
}

a {
  color: var(--link-color);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: all 0.15s ease-in-out;
}
a:hover {
  text-decoration-thickness: 2px;
  opacity: 0.8;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

thead {
  background-color: var(--sidebar-bg);
}
thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--heading-color);
  border-bottom: 2px solid var(--sidebar-border);
  font-family: "Inter", sans-serif;
}

tbody tr {
  border-bottom: 1px solid var(--sidebar-border);
}
tbody tr:nth-child(even) {
  background-color: rgba(128, 128, 128, 0.03);
}
tbody tr:hover {
  background-color: rgba(128, 128, 128, 0.06);
}
tbody td {
  padding: 0.75rem 1rem;
  color: var(--text-color);
}

/* Code */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.88em;
  background-color: var(--code-bg);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  color: var(--text-color);
  border: 1px solid var(--code-border);
}

pre {
  background-color: var(--code-bg);
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--code-border);
  overflow-x: auto;
  line-height: 1.6;
  margin: 1.5rem 0;
}
pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 0.9em;
  border: none;
}

/* Layout */
#app {
  display: flex;
  min-height: 100vh;
  padding-top: 45px;
  position: relative;
}

/* Topbar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 45px;
  background-color: var(--topbar-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sidebar-border);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--text-color);
}
.topbar .left {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.topbar .center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 500;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40%;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
}
.topbar .right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.topbar .site-title {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.topbar .site-title:hover {
  opacity: 0.8;
}
.topbar button.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  font-size: 1.2rem;
  border-radius: 4px;
  color: var(--text-color);
}
.topbar button.theme-toggle:hover {
  background-color: rgba(128, 128, 128, 0.1);
}

/* Sidebar Toggle Button */
.sidebar-toggle {
  background: var(--sidebar-bg);
  border: 1px solid var(--sidebar-border);
  border-left: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  position: absolute;
  right: -40px;
  top: 15px;
  border-radius: 0 6px 6px 0;
  z-index: 200;
}
.sidebar-toggle span {
  display: block;
  width: 20px;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 3px;
  flex-shrink: 0;
}

.content {
  flex-grow: 1;
  padding: 3rem;
  margin-left: 260px;
  max-width: none;
  width: auto;
  transition: margin-left 0.3s ease;
}
.content.expanded {
  margin-left: 0;
  padding: 3rem;
}

.markdown-body {
  max-width: 860px;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  padding: 1rem 1.5rem;
  padding-top: 1rem;
  position: fixed;
  top: 45px;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  overflow-x: visible;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  z-index: 100;
  transition: transform 0.3s ease;
}
.sidebar.closed {
  transform: translateX(-100%);
}
.sidebar nav {
  margin-top: 1rem;
}
.sidebar a {
  color: var(--text-color);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
}
.sidebar a:hover {
  color: var(--link-color);
}
.sidebar a.active {
  color: var(--link-color);
  font-weight: 600;
}
.sidebar .category {
  margin-bottom: 0.5rem;
}
.sidebar .category-link {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.5rem;
  display: block;
  border-radius: 4px;
  background-color: rgba(128, 128, 128, 0.05);
  cursor: pointer;
  list-style: none;
}
.sidebar .category-link:hover {
  background-color: rgba(128, 128, 128, 0.1);
}
.sidebar .category-link.active {
  color: var(--link-color);
  background-color: var(--accent-light);
}
.sidebar .category-dropdown[open] > summary .arrow,
.sidebar .chapter-dropdown[open] > summary .arrow {
  transform: rotate(90deg);
}
.sidebar .category-dropdown > summary,
.sidebar .chapter-dropdown > summary {
  list-style: none;
  cursor: pointer;
}
.sidebar .category-dropdown > summary::-webkit-details-marker,
.sidebar .chapter-dropdown > summary::-webkit-details-marker {
  display: none;
}
.sidebar .chapters {
  padding-left: 0.5rem;
  margin-left: 0.25rem;
  margin-top: 0.25rem;
}
.sidebar .chapter-dropdown {
  margin: 0.15rem 0;
}
.sidebar .chapter-link {
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.25rem 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 3px;
  color: var(--text-color);
}
.sidebar .chapter-link:hover {
  background-color: rgba(128, 128, 128, 0.08);
}
.sidebar .chapter-link .arrow {
  font-size: 0.6rem;
  transition: transform 0.15s ease;
  opacity: 0.6;
}
.sidebar .topics {
  padding-left: 1rem;
  margin-top: 0.1rem;
  border-left: 1px solid var(--sidebar-border);
  margin-left: 0.3rem;
}
.sidebar .topic-link {
  font-size: 0.8rem;
  font-weight: 400;
  padding: 0.2rem 0.4rem;
  display: block;
  border-radius: 3px;
  opacity: 0.85;
}
.sidebar .topic-link:hover {
  opacity: 1;
  background-color: rgba(128, 128, 128, 0.08);
}
.sidebar .topic-link.active {
  opacity: 1;
  color: var(--link-color);
  font-weight: 500;
}

/* Lists */
ul, ol {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}
ul li, ol li {
  margin: 0.25rem 0;
}

/* Mobile */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }
  .sidebar:not(.closed) {
    transform: translateX(0);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
  }
  .content {
    margin-left: 0;
    padding: 1.5rem;
  }
  .sidebar-toggle {
    display: flex;
  }
}
@media (min-width: 769px) {
  .sidebar-toggle {
    display: flex;
  }
}

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