/* =============================================================
   SIDEBAR MINI JUEGOS — sidebar-games.css
   Widget de quick-play en el sidebar de index.html.
   ============================================================= */

/* ── Widget-badge as clickable link ── */
.widget-badge-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
}
.widget-badge-link:hover {
  opacity: 0.75;
}

/* ── Games list ── */
.sidebar-games-list {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
}

.sidebar-game-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  transition: background 0.18s;
  cursor: pointer;
}
.sidebar-game-item:last-child {
  border-bottom: none;
}
.sidebar-game-item:hover {
  background: var(--bg-secondary, rgba(255,255,255,0.05));
}

/* ── Game icon ── */
.sg-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary, #1a1a2e);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sg-icon-quiz {
  background: linear-gradient(135deg, #1a1a3e, #7b2d8b);
  color: #fff;
  font-size: 1.2rem;
  border-radius: 50%;
}
.sg-icon-blur {
  border-radius: 50%;
}

/* ── Game info ── */
.sg-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sg-name {
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sg-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Play button ── */
.sg-play-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00d2ff 0%, #006fff 100%);
  color: #fff;
  transition: opacity 0.18s, transform 0.18s;
  white-space: nowrap;
}
.sidebar-game-item:hover .sg-play-btn {
  opacity: 0.88;
  transform: scale(1.04);
}

/* ── Tabla Campeonato hero banner ── */
.widget-tabla .widget-header {
  /* Text on dark tinted background must always be readable */
  color: #fff !important;
}
.widget-tabla .widget-title,
.widget-tabla .widget-badge {
  position: relative;
  z-index: 1;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .sg-play-btn { display: none; }
  .sidebar-game-item { padding: 10px 12px; }
}
