20/* Desktop Block */
#desktop-block {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #846ec0 0%, #5a4a8a 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
#desktop-block .desktop-content {
  text-align: center;
  max-width: 400px;
}
#desktop-block .icon-box {
  width: 128px;
  height: 128px;
  background: white;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
#desktop-block .icon-box .material-icons {
  font-size: 64px;
  color: #846ec0;
}
#desktop-block h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}
#desktop-block p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
}
#desktop-block.hidden {
  display: none;
}

/* Text Logo */
.text-logo {
  font-family: "Forum", serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 1px;
  color: #2e112c;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.text-logo-accent {
  color: #2e112c;
  font-style: normal;
  font-weight: 400;
  margin-left: 1px;
}

/* Global Styles */
:root {
  --primary: #f5f5f5;
  --primary-dark: #eef2f7;

  /* Variáveis para a meia lua responsiva - 1/3 */
  --meia-lua-size: min(45vw, 200px);
  --meia-lua-size-min: max(var(--meia-lua-size), 100px);

  /* Variáveis para a meia lua do MODAL DE DETALHES */
  --modal-lua-size: min(50vw, 280px);
  --modal-lua-size-min: max(var(--modal-lua-size), 140px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Forum", serif;
  font-size: 30px;
}

.font-inter {
  font-family: "Forum", serif;
}

.bg-primary {
  background-color: var(--primary);
}

.bg-primary-dark {
  background-color: var(--primary-dark);
}

.text-primary {
  color: var(--primary);
}

/* Loader Animation */
.loader {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Card principal */
.publication-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 120px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
  width: 100%;

  /* Gradiente padrão - azul para rosa como na imagem */
  background: linear-gradient(135deg, #3498db 0%, #e8b4f0 100%) !important;

  /* Remover estilos do Tailwind */
  padding: 0 !important;
}

.publication-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Estrelas de relevância no canto superior esquerdo */
.publication-card::before {
  position: absolute;
  top: 12px;
  left: 4px;
  color: rgba(0, 0, 0, 0.7);
  font-size: clamp(12px, 2.5vw, 16px);
  font-weight: bold;
  z-index: 10;
}
.publication-card[data-prioridade="1"]::before {
  content: "🔥🔥🔥";
}
.publication-card[data-prioridade="2"]::before {
  content: "🔥🔥";
}
.publication-card[data-prioridade="3"]::before {
  content: "🔥";
}
.publication-card[data-prioridade="4"]::before {
  content: "";
}

/* Container principal do card */
.publication-card > .flex {
  height: 100%;
  padding: 0 !important;
  gap: 0 !important;
  position: relative;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* MEIA LUA PERFEITA - DO TOPO À BASE DO CARD */
.publication-card .source-logo {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important; /* Adicionado para estender até a base */

  /* Largura: 1/3 do card, altura: 100% do card */
  width: var(--meia-lua-size-min) !important;
  height: 100% !important; /* Agora ocupa toda a altura */

  /* Border-radius para meia lua vertical */
  border-radius: 0 50% 50% 0 !important;
  border-top-right-radius: 1000px !important;
  border-bottom-right-radius: 1000px !important;

  background: rgba(52, 152, 219, 0.95) !important;
  border: none !important;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15) !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 5;

  /* Esconder metade da meia lua */
  transform: translateX(calc(var(--meia-lua-size-min) * -0.5)) !important;
}

/* Container do texto - CENTRALIZADO VERTICALMENTE */
.publication-card .source-logo .w-8 {
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0;

  /* Centralizar na parte visível da meia lua */
  margin-left: calc(var(--meia-lua-size-min) * 0.25);
}

/* Remover pseudoelementos antigos */
.publication-card .source-logo .w-8::before,
.publication-card .source-logo .w-8::after {
  content: none !important;
  display: none !important;
}

/* Área de conteúdo - sempre com espaço adequado para a meia lua */
.publication-card .flex-1 {
  /* Padding-left = metade da meia lua + margem fixa */
  padding: 16px 16px 16px calc(var(--meia-lua-size-min) * 0.5 + 20px) !important;
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative;
  min-height: 120px;
}

/* Seção superior */
.publication-card .flex-1 > .flex:first-child {
  margin-bottom: 0 !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  position: relative;
  height: auto;
}

/* Esconder badges originais */
.publication-card .badge {
  display: none !important;
}

/* Tributo no topo esquerdo - responsivo */
.publication-card .flex-1 > .flex:first-child::before {
  content: "IRPJ/CSLL";
  position: absolute;
  top: 0;
  left: 0;
  color: rgba(0, 0, 0, 0.9);
  font-size: clamp(10px, 2.2vw, 12px);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.5px;
  text-shadow: none;
}

/* Data e bookmark no topo direita - responsivo */
.publication-card .bookmark-btn {
  position: relative !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: clamp(6px, 1.5vw, 8px) !important;
  padding: clamp(4px, 1vw, 6px) clamp(8px, 2vw, 10px) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  border: none !important;
  font-size: clamp(10px, 2.2vw, 12px) !important;
  font-weight: 600 !important;
  color: #2c3e50 !important;
  margin: 0 !important;
  z-index: 10;
}

/* Adicionar data antes do ícone */
.publication-card .bookmark-btn::before {
  content: "29/12/2025";
  margin-right: clamp(4px, 1vw, 6px);
  color: #2c3e50;
}

.publication-card .bookmark-btn .material-icons {
  color: #27ae60 !important;
  font-size: clamp(12px, 2.5vw, 16px) !important;
}

/* Título principal - responsivo */
.publication-card h3 {
  color: black !important;
  font-size: clamp(13px, 3vw, 16px) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: clamp(12px, 3vw, 20px) 0 !important;
  text-shadow: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Referência na parte inferior do card */

/* ===============================================
   CORES POR PRIORIDADE (1=laranja, 2=verde, 3=azul, 4=cinza)
   =============================================== */

/* Prioridade 1 - Laranja */
.publication-card[data-prioridade="1"] {
  background: linear-gradient(135deg, #fff7ed 0%, #f6ab5d 100%) !important;
}
.publication-card[data-prioridade="1"] .source-logo {
  background: #ff914d !important;
}

/* Prioridade 2 - Verde */
.publication-card[data-prioridade="2"] {
  background: linear-gradient(135deg, #f7fee7 0%, #d3fd86 100%) !important;
}
.publication-card[data-prioridade="2"] .source-logo {
  background: #a3e635 !important;
}

/* Prioridade 3 - Azul */
.publication-card[data-prioridade="3"] {
  background: linear-gradient(135deg, #f0f9ff 0%, #96cce8 100%) !important;
}
.publication-card[data-prioridade="3"] .source-logo {
  background: #44bfe5 !important;
}

/* Prioridade 4 - Cinza */
.publication-card[data-prioridade="4"] {
  background: linear-gradient(135deg, #f8fafc 0%, #b5c5d8 100%) !important;
}
.publication-card[data-prioridade="4"] .source-logo {
  background: #94a3b8 !important;
}

/* ===== DETAIL MODAL - LOGO (IMAGEM) DENTRO DA MEIA LUA ===== */

.detail-modal-container {
  background: transparent;
  animation: slideUp 0.3s ease;
}

/* Container principal - gradiente do card */
.detail-modal-header {
  position: relative;
  padding: 100px 24px 24px;
  min-height: 100vh;
  overflow: hidden;
  /* Gradiente aplicado via JS */
}

/* MEIA LUA NO TOPO - DE CANTO A CANTO */
.detail-modal-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;

  /* height e transform agora usam a mesma variável */
  /* área visível = (0.90 - 0.35) × var = 0.55 × var → sempre proporcional */
  height: calc(var(--modal-lua-size-min) * 0.9);
  transform: translateY(calc(var(--modal-lua-size-min) * -0.35));

  border-radius: 0 0 0% 0%;
  z-index: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* TEXTO FONTE DENTRO DA MEIA LUA (modal e card) */
.detail-header-logo-in-moon {
  position: absolute;
  top: calc(var(--modal-lua-size-min) * 0.08);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Remove old img rule */
.detail-header-logo-in-moon img {
  display: none;
}

.detail-moon-stars {
  font-size: 17px;
  color: rgba(0, 0, 0, 0.45);
  letter-spacing: 6px;
  text-align: center;
}

/* ===== SOURCE LABEL TEXT (Black Ops One) ===== */
.source-label-text {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  display: block;
  text-align: center;
  line-height: 1.1;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.02em;
  pointer-events: none;
  user-select: none;
}

/* Tamanho e sombra nos CARDS (meia-lua lateral) */
.publication-card .source-label-text {
  font-size: clamp(12px, 2.2vw, 13px);
  color: #1a2f3a;
  text-shadow: none;
  margin-left: calc(var(--meia-lua-size-min) * 0.25);
}

/* Tamanho e sombra no MODAL (meia-lua topo) */
.detail-header-logo-in-moon .source-label-text {
  font-size: clamp(23px, 9vw, 15px);
  color: #1a2f3a;
  text-shadow:
    3px 3px 0px rgba(255, 255, 255, 0.55),
    4px 4px 0px rgba(0, 0, 0, 0.18),
    0px 5px 10px rgba(0, 0, 0, 0.15);
}

/* Cores específicas por fonte - sombra colorida */
.source-label-text[data-fonte="valor"] {
  color: #1a3a1a;
  text-shadow: none;
}

.source-label-text[data-fonte="carf"] {
  color: #3a1a0a;
  text-shadow: none;
}

.source-label-text[data-fonte="rfb"] {
  color: #0a1a3a;
  text-shadow: none;
}

.source-label-text[data-fonte="jota"] {
  color: #1a2f3a;
  text-shadow: none;
}

.source-label-text[data-fonte="conjur"] {
  color: #2a2a2a;
  text-shadow: none;
}

/* Botão voltar */
.detail-back-btn {
  position: fixed;
  top: 16px;
  left: 16px;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.7);
  z-index: 60;
  font-size: 28px;
}

.detail-back-btn .material-icons {
  font-size: 28px;
}

.detail-back-btn:hover {
  color: rgba(0, 0, 0, 0.9);
}

/* BOTÃO DE FAVORITO - CANTO SUPERIOR DIREITO */
.detail-actions-container {
  position: fixed;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 60;
}

.detail-action-btn {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s;
  padding: 0;
}

.detail-action-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.4);
}

.detail-action-btn .material-icons {
  font-size: 20px;
  color: rgba(0, 0, 0, 0.6);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.detail-action-btn.detail-bookmark-btn {
  background: transparent;
  border: none;
  backdrop-filter: none;
}

.detail-action-btn.detail-bookmark-btn .material-icons {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  color: #fbbf24;
}

.detail-action-btn.detail-bookmark-btn.not-favorited .material-icons {
  color: rgba(0, 0, 0, 0.3);
}

/* Conteúdo centralizado (nome fonte + estrelas) */
.detail-header-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}

.detail-header-fonte-label {
  font-size: 46px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.85);
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.detail-header-stars {
  font-size: 19px;
  color: rgba(0, 0, 0, 0.6);
  letter-spacing: 4px;
}

/* Body - continua no gradiente */
.detail-modal-body {
  position: relative;
  z-index: 2;
  padding: 0;
  background: transparent;
  margin-top: 0px; /* ~2cm abaixo da meia lua */
}

.detail-modal-title {
  font-size: 17px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.85);
  line-height: 1.3;
  margin-bottom: 12px;
  text-align: left;
}

.detail-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.detail-info-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.detail-meta-row {
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
  justify-content: flex-end;
}

.detail-meta-tag {
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.7);
}

.detail-date-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 16px;
  justify-content: flex-end;
}

.detail-date-row .material-icons {
  font-size: 14px;
}

.detail-section-divider {
  display: block;
  height: 1px;
  background: rgba(0, 0, 0, 0.15);
  margin: 16px 0;
}

.detail-section {
  margin-bottom: 16px;
}

.detail-section-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.detail-arguments {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-argument-item {
  font-size: 16px;
  font-style: normal;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1.6;
  text-align: justify;
}

.detail-conclusion {
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.9);
  line-height: 1.4;
}

.detail-link {
  font-size: 14px;
  color: #2563eb;
  word-break: break-all;
  text-decoration: underline;
  cursor: pointer;
  display: block;
}

.detail-link:hover {
  color: #1d4ed8;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* ===== HEADER FILTER SYSTEM ===== */

.header-icon-btn {
  position: relative;
  padding: 8px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}
.header-icon-btn:hover,
.header-icon-btn.active {
  background: rgba(255, 255, 255, 0.15);
}

.filter-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
}

.header-expand-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.header-expand-panel.open {
  max-height: 400px;
  opacity: 1;
}

.header-search-input {
  width: 100%;
  padding: 10px 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 17px;
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s;
  backdrop-filter: blur(4px);
}
.header-search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.header-search-input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

.filter-section-label {
  display: block;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.header-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  border: 1.5px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  color: #1a1a1a;
  flex-shrink: 0;
}
.header-filter-chip:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(0, 0, 0, 0.35);
}
.header-filter-chip.active {
  background: #ffffff;
  border-color: #1a1a1a;
  color: #000000;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.header-active-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  white-space: nowrap;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}
.header-active-tag button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.header-active-tag button:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Filter Chip Styles - kept for compatibility */
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.filter-chip:hover {
  transform: scale(1.05);
}
.filter-chip.active {
  border-color: currentColor;
}

/* Active Filter Tag */
.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: rgba(0, 0, 0, 0.05);
}
.active-filter-tag button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s;
}
.active-filter-tag button:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

