/* ============================================
   ELEVA AMAPÁ — Assuntos de Redação
   Reaproveita dashboard.css e redacao.css.
   ============================================ */

.nivel-legenda {
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #18181b;
  color: #a1a1aa;
}

/* ---------- Grid de assuntos ---------- */
.grid-assuntos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .grid-assuntos {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Card de assunto ---------- */
.card-assunto {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: #18181b;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.card-assunto:hover {
  transform: translateY(-2px);
  background: #1f1f23;
}

.card-assunto .num {
  font-size: 0.75rem;
  font-weight: 800;
  color: #52525b;
  min-width: 1.5rem;
  text-align: center;
}

.card-assunto .nome {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e4e4e7;
  line-height: 1.35;
}

.card-assunto .badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Cores por classificação */
.card-essencial {
  border-left: 3px solid #10b981;
}
.card-essencial .badge {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.card-essencial:hover {
  border-color: rgba(16, 185, 129, 0.35);
}

.card-muito-importante {
  border-left: 3px solid #f59e0b;
}
.card-muito-importante .badge {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.card-muito-importante:hover {
  border-color: rgba(245, 158, 11, 0.35);
}

.card-importante {
  border-left: 3px solid #f97316;
}
.card-importante .badge {
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.25);
}
.card-importante:hover {
  border-color: rgba(249, 115, 22, 0.35);
}

/* ---------- Top 15 ---------- */
.top15-box {
  background: linear-gradient(135deg, rgba(245,158,11,0.10), rgba(245,158,11,0.02));
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.top15-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.top15-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.top15-item:hover {
  background: rgba(255,255,255,0.05);
  transform: translateX(4px);
}

.top15-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
}

.top15-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #d4d4d8;
}

/* ---------- Bloqueio pro Plano Free ---------- */
/* O card continua 100% legível (nome, categoria) — só o clique é
   interceptado no JS. O cadeado é só um reforço visual de que
   aquele link não vai abrir a página de verdade. */
.card-assunto.bloqueado,
.top15-item.bloqueado {
  cursor: pointer;
  position: relative;
  opacity: 0.7;
}
.card-assunto.bloqueado::after {
  content: '🔒';
  font-size: 0.8rem;
  margin-left: 0.4rem;
  flex-shrink: 0;
}
.top15-item.bloqueado::after {
  content: '🔒';
  font-size: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
}