/* Categories List Page Styles - Timeline Design */

.categories-list-container {
  min-height: 60vh;
  padding-top: 20px;
}

.categories-list-content {
  max-width: 900px;
  margin: 0 auto;
}

.timeline-container {
  position: relative;
}

.timeline-category-section {
  position: relative;
  margin-bottom: 24px;
  
  &:last-child {
    margin-bottom: 0;
  }
}

.timeline-category-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.timeline-category-header:hover {
  opacity: 0.8;
}

.timeline-toggle-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--primary-text-color);
  flex-shrink: 0;
  z-index: 1;
  transition: transform 0.3s ease;
}

.timeline-toggle-icon.rotated {
  transform: rotate(180deg);
}

.timeline-category-title {
  margin-left: 16px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-text-color);
  letter-spacing: 0.5px;
}

:root.appearance-light .timeline-category-title {
  color: #000000;
}

:root.appearance-dark .timeline-category-title {
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root.appearance-auto .timeline-category-title {
    color: #ffffff;
  }
}

@media (prefers-color-scheme: light) {
  :root.appearance-auto .timeline-category-title {
    color: #000000;
  }
}

.timeline-post-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 10px;
  margin-left: 12px;
  background: var(--third-bg-color);
  color: var(--second-text-color);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
}

.timeline-posts {
  margin-left: 8px;
  padding-left: 28px;
  position: relative;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.timeline-category-section.expanded .timeline-posts {
  max-height: 2000px;
}

.timeline-post-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--second-bg-color);
  border: 1px solid var(--border-line-color-2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  position: relative;
  
  /* Simple bullet point */
  &::before {
    content: '•';
    position: absolute;
    left: -20px;
    top: 12px;
    font-size: 18px;
    color: var(--second-text-color);
  }
}

.timeline-post-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.timeline-post-link:hover .timeline-post-item {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-color: var(--link-color);
}

.timeline-post-title {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: var(--primary-text-color);
  line-height: 1.5;
}

:root.appearance-light .timeline-post-title {
  color: #333333;
}

:root.appearance-dark .timeline-post-title {
  color: #cccccc;
}

@media (prefers-color-scheme: dark) {
  :root.appearance-auto .timeline-post-title {
    color: #cccccc;
  }
}

@media (prefers-color-scheme: light) {
  :root.appearance-auto .timeline-post-title {
    color: #333333;
  }
}

.category-view-all-wrapper {
  padding: 1rem 0 0.5rem;
  text-align: center;
  margin-top: 0.5rem;
}

.category-view-all-link {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 4px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

:root.appearance-dark .category-view-all-link {
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root.appearance-auto .category-view-all-link {
    color: #ffffff;
  }
}

@media (prefers-color-scheme: light) {
  :root.appearance-auto .category-view-all-link {
    color: #000000;
  }
}

.category-view-all-link:hover {
  background-color: var(--hover-background-color);
  transform: translateX(4px);
}

.no-categories {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--second-text-color);
}

.no-categories p {
  font-size: 1.125rem;
  margin: 0;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
  .timeline-category-title {
    font-size: 20px;
  }

  .timeline-post-count {
    min-width: 24px;
    height: 24px;
    font-size: 12px;
    padding: 0 8px;
  }

  .timeline-toggle-icon {
    font-size: 18px;
  }

  .timeline-post-item {
    padding: 10px 12px;
  }

  .timeline-post-title {
    font-size: 14px;
  }

  .category-view-all-link {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
}
