/* ===================================================
   ViaVutus Sitemap — CSS
   Adaptado do Blogger Sitemap para WordPress
   =================================================== */

:root {
  --vsm-primaria:        #4ECDC4;
  --vsm-primaria-escura: #0c3c38;
  --vsm-acento:          #0fa9cd;
  --vsm-fundo-item:      #d9f4f2;
  --vsm-texto:           #2d2d2d;
  --vsm-data:            #666;
  --vsm-novo:            #c00;
  --vsm-raio:            8px;
}

.vsm-wrapper {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
  color: var(--vsm-texto);
  line-height: 1.5;
}

.vsm-wrapper a {
  color: var(--vsm-primaria-escura);
  text-decoration: none;
}
.vsm-wrapper a:hover {
  text-decoration: underline;
  color: var(--vsm-acento);
}

/* ── Seção (categoria) ── */
.vsm-secao {
  margin: 24px 0;
  animation: vsm-entrar 0.35s ease both;
}

.vsm-secao__titulo {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--vsm-primaria);
  color: var(--vsm-primaria-escura);
  font-size: 15px;
  font-weight: 700;
  padding: 11px 16px;
  margin: 0 0 10px;
  border-radius: var(--vsm-raio);
}

.vsm-secao__contagem {
  font-weight: 400;
  font-size: 13px;
  opacity: .85;
  margin-left: auto;
}

/* ── Lista de posts ── */
.vsm-lista {
  counter-reset: item;
  list-style: none;
  margin: 0 0 10px 28px;
  padding: 0;
}

.vsm-item {
  position: relative;
  counter-increment: item;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--vsm-fundo-item);
  padding: 9px 12px 9px 14px;
  margin: 5px 0 5px 2em;
  border-radius: 4px;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.vsm-item::before {
  content: counter(item);
  position: absolute;
  left: -2.4em;
  top: 50%;
  transform: translateY(-50%);
  background: var(--vsm-acento);
  color: #fff;
  height: 2em;
  width: 2em;
  line-height: 2em;
  text-align: center;
  font-weight: bold;
  font-size: 13px;
  border-radius: 4px;
}

.vsm-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transform: translateX(3px);
}

.vsm-item__link {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vsm-item__data {
  color: var(--vsm-data);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.vsm-item__novo {
  color: var(--vsm-novo);
  font-weight: 700;
  font-style: italic;
  font-size: 11px;
  flex-shrink: 0;
  animation: vsm-piscar 1.2s step-end infinite;
}

/* ── Loader ── */
.vsm-loader {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px dashed #9bd;
  background: #eef7ff;
  color: #124;
  border-radius: var(--vsm-raio);
  font-size: 14px;
}

.vsm-loader__icone {
  animation: vsm-girar 1s linear infinite;
  display: inline-block;
}

/* ── Erro ── */
.vsm-erro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #991b1b;
  border-radius: var(--vsm-raio);
  font-size: 14px;
}

.vsm-erro__tentar {
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid #ef4444;
  background: #fff;
  color: #b91c1c;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}
.vsm-erro__tentar:hover { background: #fee2e2; }

.vsm-vazio {
  padding: 16px;
  color: #777;
  font-style: italic;
}

/* ── Animações ── */
@keyframes vsm-entrar {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes vsm-girar {
  to { transform: rotate(360deg); }
}
@keyframes vsm-piscar {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Responsivo ── */
@media (max-width: 480px) {
  .vsm-lista { margin-left: 18px; }
  .vsm-item  { margin-left: 1.8em; }
  .vsm-item__link { white-space: normal; }
}
