/* =====================================================
   DIGILIZA CHANGELOG WIDGET – Estilo Completo v2.0
   ===================================================== */

.dlz-changelog-container {
  max-width: 1000px;
  margin: 0 auto;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1f36;
}

/* === CARD DE VERSÃO === */
.dlz-changelog-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  padding: 40px 48px;
  margin-bottom: 40px;
  border: 1px solid #edf0f6;
}

.dlz-title {
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #101828;
}

.dlz-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  color: #667085;
  font-size: 14px;
}

.dlz-version-badge {
  display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5183f5 0%, #7db2ff 100%);
    border-radius: 14px;
    color: #ffffff;
    padding: 2px 20px 2px 20px;
}

.dlz-date {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* === GRUPOS DE CATEGORIA === */
.dlz-itens {
  border-top: 1px solid #edf0f6;
  padding-top: 20px;
  margin-top: 30px;
}

.dlz-grupo {
  margin-bottom: 40px;
}

.dlz-grupo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  position: relative;
  padding-left: 22px;
}

.dlz-grupo-header::before {
  content: "";
  position: absolute;
  left: 0;
  width: 14px;
  height: 3px;
  border-radius: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.dlz-grupo.novo .dlz-grupo-header::before {
  background: #3772ff;
}
.dlz-grupo.melhoria .dlz-grupo-header::before {
  background: #16a34a;
}
.dlz-grupo.correcao .dlz-grupo-header::before {
  background: #f59e0b;
}
.dlz-grupo.outros .dlz-grupo-header::before {
  background: #94a3b8;
}

/* === LISTAGEM DE ITENS === */
.dlz-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dlz-item {
  background: #f9fafb;
  border: 1px solid #edf0f6;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.dlz-item:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.dlz-item-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.dlz-item-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.dlz-item-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.dlz-item .dlz-icon {
  width: 20px;
  height: 20px;
  margin-top: 16px;
  flex-shrink: 0;
}

/* === ICONES E BADGES POR CATEGORIA === */
.dlz-grupo.novo .dlz-item .dlz-icon {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%233C83F6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles h-4 w-4"><path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"></path><path d="M20 3v4"></path><path d="M22 5h-4"></path><path d="M4 17v2"></path><path d="M5 18H3"></path></svg>') no-repeat center/contain;
}
.dlz-grupo.melhoria .dlz-item .dlz-icon {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2316A249" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-trending-up h-4 w-4"><polyline points="22 7 13.5 15.5 8.5 10.5 2 17"></polyline><polyline points="16 7 22 7 22 13"></polyline></svg>') no-repeat center/contain;
}
.dlz-grupo.correcao .dlz-item .dlz-icon {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23F59F0A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-bug h-4 w-4"><path d="m8 2 1.88 1.88"></path><path d="M14.12 3.88 16 2"></path><path d="M9 7.13v-1a3.003 3.003 0 1 1 6 0v1"></path><path d="M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6"></path><path d="M12 20v-9"></path><path d="M6.53 9C4.6 8.8 3 7.1 3 5"></path><path d="M6 13H2"></path><path d="M3 21c0-2.1 1.7-3.9 3.8-4"></path><path d="M20.97 5c0 2.1-1.6 3.8-3.5 4"></path><path d="M22 13h-4"></path><path d="M17.2 17c2.1.1 3.8 1.9 3.8 4"></path></svg>') no-repeat center/contain;
}
.dlz-grupo.outros .dlz-item .dlz-icon {
  background: url('data:image/svg+xml,<svg fill="%2394a3b8" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="8"/></svg>') no-repeat center/contain;
}

.dlz-badge.novo {
  background: #eff6ff;
  color: #3772ff;
}
.dlz-badge.melhoria {
  background: #ecfdf5;
  color: #16a34a;
}
.dlz-badge.correcao {
  background: #fefce8;
  color: #b45309;
}
.dlz-badge.outros {
  background: #f1f5f9;
  color: #475569;
}

.dlz-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
}

/* === CONTAGEM === */
.dlz-count {
  color: #94a3b8;
  font-size: 13px;
}

/* === RESPONSIVIDADE === */
@media (max-width: 768px) {
  .dlz-item {
    flex-direction: column;
    gap: 10px;
  }
}
.dlz-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 700;
}

.dlz-version-icon svg {
    display: block;
}

.dlz-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6B7280;
    font-size: 14px;
}

.dlz-icon-calendar svg {
    display: block;
}
.dlz-counts {
    display: flex;
    gap: 24px;
    margin-top: 10px;
    margin-bottom: 25px;
    font-size: 15px;
    color: #374151;
    font-weight: 500;
}

.dlz-count-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-novos {
    background: #2563eb; /* azul */
}

.dot-melhorias {
    background: #16a34a; /* verde */
}

.dot-correcoes {
    background: #f59e0b; /* amarelo */
}

.dlz-counts {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.dlz-item-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dlz-arrow-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
}
/* Badge "Versão Atual" com tamanho fixo real */
.dlz-badge-atual {
    position: absolute;
    top: 22px;
    right: 22px;

    font-size: 0.75rem !important;    /* 🔥 fora tamanho pequeno */
    line-height: 1.1 !important;      /*  evita esticar verticalmente */
    padding: 4px 12px !important;     /* 🔥 reduz padding real */
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5183f5 0%, #7db2ff 100%);
    border-radius: 14px;
    color: #ffffff;

    align-items: center;
    justify-content: center;

    white-space: nowrap;
}

/* Container do ícone no título */
.dlz-version-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

/* Fundo do ícone – EXATAMENTE COMO A IMAGEM */
.dlz-version-icon .dlz-icon-bg {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5183f5 0%, #7db2ff 100%);
}

/* Ícone branco */
.dlz-version-icon svg {
    width: 26px;
    height: 26px;
    stroke: #ffffff !important;
}
