/* Forum App - Theme Overrides */

/* Forum Header */
.forum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  gap: var(--spacing-md);
}

@media (max-width: 640px) {
  .forum-header {
    flex-direction: column;
    align-items: stretch;
  }
}

.forum-stats {
  display: flex;
  gap: var(--spacing-lg);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.stat strong {
  color: var(--color-text);
}

/* Categories */
.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.category-tag {
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--color-bg-secondary);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-tag:hover {
  background-color: var(--color-bg-tertiary);
  color: var(--color-text);
}

.category-tag.active {
  background-color: var(--color-accent);
  color: white;
}

/* Threads List */
.threads-list {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* Thread Item */
.thread-item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--color-border-light);
  transition: background-color var(--transition-fast);
}

.thread-item:last-child {
  border-bottom: none;
}

.thread-item:hover {
  background-color: var(--color-bg-secondary);
}

.thread-avatar {
  flex-shrink: 0;
}

.thread-content {
  flex: 1;
  min-width: 0;
}

.thread-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
}

.thread-title a {
  color: inherit;
}

.thread-title a:hover {
  color: var(--color-accent);
}

.thread-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.thread-author {
  color: var(--color-text-secondary);
}

.thread-excerpt {
  margin-top: var(--spacing-sm);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.thread-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--spacing-xs);
  flex-shrink: 0;
  text-align: right;
}

.thread-replies {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-text);
}

.thread-replies-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.thread-last-activity {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Thread Tags */
.thread-tags {
  display: flex;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
}

.thread-tag {
  font-size: var(--font-size-xs);
  padding: 2px 8px;
  background-color: var(--color-bg-tertiary);
  border-radius: var(--border-radius-sm);
  color: var(--color-text-secondary);
}

/* Pinned Thread */
.thread-item.pinned {
  background-color: var(--color-bg-secondary);
  border-left: 3px solid var(--color-accent);
}

.thread-item.pinned .thread-title::before {
  content: '📌 ';
}

/* Locked Thread */
.thread-item.locked {
  opacity: 0.7;
}

.thread-item.locked .thread-title::before {
  content: '🔒 ';
}