/* Fonte Colors - Mantendo compatibilidade */
.fonte-carf {
  color: #4a90e2;
}
.fonte-csrf {
  color: #00bfa5;
}
.fonte-rfb {
  color: #2e5bba;
}
.fonte-conjur {
  color: #f5a623;
}
.fonte-jota {
  color: #e74c3c;
}
.fonte-valor {
  color: #27ae60;
}
.fonte-linkedin {
  color: #0077b5;
}

.bg-fonte-carf {
  background-color: #4a90e2;
}
.bg-fonte-csrf {
  background-color: #00bfa5;
}
.bg-fonte-rfb {
  background-color: #2e5bba;
}
.bg-fonte-conjur {
  background-color: #f5a623;
}
.bg-fonte-jota {
  background-color: #e74c3c;
}
.bg-fonte-valor {
  background-color: #27ae60;
}
.bg-fonte-linkedin {
  background-color: #0077b5;
}

/* Type Colors */
.tipo-jurisprudencia {
  color: #8b5cf6;
}
.tipo-solucao {
  color: #3b82f6;
}
.tipo-doutrina {
  color: #f59e0b;
}

.bg-tipo-jurisprudencia {
  background-color: #8b5cf6;
}
.bg-tipo-solucao {
  background-color: #3b82f6;
}
.bg-tipo-doutrina {
  background-color: #f59e0b;
}

