.forum-page {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.forum-notice {
  font-size: 0.9rem;
}

.forum-notice i {
  margin-right: 0.4rem;
}

.forum-breadcrumb {
  font-size: 0.9rem;
}

.forum-breadcrumb a {
  color: var(--bs-primary);
  text-decoration: none;
}

.forum-breadcrumb a:hover {
  text-decoration: underline;
}

.forum-breadcrumb-sep {
  font-size: 0.65rem;
  margin: 0 0.35rem;
  color: var(--bs-secondary);
}

.forum-category-item:hover,
.forum-category-item:active,
.forum-post-item:hover,
.forum-post-item:active {
  transform: none;
}

.forum-category-item h6 {
  margin-bottom: 0.25rem;
}

.forum-category-meta {
  font-size: 0.85rem;
  min-width: 0;
}

.forum-post-item {
  position: relative;
}

.forum-post-item h6 {
  color: var(--bs-primary);
}

.forum-post-item:hover h6 {
  text-decoration: underline;
}

.forum-post-preview {
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.forum-meta {
  font-size: 0.85rem;
}

.forum-team-link {
  color: var(--bs-primary);
  text-decoration: none;
}

.forum-team-link:hover {
  text-decoration: underline;
}

.forum-post-text {
  white-space: pre-wrap;
  word-break: break-word;
}

#forum-comment-input {
  resize: vertical;
}

.forum-comment-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  justify-content: flex-end;
}

.forum-comment {
  font-size: 0.95rem;
}

.forum-comment-images {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.forum-comment-thumb {
  height: 100px;
  border-radius: 4px;
  cursor: pointer;
  object-fit: cover;
}

.forum-comment-thumb:hover {
  opacity: 0.8;
}

.forum-image-preview {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.forum-preview-item {
  position: relative;
  display: inline-block;
}

.forum-preview-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--bs-danger);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.forum-image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
}

.forum-image-overlay img {
  max-height: 80vh;
  max-width: 80vw;
  object-fit: contain;
  border-radius: 4px;
}

.forum-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  padding: 0.15em 0.5em;
  border-radius: 0.25rem;
  vertical-align: middle;
  line-height: 1.2;
}

.forum-badge-admin {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.forum-badge-form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.forum-badge-form .form-control-color {
  width: 2.5rem;
  padding: 0.2rem;
}

.forum-latest-comments-title {
  color: var(--bs-secondary);
}

.forum-latest-comment-item:hover,
.forum-latest-comment-item:active {
  transform: none;
}

.forum-latest-comment-title {
  color: var(--bs-primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.forum-latest-comment-item:hover .forum-latest-comment-title {
  text-decoration: underline;
}
