/* لیست بوردها به شکل کارت */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.board-card {
  background: var(--black2);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: transform 0.2s, border-color 0.2s;
}

.board-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.board-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #1a1508;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.board-card h3 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 6px;
}

.board-card p {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0 0 8px;
  line-height: 1.7;
}

.board-card .count {
  color: var(--gold-light);
  font-size: 11px;
}

/* لیست تاپیک‌ها */
.topic-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--black2);
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 12px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.topic-row:hover {
  border-color: var(--gold);
}

.topic-row .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #1a1508;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.topic-row .info {
  flex: 1;
  min-width: 0;
}

.topic-row .info h3 {
  color: #fff;
  font-size: 14px;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topic-row .info .meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}

.topic-row .stat {
  text-align: center;
  min-width: 54px;
}

.topic-row .stat .num {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 14px;
}

.topic-row .stat .lbl {
  color: var(--text-muted);
  font-size: 10px;
}

.closed-badge {
  font-size: 10px;
  background: rgba(226, 96, 96, 0.15);
  color: #ff9c9c;
  padding: 2px 8px;
  border-radius: 999px;
}

.new-topic-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

/* صفحه‌ی تاپیک */
.topic-detail-header {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.topic-detail-header h1 {
  color: #fff;
  font-size: 22px;
  margin: 0 0 8px;
}

.topic-admin-actions {
  display: flex;
  gap: 8px;
}

.topic-admin-actions button {
  background: var(--black3);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--text-muted);
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

.topic-admin-actions button:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.topic-admin-actions .danger-btn:hover {
  color: var(--error);
  border-color: var(--error);
}

/* هر پست داخل تاپیک */
.forum-post {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.forum-post:first-child {
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.forum-post .avatar-col {
  width: 60px;
  text-align: center;
  flex-shrink: 0;
}

.forum-post .avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #1a1508;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
}

.forum-post .avatar-col .name {
  color: #fff;
  font-size: 11px;
}

.forum-post .content-col {
  flex: 1;
}

.forum-post .post-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.forum-post .post-text {
  color: #d6d0c4;
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-line;
  margin-bottom: 12px;
}

.first-post {
  background: rgba(212, 175, 55, 0.04);
  border-radius: 10px;
  padding-top: 8px;
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

.like-btn.liked {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.reply-form-wrap {
  margin-top: 30px;
}

.reply-form-wrap textarea {
  width: 100%;
  background: var(--black3);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 12px;
}