/* Print styles */
@media print {
  #filter-btn,
  #splash-screen,
  header button,
  .no-print {
    display: none !important;
  }
}

/* Focus styles */
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Transitions */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* ===== CARD MAIOR ===== */
.publication-card {
  min-height: 180px !important;
  position: relative !important;
}

.publication-card > .flex {
  min-height: 180px !important;
}

/* ===== POSITION RELATIVE NO CONTAINER ===== */
.publication-card .flex-1 {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 16px 16px 16px calc(var(--meia-lua-size-min) * 0.5 + 20px) !important;
  min-height: 180px;
}

/* ===== LINHA SUPERIOR COM TIPO E DATA ===== */
.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 8px;
  padding: 0 36px 0 2px;
}

/* Data e favorito - lado direito */
.card-top-right-corner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-left: 16px;
}

/* Data */
.card-data-corner {
  color: #000000;
  font-size: 14px;
  font-weight: 600;
  text-shadow: none;
}

/* Favorito - posição fixa no canto superior direito do card */
.bookmark-btn-corner {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  z-index: 10 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: none !important;
}

.bookmark-btn-corner:hover {
  transform: scale(1.15);
}

.bookmark-btn-corner .material-icons {
  font-size: clamp(24px, 5vw, 28px) !important; /* MAIOR - aumentado */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* ===== TRIBUTO ===== */
.card-header-simple {
  margin-bottom: 16px;
  margin-top: 8px;
}

.card-tributo {
  color: #000000;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.5px;
  text-shadow: none;
  margin-left: -12px;
}

/* ===== RESUMO CENTRALIZADO ===== */
.card-content-middle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}

