/* Traces section styling - minimal additions to PaperMod theme */

.kind-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: var(--theme);
  color: var(--primary);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Slightly smaller traces entries for chronological feel */
.traces .post-entry,
.traces .first-entry {
  padding: calc(var(--gap) * 0.8);
  margin-bottom: calc(var(--gap) * 0.8);
}

.traces .entry-header h2,
.traces .first-entry .entry-header h2 {
  font-size: 20px;
  line-height: 1.4;
}

.traces .entry-content,
.traces .first-entry .entry-content {
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0;
}

.traces .entry-footer,
.traces .first-entry .entry-footer {
  font-size: 12px;
}


/* Archive layout styling for traces */
.traces .archive-year {
  margin-bottom: 2rem;
}

.traces .archive-year-header {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}

.traces .archive-month {
  margin-bottom: 1.5rem;
}

.traces .archive-month-header {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  color: var(--secondary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3rem;
}

.traces .archive-posts {
  margin-left: 1rem;
}

.traces .archive-entry {
  position: relative;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
}

.traces .archive-entry:hover {
  background-color: var(--theme);
  border-radius: 6px;
  padding-left: 0.5rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.traces .archive-entry-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: var(--primary);
}

.traces .archive-meta {
  font-size: 0.9rem;
  color: var(--secondary);
  margin-bottom: 0.2rem;
}

.traces .archive-count {
  font-size: 0.8rem;
  color: var(--tertiary);
  font-weight: 400;
}

.traces .archive-header-link {
  color: inherit;
  text-decoration: none;
}

.traces .archive-header-link:hover {
  text-decoration: underline;
}

/* Filter styling */
.traces-filters {
  margin: 1.5rem 0;
}

.traces-filters .filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.traces-filters .filter-tag {
  padding: 0.3rem 0.7rem;
  background-color: var(--entry);
  color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-weight: 400;
}

.traces-filters .filter-tag:hover {
  background-color: var(--primary);
  color: var(--theme);
  border-color: var(--primary);
}

.traces-filters .filter-tag.active {
  background-color: var(--primary);
  color: var(--theme);
  border-color: var(--primary);
  font-weight: 500;
}

/* Hidden state for filtered entries */
.traces .archive-entry.hidden,
.archive-entry.hidden {
  display: none !important;
}

/* Hidden state for empty years/months */
.traces .archive-year.hidden,
.traces .archive-month.hidden,
.archive-year.hidden,
.archive-month.hidden {
  display: none !important;
}

