/* ============================================================
   Sampa News — Menu Extra v1.0.0
   Botão "+" + painel deslizante de editorias extras
   ============================================================ */

/* ── Botão "+" ── */
#snm-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.2s, border-color 0.2s, transform 0.25s;
  flex-shrink: 0;
  user-select: none;
  vertical-align: middle;
  font-weight: 300;
  font-family: 'Georgia', serif;
}

#snm-toggle-btn:hover {
  background: rgba(232, 0, 28, 0.2);
  border-color: rgba(232, 0, 28, 0.5);
}

#snm-toggle-btn.snm-open {
  background: #e8001c;
  border-color: #e8001c;
  transform: rotate(45deg);
}

/* ── Painel deslizante ── */
#snm-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99998;
  background: #0d0d1a;
  border-bottom: 2px solid #e8001c;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
  opacity: 0;
}

#snm-panel.snm-panel-open {
  max-height: 200px;
  opacity: 1;
}

/* Inner */
#snm-panel-inner {
  padding: 20px 24px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header do painel */
#snm-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

#snm-panel-title {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 11px;
  font-weight: bold;
  color: #e8001c;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

#snm-close-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #888;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
  padding: 0;
}

#snm-close-btn:hover {
  background: rgba(232,0,28,0.2);
  color: #fff;
}

/* Grade de categorias */
#snm-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Pill de cada categoria */
.snm-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  color: #e0e0f0;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
  font-family: 'Georgia', 'Times New Roman', serif;
}

.snm-cat-pill:hover {
  background: rgba(232, 0, 28, 0.15);
  border-color: rgba(232, 0, 28, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
  text-decoration: none;
}

.snm-cat-pill.snm-hot {
  border-color: rgba(232, 0, 28, 0.25);
  background: rgba(232, 0, 28, 0.08);
}

.snm-cat-pill.snm-hot::after {
  content: 'HOT';
  font-size: 8px;
  font-family: 'DM Mono', monospace;
  background: #e8001c;
  color: #fff;
  border-radius: 3px;
  padding: 1px 5px;
  letter-spacing: 0.05em;
  margin-left: 2px;
}

.snm-cat-emoji { font-size: 16px; line-height: 1; }

/* Overlay escuro quando painel aberto */
#snm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99997;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

#snm-overlay.snm-overlay-show {
  opacity: 1;
  pointer-events: all;
}

/* Responsivo */
@media (max-width: 600px) {
  #snm-panel-inner { padding: 16px; }
  .snm-cat-pill { font-size: 12px; padding: 7px 12px; }
  #snm-panel.snm-panel-open { max-height: 260px; }
}
