.user-profile-link {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.user-profile-link:hover {
  text-decoration: underline dashed;
}

.join-room {
  font-weight: bold;
  color: #007bff;
  text-decoration: none;
}

/* Panel de Estadísticas Globales */
.global-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 2rem 0;
  padding: 1rem;
  background-color: #f2f2f2;
  border-radius: 8px;
}

.stat-item {
  text-align: center;
  display: block;
  text-decoration: none;
}

.stat-item:hover {
  text-decoration: none;
  background-color: #f0f8ff; /* como highlight suavecito */
  border-radius: 8px;
}

.stat-item i {
  font-size: 2rem;
  color: #007bff;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 0.5rem;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: #555;
}

/* Responsividad para el panel de estadísticas */
@media (max-width: 768px) {
  .global-stats {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Contenedor tipo “widget” */
.trending-tags-widget {
  background-color: #f8f8f8;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.trending-tags-widget h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

/* Lista horizontal con “chips” */
.trending-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Cada tag es un “chip” */
.tag-chip {
  display: inline-flex;
  align-items: center;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-size: 0.9rem;
  color: #555;
  transition: background-color 0.2s;
}

.tag-chip:hover {
  background-color: #e9e9e9;
}

/* Ícono del tag (Font Awesome) */
.tag-icon {
  margin-right: 0.3rem;
  color: #999;
  font-size: 0.9rem;
}

/* El link del tag */
.tag-chip a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
  margin-right: 0.5rem;
}

.tag-chip a:hover {
  text-decoration: underline;
}

/* El “badge” con info extra (blocks, votes) */
.tag-badge {
  background-color: #f1f1f1;
  color: #333;
  border-radius: 12px;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
}

.homepage-header {
  margin-bottom: 2rem;
}

.homepage-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.homepage-header .subtitle {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

/* Sección de “Trending Tags” y “Trending Blocks” */
.trending-section {
  margin-bottom: 2rem;
}

.divider {
  width: 100%;
  height: 1px;
  background-color: #ddd;
  margin: 2rem 0;
}

/* Para la lista de blocks, le puedes dar un margin, etc. */
.block-list {
  list-style: none;
  padding-left: 0;
}

/* Responsividad para pantallas pequeñas */
@media (max-width: 768px) {
  .homepage-header h1 {
    font-size: 1.5rem;
  }

  .trending-tags {
    flex-direction: column;
    align-items: flex-start;
  }

  .tag-chip {
    margin-bottom: 0.5rem;
  }
}

.featured-content-preview {
  max-height: 200px;
  /* Ajusta a tu gusto */
  overflow: hidden;
  margin-top: 1rem;
  /* Si quieres un fondo degradado al final, estilo fade-out: */
  position: relative;
}

.featured-content-preview::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  /* Un degradado que pase de transparente a #fffbea (color de tu card) */
  background: linear-gradient(transparent, #fffbea);
  pointer-events: none;
}

/* Sección que envuelve la card destacada */
.featured-section {
  margin: 2rem 0;
}

.featured-card {
  border: 2px solid #ffc107;
  background-color: #fffbea;
  /* Aumenta el padding-top para dejar espacio al ribbon */
  padding: 2rem 1.5rem 1rem;
  border-radius: 8px;
  position: relative;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}


/* Ribbon */
.featured-ribbon {
  position: absolute;
  top: 0.5rem;
  /* En vez de -10px, lo metemos un poco dentro del card */
  left: 0.5rem;
  background-color: #ffc107;
  color: #333;
  padding: 0.3rem 0.6rem;
  font-weight: bold;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
}

/* Ajusta los títulos para no duplicar “Featured” */
.card-title {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 1.25rem;
  font-weight: bold;
  color: #333;
}

/* Texto de info dentro de la card */
.card-info {
  margin: 1rem 0;
  margin-bottom: 0.25rem;
  color: #555;
  line-height: 1.4;
}

/* Botón en la card (si usas la clase .btn genérica, puedes ajustarla) */
.featured-card .btn {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

.featured-card .btn:hover {
  background-color: #0056b3;
}

/* Elimina outlines extra al hacer focus */
.featured-card .btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}