/**
 * @file
 * Estilos para el componente Card report
 */

.nexods-card-report {
  display: flex;
  flex-direction: column;
  max-width: 328px;
  margin: 0 auto;
  color: var(--nexo-color-text-default);
  position: relative;
  border: solid 2px var(--nexo-color-secondary);
  text-decoration: none;
  transition: border-color 0.3s ease;
  min-height: 185px;
  background: var(--color-bg-surface, #FFF);
}

.nexods-card-report:hover {
  border-color: var(--nexo-color-primary, var(--nexo-color-secondary));
}

.nexods-card-report__img {
  max-height: 233px;
  display: flex;
  overflow: hidden;
}

.nexods-card-report__img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.nexods-card-report:hover .nexods-card-report__img img {
  transform: scale(1.05);
}

.nexods-card-report__content {
  padding: 20px 24px;
  flex: 1;
}

.nexods-card-report__title {
  margin: 0;
  font-size: 26px;
  font-style: normal;
  font-weight: 700;
  line-height: 33px;
  color: var(--nexo-color-text-default);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nexods-card-report__date {
  margin: 24px 0 0;
  font-size: 22px;
  line-height: normal;
  font-weight: 300;
  color: var(--nexo-color-text-default);
}

.nexods-card-report__teaser {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 23px;
  font-weight: 300;
  color: var(--nexo-color-text-default);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nexods-card-report__button {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nexo-color-text-default);
  transition: color 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
}

.nexods-card-report:hover .nexods-card-report__button {
  color: var(--nexo-color-primary, var(--nexo-color-text-default));
  transform: scale(1.1);
}

.nexods-card-report__button svg {
  width: 33px;
  height: 33px;
}

/* Variante horizontal */
.nexods-card-report.nexods-card-report--horizontal {
  flex-direction: row;
  width: 100%;
  max-width: none;
}

.nexods-card-report.nexods-card-report--horizontal .nexods-card-report__img {
  max-width: 100px;
  max-height: none;
  flex-shrink: 0;
}

.nexods-card-report.nexods-card-report--horizontal .nexods-card-report__content {
  flex: 1;
}

.nexods-card-report.nexods-card-report--horizontal .nexods-card-report__button {
  position: relative;
  bottom: auto;
  right: auto;
  align-self: center;
  padding: 15px;
}

.nexods-card-report.nexods-card-report--horizontal .nexods-card-report__button svg {
  width: 23px;
  height: 23px;
}

/* Responsive */
@media (max-width: 767px) {
  .nexods-card-report {
    max-width: 100%;
  }
  
  .nexods-card-report__title {
    font-size: 22px;
    line-height: 28px;
  }
  
  .nexods-card-report__teaser {
    font-size: 16px;
    line-height: 20px;
  }
}

.nexods-card-report__button {
  position: absolute;
  bottom: 15px;
  right: 15px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nexo-color-text-default);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

