/* VC Affi Blocks - Button & Card Layout Styles */

/* Button Layout */
.vcab-layout-button {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
}

.vcab-layout-button .vcab-button-title {
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}

.vcab-layout-button .vcab-button-title a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.vcab-layout-button .vcab-button-title a:hover {
  opacity: 0.8;
}

.vcab-layout-button .vcab-button-action {
  display: inline-block;
}

.vcab-layout-button .vcab-btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
  background: var(--vcab-btn-bg, #4A90E2);
  color: var(--vcab-btn-tx, #FFFFFF);
}

.vcab-layout-button .vcab-btn:hover {
  transform: translateY(-1px);
}

/* Card Layout */
.vcab-layout-card {
  max-width: 100%;
}

.vcab-layout-card .vcab-card-content {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vcab-layout-card .vcab-card-image {
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
}

.vcab-layout-card .vcab-card-image a {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.vcab-layout-card .vcab-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.vcab-layout-card .vcab-card-image a:hover img {
  transform: scale(1.05);
}

.vcab-layout-card .vcab-image-credit {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 4px;
  z-index: 2;
}

.vcab-layout-card .vcab-card-title {
  padding: 16px 16px 8px;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.4;
}

.vcab-layout-card .vcab-card-title a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.vcab-layout-card .vcab-card-title a:hover {
  opacity: 0.8;
}

.vcab-layout-card .vcab-card-button {
  padding: 0 16px 16px;
}

.vcab-layout-card .vcab-btn {
  display: block;
  width: 100%;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
  background: var(--vcab-btn-bg, #4A90E2);
  color: var(--vcab-btn-tx, #FFFFFF);
}

.vcab-layout-card .vcab-btn:hover {
  transform: translateY(-1px);
}
