/* --- Reddit-like Tribe Forum Styling --- */
.tribe-discussions {
  margin-top: 30px;
  background: #f6f7f8;
  padding: 20px;
  border-radius: 8px;
}

.tribe-heading {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1a1a1b;
}

.tribe-discuss-btn {
  background: #0079d3;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}
.tribe-discuss-btn:hover {
  background: #1484d6;
}

/* ============================================================
   REDDIT MOBILE STYLE FEED POSTS
============================================================ */
.tribe-post-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.tribe-post-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tribe-post-card:hover {
  transform: scale(1.01);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-meta {
  font-size: 13px;
  color: #7c7c7c;
  margin-bottom: 5px;
}

.post-title {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1b;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}
.post-title:hover {
  text-decoration: underline;
}

/* --- Link Preview / Thumbnail --- */
.tribe-link-preview {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  transition: 0.2s;
}
.tribe-link-preview:hover {
  transform: scale(1.01);
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}
.tribe-link-thumb {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  background: #f6f6f6;
}
.tribe-link-thumb.placeholder {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #999;
}

/* --- Vote + Comment Row --- */
.vote-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.vote-btn.small {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #a0a0a0;
  padding: 2px 4px;
  transition: color 0.2s;
  line-height: 1;
}
.vote-btn.small:hover { opacity: 0.8; }
.vote-btn.small.upvoted { color: #0079d3 !important; }
.vote-btn.small.downvoted { color: #ff4500 !important; }

.vote-count {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1b;
}

.comment-count {
  font-size: 14px;
  color: #7c7c7c;
  margin-left: auto;
}

/* --- Load More Button --- */
#load-more-btn {
  margin-top: 15px;
  padding: 10px 20px;
  border-radius: 6px;
  background: #0079d3;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 500;
  display: block;
  width: 100%;
  text-align: center;
}
#load-more-btn:hover {
  background: #1484d6;
}

/* --- Clickable Link Preview Enhancements --- */
.tribe-link-preview a {
  display: block;
  text-decoration: none;
}
.tribe-link-preview a:hover .tribe-link-thumb {
  transform: scale(1.02);
  opacity: 0.95;
}
.tribe-link-thumb {
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Force-hide unwanted author meta */
.single-tribe span.author-name,
.single-tribe .author-name,
.single-tribe .ast-author-meta,
.single-tribe .entry-meta,
.single-tribe .posted-by {
  display: none !important;
  visibility: hidden !important;
}

/* ============================================================
   SINGLE TRIBE POST
============================================================ */
.single-tribe-post {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  margin-top: 20px;
}

.single-tribe-post .post-meta {
  font-size: 14px;
  color: #7c7c7c;
  margin-bottom: 8px;
}

.single-tribe-post .tribe-link {
  font-weight: 600;
  color: #0079d3;
  text-decoration: none;
}

.single-tribe-post .post-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.single-tribe-post .post-body {
  font-size: 16px;
  color: #1a1a1b;
  line-height: 1.6;
  margin-bottom: 20px;
}
