/**
 * CLI Sitemap Styles - coc-explorer Style
 */

.cli-sitemap {
  font-family: "Fira Code", "Consolas", "Monaco", monospace;
  font-size: 15px;
  line-height: 1.5;
  color: #888;
  background: #000;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  user-select: none;
  overflow: hidden;
}

/* Tree container */
.sitemap-tree {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0;
}

/* Section header like [FILE] */
.tree-section {
  padding: 4px 8px;
  color: #888;
  white-space: nowrap;
}

.tree-section .section-marker {
  color: #666;
}

.tree-section .section-label {
  color: #5fafaf;
}

.tree-section .section-name {
  color: #888;
}

.tree-section .section-path {
  color: #555;
}

/* Tree items */
.tree-line {
  display: block;
  padding: 1px 8px;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.tree-line:hover {
  background: #1a1a1a;
}

.tree-line.active {
  background: #2a2a2a;
}

/* Tree structure */
.tree-indent {
  color: #333;
  white-space: pre;
}

.tree-marker {
  color: #666;
}

.tree-selector {
  color: #5fafaf;
}

.tree-name {
  color: #888;
}

.tree-name.dir {
  color: #5fafaf;
}

.tree-name.file {
  color: #ccc;
}

.tree-line.active .tree-name {
  color: #fff;
}

/* Status bar */
.sitemap-status {
  display: flex;
  justify-content: space-between;
  padding: 4px 8px;
  background: #111;
  font-size: 13px;
  color: #555;
}

.status-left {
  color: #888;
}

.status-right {
  color: #555;
}

/* Block left overrides - remove all spacing */
.inner-post-page .block-left {
  background: #000 !important;
}

.inner-post-page .block-left .content {
  height: 100%;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.inner-post-page .block-left .post-title-section {
  display: none !important;
}

.inner-post-page .block-left .logo {
  display: none !important;
}

/* Override any inherited styles */
.inner-post-page .block-left * {
  box-sizing: border-box;
}

/* Responsive */
@media screen and (max-width: 960px) {
  .cli-sitemap {
    font-size: 13px;
  }
}

/* Light Mode */
@media (prefers-color-scheme: light) {
  .cli-sitemap {
    color: #6b7280;
    background: #e8e8ec;
  }

  .tree-section .section-marker {
    color: #9ca3af;
  }

  .tree-section .section-label {
    color: #0891b2;
  }

  .tree-section .section-name {
    color: #6b7280;
  }

  .tree-section .section-path {
    color: #9ca3af;
  }

  .tree-line:hover {
    background: #e5e7eb;
  }

  .tree-line.active {
    background: #d1d5db;
  }

  .tree-indent {
    color: #d1d5db;
  }

  .tree-marker {
    color: #9ca3af;
  }

  .tree-selector {
    color: #0891b2;
  }

  .tree-name {
    color: #6b7280;
  }

  .tree-name.dir {
    color: #10b981;
  }

  .tree-name.file {
    color: #374151;
  }

  .tree-line.active .tree-name {
    color: #111827;
  }

  .sitemap-status {
    background: #e5e7eb;
    color: #9ca3af;
  }

  .status-left {
    color: #6b7280;
  }

  .status-right {
    color: #9ca3af;
  }

  .inner-post-page .block-left {
    background: #e8e8ec !important;
  }
}
