:root {
  --pond-upvote: #FF4500;
  --pond-downvote: #7193FF;
  --pond-text-primary: #1A1A1B;
  --pond-text-secondary: #787C7E;
  --pond-text-muted: #878A8C;
  --pond-bg-primary: #FFFFFF;
  --pond-bg-secondary: #F6F7F8;
  --pond-border: #E0E0E0;
  --pond-border-hover: #898989;
}

/* ============================================
   Forum Post Card - Block layout (not flex row)
   ============================================ */

.forum-post,
.node--type-forum {
  background: var(--pond-bg-primary);
  border: 1px solid var(--pond-border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  display: block;
}

.forum-post:hover,
.node--type-forum:hover {
  border-color: var(--pond-border-hover);
}

/* Title */
.forum-post__title,
.forum-post h2,
.node--type-forum h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--pond-text-primary);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.forum-post__title a,
.forum-post h2 a,
.node--type-forum h2 a {
  color: inherit;
  text-decoration: none;
}

.forum-post__title a:hover,
.node--type-forum h2 a:hover {
  text-decoration: underline;
}

/* Meta - inline with avatar */
.node__meta,
.forum-post__meta {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 12px;
  color: var(--pond-text-muted);
  margin-bottom: 12px;
}

.node__meta img,
.forum-post__meta img {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  object-fit: cover;
  display: inline-block !important;
}

.node__meta * {
  display: inline !important;
}

.node__meta img {
  display: inline-block !important;
}

/* Content */
.forum-post__content,
.node__content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--pond-text-primary);
}

/* ============================================
   Action Row - Horizontal
   ============================================ */

.node__actions,
.forum-post__actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--pond-border);
  font-size: 12px;
  color: var(--pond-text-muted);
}

.node__actions a,
.node__actions .action-link {
  color: var(--pond-text-muted);
  text-decoration: none;
  font-weight: 600;
}

.node__actions a:hover {
  text-decoration: underline;
}

.node__actions .action-separator {
  color: #ccc;
}

/* ============================================
   Vote Widget - Inline Horizontal in Actions
   ============================================ */

.vote-inline,
.recommend-inline,
.report-inline {
  display: inline-flex !important;
  align-items: center !important;
}

.vote-inline .forum-vote-widget,
.node__actions .forum-vote-widget {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 0 !important;
  min-width: auto !important;
}

.vote-inline .forum-vote-widget .vote-btn,
.node__actions .forum-vote-widget .vote-btn {
  width: 20px !important;
  height: 20px !important;
  padding: 2px !important;
  font-size: 14px !important;
}

.vote-inline .forum-vote-widget .vote-score,
.node__actions .forum-vote-widget .vote-score {
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 0 4px !important;
}

/* Recommend and Report inline */
.recommend-inline .forum-recommend-widget,
.report-inline .forum-report-widget {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 12px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

.recommend-inline .forum-recommend-widget .recommend-btn,
.report-inline .forum-report-widget .report-btn {
  padding: 4px 8px !important;
  font-size: 12px !important;
}

/* ============================================
   Comments
   ============================================ */

.comment {
  background: var(--pond-bg-primary);
  border: 1px solid var(--pond-border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
}

.indented {
  margin-left: 24px;
  padding-left: 16px;
  border-left: 2px solid #EDEFF1;
}

/* ============================================
   Mobile
   ============================================ */

@media (max-width: 768px) {
  .forum-post,
  .node--type-forum {
    padding: 12px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .indented {
    margin-left: 12px;
    padding-left: 12px;
  }
}

/* Force horizontal vote widget everywhere */
.forum-vote-widget {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 0 !important;
}

.forum-vote-widget .vote-btn {
  width: 20px !important;
  height: 20px !important;
}

.forum-vote-widget .vote-btn svg {
  width: 16px !important;
  height: 16px !important;
}

.forum-vote-widget .vote-score {
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* Hide duplicate avatars - keep only the first one in node__meta */
.node--type-forum .node__content .user-picture,
.node--type-forum .node__content img[src*='avatar'],
.node--type-forum .node__content img[src*='picture'],
.node--type-forum .node__content .field--name-user-picture,
.node--type-forum .node__content .field--name-uid {
  display: none !important;
}

/* Hide vote widgets that are NOT in the actions area */
.node--type-forum .node__content .forum-vote-widget,
.node--type-forum .node__content .vote-widget {
  display: none !important;
}

/* Make sure vote widget IN actions is visible and horizontal */
.node__actions .forum-vote-widget,
.node__actions .vote-widget {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
}
