/* ============================================================
   WINDMASTER — Últimas Noticias (Home)
   Componente [wm_foro_actividad] reutilizado para blog posts
   Clase marcadora: .wm-foro
============================================================ */

.wm-foro-activity {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* ── Card destacada ──────────────────────────────────────── */

.wm-fa-featured {
  display: flex;
  flex-direction: column;
  background: var(--wm-bg-secondary);
  border: 1px solid var(--wm-border-subtle);
  border-radius: var(--wm-radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.wm-fa-featured:hover {
  border-color: rgba(0, 200, 255, 0.3);
  box-shadow: var(--wm-shadow-md);
  transform: translateY(-2px);
}

/* Imagen de portada */
.wm-fa-featured-img {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--wm-bg-tertiary);
  flex-shrink: 0;
}

/* Contenido texto */
.wm-fa-featured-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
}

.wm-fa-featured-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Badge categoría */
.wm-fa-cat {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(0, 200, 255, 0.1);
  border: 1px solid rgba(0, 200, 255, 0.25);
  color: var(--wm-accent);
  text-decoration: none;
}

.wm-fa-cat-sm {
  font-size: 9px;
  padding: 2px 8px;
  flex-shrink: 0;
}

/* Badge "Nuevo" */
.wm-fa-new {
  font-size: 10px;
  font-weight: 700;
  color: #4caf79;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(76, 175, 121, 0.12);
  border: 1px solid rgba(76, 175, 121, 0.25);
}

.wm-fa-featured-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--wm-text-white);
  line-height: 1.35;
  margin: 0;
  transition: color 0.2s;
}

.wm-fa-featured:hover .wm-fa-featured-title {
  color: var(--wm-accent);
}

.wm-fa-featured-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--wm-text-dim);
}

/* ── Lista de posts recientes ────────────────────────────── */

.wm-fa-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wm-fa-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--wm-bg-secondary);
  border: 1px solid var(--wm-border-subtle);
  border-radius: var(--wm-radius-md);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  min-width: 0;
}

.wm-fa-item:hover {
  border-color: rgba(0, 200, 255, 0.25);
  background: rgba(0, 200, 255, 0.03);
}

/* Thumbnail miniatura */
.wm-fa-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--wm-radius-sm);
  background-size: cover;
  background-position: center;
  background-color: var(--wm-bg-tertiary);
  flex-shrink: 0;
}

.wm-fa-item-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Info: categoría + título */
.wm-fa-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.wm-fa-item-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--wm-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.wm-fa-item:hover .wm-fa-item-title {
  color: var(--wm-text-white);
}

/* Meta: comentarios + fecha */
.wm-fa-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
  font-size: 11px;
  color: var(--wm-text-dim);
  white-space: nowrap;
}

.wm-fa-replies { font-size: 11px; }
.wm-fa-ago     { font-size: 11px; }

/* ── Link "Ver todas" ────────────────────────────────────── */

.wm-fa-ver-todas {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--wm-accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: gap 0.2s, opacity 0.2s;
  opacity: 0.85;
}

.wm-fa-ver-todas:hover {
  gap: 10px;
  opacity: 1;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 767px) {
  .wm-fa-featured-img   { height: 160px; }
  .wm-fa-featured-body  { padding: 16px; }
  .wm-fa-featured-title { font-size: 15px; }

  .wm-fa-item       { padding: 10px 12px; }
  .wm-fa-item-thumb { width: 40px; height: 40px; }
  .wm-fa-item-title { font-size: 12px; white-space: normal; }
  .wm-fa-item-meta  { flex-direction: row; gap: 8px; }
}
