/*
 * VeloValue — Category / Archive Styles
 * Horizontal entry list: image left, title + excerpt right.
 */

/* ==========================================================================
   Wrapper
   ========================================================================== */
.vv-archive-wrap {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

/* ==========================================================================
   Category header
   ========================================================================== */
.vv-archive-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--vv-sky);
}

.vv-archive-header__title {
  font-family: var(--vv-font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--vv-black);
  margin: 0 0 .4rem;
}

.vv-archive-header__desc {
  font-size: .9375rem;
  color: var(--vv-gray-600);
  line-height: 1.6;
  margin: .35rem 0 0;
  font-style: italic;
}

/* ==========================================================================
   Entry list
   ========================================================================== */
.vv-entry-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ==========================================================================
   Single entry card — mismo patrón que .vv-fp-col / .widget
   ========================================================================== */
.vv-entry {
  display: flex;
  flex-direction: column;
  background: var(--vv-white);
  border-radius: var(--vv-radius);
  box-shadow: var(--vv-shadow);
  overflow: hidden;
  transition: box-shadow .15s ease, transform .1s ease;
}

.vv-entry:hover {
  box-shadow: var(--vv-shadow-md);
  transform: translateY(-1px);
}

/* Cabecera negra — igual que .vv-fp-col__header y .widget-title */
.vv-entry__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1.125rem;
  background: var(--vv-black);
  border-bottom: 2px solid var(--vv-sky);
  flex-shrink: 0;
}

.vv-entry__cat,
.vv-entry__header .vv-entry__cat {
  font-family: var(--vv-font-heading);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--vv-sky) !important;
  text-decoration: none;
}
.vv-entry__cat:hover,
.vv-entry__header .vv-entry__cat:hover {
  color: var(--vv-white) !important;
}

.vv-entry__date {
  font-size: .7rem;
  color: var(--vv-gray-400);
  white-space: nowrap;
}

/* Área de contenido: imagen + cuerpo en fila */
.vv-entry__content {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1rem;
  flex: 1;
}

/* Imagen */
.vv-entry__img-link {
  flex: 0 0 160px !important;
  width: 160px;
  display: block;
}

.vv-entry__img {
  width: 160px !important;
  height: 110px;
  object-fit: cover;
  display: block;
  border-radius: var(--vv-radius);
}

/* Cuerpo de texto */
.vv-entry__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

/* Título */
.vv-entry__title {
  font-family: var(--vv-font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--vv-black);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vv-entry__title a {
  color: inherit;
  text-decoration: none;
}
.vv-entry__title a:hover {
  color: var(--vv-sky);
}

/* Extracto */
.vv-entry__excerpt {
  font-size: .875rem;
  color: var(--vv-gray-600);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Leer más */
.vv-entry__more {
  font-family: var(--vv-font-heading);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--vv-sky);
  text-decoration: none;
  margin-top: .15rem;
}
.vv-entry__more:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.vv-pagination {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.vv-pagination .nav-links {
  display: flex;
  gap: .4rem;
  align-items: center;
  flex-wrap: wrap;
}

.vv-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 .6rem;
  border-radius: var(--vv-radius);
  font-family: var(--vv-font-heading);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--vv-black);
  background: var(--vv-white);
  box-shadow: var(--vv-shadow);
  transition: background .1s;
}

.vv-pagination .page-numbers.current {
  background: var(--vv-black);
  color: var(--vv-white);
}

.vv-pagination .page-numbers:hover:not(.current) {
  background: var(--vv-gray-100);
}

/* ==========================================================================
   Empty state
   ========================================================================== */
.vv-archive-empty {
  color: var(--vv-gray-600);
  font-style: italic;
  padding: 2rem 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 540px) {
  .vv-entry__content {
    flex-direction: column;
  }

  .vv-entry__img-link,
  .vv-entry__img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