.card-resumo {
  color: #0f0101 !important;
  font-family: "Open Sans", sans-serif !important;
  font-size: clamp(13px, 3vw, 15px) !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-referencia {
  color: rgba(0, 0, 0, 0.85);
  font-size: 14px;
  font-weight: 500;
  text-shadow: none;
  margin-top: auto;
  display: block;
}
/* ===== BOTÃO VER MAIS ===== */
#load-more-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 8px 0 32px;
}

.scroll-top-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.scroll-top-button:active {
  transform: scale(0.97);
}

.load-more-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 12px 36px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.load-more-button:active {
  transform: scale(0.97);
}

.load-more-count {
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.45);
}

/* ===== BLOCK MESSAGE ===== */
.block-message-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  min-height: 60vh;
}

.block-message-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
}

.block-message-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.block-message-icon .material-icons {
  font-size: 36px;
  color: #dc2626;
}

.block-message-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.block-message-text {
  font-size: 17px;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.6;
  margin-bottom: 24px;
}

.block-message-steps {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: left;
  margin-bottom: 24px;
}

.block-message-steps h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.block-message-steps ol {
  padding-left: 18px;
  margin: 0;
}

.block-message-steps li {
  font-size: 16px;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.7;
  margin-bottom: 4px;
}

.block-message-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.block-message-btn:active {
  transform: scale(0.97);
}

/* ===== FAVORITES MODAL ===== */
.favorites-modal-content {
  background: #ffffff;
}
.favorites-modal-header {
  background: #ffffff;
}
.fav-icon-btn {
  color: #6b7280;
}
.fav-icon-btn:hover {
  color: #374151;
}
.favorites-search-input {
  width: 100%;
  padding: 10px 12px 10px 40px;
  border-radius: 12px;
  border: 1.5px solid #e5e7eb;
  font-size: 17px;
  outline: none;
  background: #f9fafb;
  color: #111827;
}
