/* Thiru Logs beautification pass 2 */

/* Keep the knowledge-path ticker readable and intentionally framed. */
.knowledge-ticker {
  position: relative;
  isolation: isolate;
}

.knowledge-ticker::before,
.knowledge-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}

.knowledge-ticker::before {
  left: 210px;
  background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,0));
}

.knowledge-ticker::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255,255,255,.96), rgba(255,255,255,0));
}

.knowledge-ticker-label {
  min-width: 210px;
  padding-inline: 18px !important;
  box-shadow: 8px 0 20px rgba(15,23,42,.04);
}

.knowledge-ticker-chip {
  min-width: 245px !important;
  max-width: 270px;
  padding: 10px 16px !important;
}

.knowledge-ticker-chip strong {
  font-size: .98rem !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.knowledge-ticker-chip small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Slightly reduce visual density in the left navigation. */
.sidebar .skill-nav {
  gap: 10px !important;
}

.sidebar .category-nav {
  gap: 8px !important;
}

.sidebar .category-nav .skill-button {
  min-height: 44px !important;
}

.sidebar-subcategory-list button,
.sidebar .subcategory-chip {
  border-color: rgba(148,163,184,.2) !important;
  background: rgba(255,255,255,.025) !important;
}

/* Category cards scan faster with a small color accent and softer content rhythm. */
.category-card {
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--category-color, #2563eb);
  opacity: .85;
}

.category-card p {
  max-width: 58ch;
}

/* Keep footer utility information quieter than primary navigation. */
.app-footer,
.footer-content {
  border-top-color: rgba(148,163,184,.2) !important;
}

.visitor-stats,
.visitor-count,
.footer-stats {
  box-shadow: none !important;
  border-color: rgba(148,163,184,.2) !important;
  background: rgba(255,255,255,.72) !important;
}

@media (max-width: 1180px) {
  .knowledge-ticker::before { left: 170px; }
  .knowledge-ticker-label { min-width: 170px; }
  .knowledge-ticker-chip { min-width: 220px !important; }
}

@media (max-width: 760px) {
  .knowledge-ticker::before,
  .knowledge-ticker::after { display: none; }
  .knowledge-ticker-label { min-width: auto; }
  .knowledge-ticker-chip { min-width: 205px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .knowledge-ticker-track {
    animation-play-state: paused !important;
  }
}
