/**
 * Product card component — used on the application overview (/).
 */

.product-card {
  border: 1px solid #cfd5dd;
  border-radius: 4px;
  padding: 20px 24px;
  margin-bottom: 16px;
  background: #ffffff;
  max-width: 907px;
}

/* Header row: title on the left, type badge on the right */
.product-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 4px;
}

.product-card__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #333332;
  line-height: 1.4;
}

/* Framed type badge — top right */
.product-card__type {
  flex-shrink: 0;
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 400;
  color: #333332;
  border: 1px solid #cfd5dd;
  border-radius: 3px;
  padding: 2px 8px;
  white-space: nowrap;
  line-height: 1.6;
}

/* Authority in muted gray, directly below title */
.product-card__authority {
  font-size: 1.4rem;
  color: #687483;
  margin: 0 0 12px;
  line-height: 1.4;
}

.product-card__description {
  font-size: 1.6rem;
  color: #333332;
  margin: 0 0 16px;
  line-height: 1.6;
}

.product-card__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.product-card__links .product-card__link {
  font-size: 1.5rem;
}

.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 8px;
}

/* Button color follows the subuniversum accent color (--vl-theme-action-color) */
.product-card__button.button {
  background-color: var(--vl-theme-action-color);
  border-color: var(--vl-theme-action-color);
  color: #ffffff;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 1.6rem;
  font-weight: 500;
  cursor: pointer;
}

.product-card__button.button:hover,
.product-card__button.button:focus {
  background-color: var(--vl-theme-action-hover-color);
  border-color: var(--vl-theme-action-hover-color);
  color: #ffffff;
}

.product-card__button--disabled.button {
  background-color: #cfd5dd;
  border-color: #cfd5dd;
  color: #687483;
  cursor: not-allowed;
}

.product-card__button--disabled.button:hover,
.product-card__button--disabled.button:focus {
  background-color: #cfd5dd;
  border-color: #cfd5dd;
  color: #687483;
}

.product-card__edit-button {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 500;
  padding: 10px 20px;
  border: 1px solid #cfd5dd;
  border-radius: 4px;
  color: #333332;
  text-decoration: none;
  cursor: pointer;
}

.product-card__edit-button:hover,
.product-card__edit-button:focus {
  border-color: #687483;
  color: #333332;
}

@media screen and (max-width: 767px) {
  .product-card {
    max-width: 100%;
    padding: 16px;
  }

  .product-card__header {
    flex-wrap: wrap;
  }

  .product-card__button.button {
    width: 100%;
    text-align: center;
  }
}
