/* ============================================
   CLOZE RECALL
   ============================================ */

.recall {
  color: transparent;
  background: rgba(56, 139, 253, 0.06);
  border: 1px solid rgba(56, 139, 253, 0.45);
  border-bottom: 2px solid rgba(56, 139, 253, 0.7);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  cursor: pointer;
  transition: all 0.35s ease;
  filter: blur(3px);
  display: inline-block;
}

.recall:hover {
  background: rgba(56, 139, 253, 0.12);
  border-color: rgba(56, 139, 253, 0.7);
  border-bottom-color: rgba(56, 139, 253, 1);
}

.recall.revealed {
  color: #a5d6ff;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(56, 139, 253, 0.4);
  border-radius: 0;
  padding-bottom: 1px;
  filter: blur(0);
  cursor: default;
}

.recall-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
  align-items: center;
}

.recall-controls button {
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(56, 139, 253, 0.4);
  background: rgba(56, 139, 253, 0.08);
  color: #58a6ff;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
}

.recall-controls button:hover {
  background: rgba(56, 139, 253, 0.18);
  border-color: rgba(56, 139, 253, 0.7);
}


/* ============================================
   BASE & BACKGROUND
   ============================================ */

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

.theme-dark {
  --background-primary: #0d1117;
  --background-secondary: #161b22;
  --background-modifier-border: rgba(255,255,255,0.07);
  --text-normal: #c9d1d9;
  --text-muted: #8b949e;
  --text-faint: #484f58;
  --interactive-accent: #58a6ff;
}


/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}


/* ============================================
   SIDEBAR (FILE TREE)
   ============================================ */

.sidebar-content,
.filetree-sidebar {
  background-color: #0d1117 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.site-name,
.site-header a {
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #c9d1d9 !important;
  letter-spacing: 0.01em;
}

.filetree-sidebar ul {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  margin-left: 12px;
}

.filetree-sidebar li a,
.nav-file-title,
.nav-folder-title {
  font-size: 12px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #6e7681 !important;
  padding: 3px 8px !important;
  line-height: 1.5 !important;
}

.filetree-sidebar li a:hover,
.nav-file-title:hover,
.nav-folder-title:hover {
  color: #c9d1d9 !important;
}

.filetree-sidebar li a.active,
.nav-file-title.active {
  color: #58a6ff !important;
}

.nav-folder-title {
  font-weight: 500 !important;
  color: #8b949e !important;
}


/* ============================================
   CONTENT AREA
   ============================================ */

.content {
  max-width: 680px !important;
  padding: 40px 48px !important;
  margin: 0 auto;
}

.markdown-preview-view,
.markdown-rendered {
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: #8b949e !important;
}

h1, .markdown-rendered h1 {
  font-size: 22px !important;
  font-weight: 500 !important;
  color: #e6edf3 !important;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 16px;
}

h2, .markdown-rendered h2 {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #c9d1d9 !important;
  margin-top: 32px;
  margin-bottom: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

h3, .markdown-rendered h3 {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #8b949e !important;
  margin-top: 20px;
  margin-bottom: 8px;
}

.markdown-rendered p {
  margin-bottom: 14px;
}

.markdown-rendered a {
  color: #58a6ff !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(56, 139, 253, 0.3);
}

.markdown-rendered a:hover {
  border-bottom-color: rgba(56, 139, 253, 0.7);
}

.markdown-rendered strong {
  color: #c9d1d9 !important;
  font-weight: 500 !important;
}


/* ============================================
   NOTE META
   ============================================ */

.header-meta {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.header-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px !important;
  padding: 2px 8px !important;
  border-radius: 12px !important;
  background: rgba(56, 139, 253, 0.08) !important;
  border: 1px solid rgba(56, 139, 253, 0.2) !important;
  color: #58a6ff !important;
  text-decoration: none !important;
}

.timestamps {
  font-size: 11px !important;
  color: #484f58 !important;
  display: flex;
  gap: 12px;
}

.timestamps div {
  display: flex;
  align-items: center;
  gap: 4px;
}


/* ============================================
   CALLOUTS
   ============================================ */

.callout {
  border-radius: 0 6px 6px 0 !important;
  padding: 12px 16px !important;
  margin: 16px 0 !important;
  border-left-width: 3px !important;
}

.callout-title {
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 6px !important;
}

.callout-content p {
  margin: 0 !important;
  font-size: 13px !important;
}


/* ============================================
   CODE BLOCKS
   ============================================ */

pre {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 6px !important;
  padding: 16px !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

code {
  font-size: 12px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-radius: 3px !important;
  padding: 0.1em 0.4em !important;
  color: #e3b341 !important;
}

pre code {
  background: transparent !important;
  padding: 0 !important;
  color: inherit !important;
}


/* ============================================
   RIGHT PANEL (TOC + BACKLINKS)
   ============================================ */

.right-sidebar {
  background-color: #0d1117 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.07) !important;
  padding: 20px 14px !important;
  font-size: 12px !important;
}

.right-sidebar h4,
.backlinks-title,
.toc-title {
  font-size: 10px !important;
  font-weight: 500 !important;
  color: #484f58 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-bottom: 8px !important;
}

.right-sidebar a {
  color: #6e7681 !important;
  font-size: 12px !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 0;
}

.right-sidebar a:hover {
  color: #c9d1d9 !important;
}



/* ============================================
   SIDEBAR ELLIPSIS FIX
   ============================================ */

.sidebar-content,
.filetree-sidebar {
  overflow: hidden !important;
}

.filetree-sidebar li,
.filetree-sidebar a {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  display: block !important;
}

.content {
  margin: 0 auto !important;
}

.backlinks h4,
.sidebar-right h4 {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #484f58 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}


/* ============================================
   MOBILE
   ============================================ */

@media (max-width: 768px) {
  .content {
    padding: 24px 20px !important;
  }
}
