/* Slimforo – latest activity bar */

/* Container & heading */
.slimforo-bar { margin: 12px 0 20px; }
.slimforo-heading {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
}

/* Grid of cards */
.slimforo-latest-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
@media (max-width: 1200px) {
  .slimforo-latest-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .slimforo-latest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .slimforo-latest-grid { grid-template-columns: 1fr; }
}

/* Cards */
.slimforo-card {
  border: 1px solid #d0d7de;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  overflow: hidden; /* contain long content */
  transition: border-color .15s ease, box-shadow .15s ease;
}
.slimforo-card:hover {
  border-color: #c8d1dc;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

/* Topic title */
/* Topic header styling (top of each card) */
.slimforo-card-topic {
  color: #0099CC;           /* make it blue */
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slimforo-card-topic:hover { color: #33B5E5; }  /* light hover */

/* Posts list inside each card */
.slimforo-card-posts { list-style: none; margin: 0; padding: 0; }
.slimforo-postline { margin: 4px 0; }

/* Links inherit theme color, keep layout tidy */
/* Link color to match wpForo */
.slimforo-card a { color: #0099CC; }
.slimforo-card a:hover { color: #33B5E5; }

.slimforo-postlink {
  display: flex;
  align-items: baseline;
  gap: 6px;
  overflow: hidden; /* prevent run-off */
}
.slimforo-postlink:hover .slimforo-post-excerpt { text-decoration: underline; }

/* Pieces of the line */
/* Author shown as 2-letter initials */
.slimforo-post-author {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.slimforo-post-sep { flex: 0 0 auto; opacity: .55; }
.slimforo-post-excerpt {
  flex: 1 1 auto;
  min-width: 0;                /* enables ellipsis in flex item */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slimforo-post-ago {
  flex: 0 0 auto;
  margin-left: auto;
  opacity: .7;
  white-space: nowrap;
  font-size: .85rem;
}
/* Force Slimforo blue + lighter hover */
.slimforo-card .slimforo-card-topic,
.slimforo-card .slimforo-postlink,
.slimforo-card .slimforo-postlink * {
  color: #0099CC !important;
}
.slimforo-card .slimforo-card-topic:hover,
.slimforo-card .slimforo-postlink:hover,
.slimforo-card .slimforo-postlink:hover * {
  color: #33B5E5 !important;
}


/* --- CONSOLIDATED WIDGET/SIDEBAR STYLES --- */

/* 1. Force a simple vertical list layout in the widget */
.widget .slimforo-latest-grid {
  display: block !important;
}
.widget .slimforo-card {
  border: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.widget .slimforo-card:hover {
  border: none;
  box-shadow: none;
}

/* 2. ADD SPACE BETWEEN TOPICS (THE MAIN FIX) */
/* This adds a top margin to every topic card EXCEPT the first one. */
.widget .slimforo-card + .slimforo-card {
  margin-top: 1.2em !important; /* <-- THE CHANGE IS HERE. Force the margin to apply. */
}

/* 3. Style the bold topic title link */
.widget .slimforo-card-topic {
  display: block;
  margin: 0 0 4px;
  font-weight: 700 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-decoration: none;
}
.widget .slimforo-card-topic:hover {
  text-decoration: none;
}

/* 4. Style the list of posts on a single line */
.widget .slimforo-card-posts {
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.widget .slimforo-postline {
  display: inline;
}
.widget .slimforo-postline + .slimforo-postline::before {
  content: " | ";
  color: #999;
}

/* 5. Ensure any old separators or borders are hidden */
.widget .slimforo-sep {
  display: none;
}
