/* ============================================================
   Video Hover Cards - Frontend Styles
   ============================================================ */

/* ----- Grid Layout (category shortcode) ----- */
.vhc-grid {
  display: grid;
  grid-template-columns: repeat(var(--vhc-cols, 3), 1fr);
  gap: var(--vhc-gap, 24px);
}

@media (max-width: 1024px) {
  .vhc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .vhc-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Single Card ----- */
.vhc-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  cursor: pointer;
  height: var(--vhc-height, 480px);
  background: #eef0f3;
  transition: transform 0.4s ease;
}

/* Whole-card click target */
.vhc-card-link {
  position: absolute;
  inset: 0;
  z-index: 5;
  text-indent: -9999px;
  overflow: hidden;
}

/* Background media */
.vhc-card video,
.vhc-card .vhc-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.6s ease;
}

.vhc-card:hover video,
.vhc-card:hover .vhc-poster {
  transform: scale(1.04);
}

/* Overlay container */
.vhc-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 32px;
  color: #0a0a0a;
  pointer-events: none;
}

/* Top content (title + subtitle) */
.vhc-content-top {
  text-align: center;
}

.vhc-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.15;
  color: #0a0a0a;
  letter-spacing: -0.01em;
}

.vhc-subtitle {
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  color: #0a0a0a;
  opacity: 1;
}

/* Bottom content (button) */
.vhc-content-bottom {
  display: flex;
  justify-content: center;
}

.vhc-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  padding: 0;
  color: #0a0a0a;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  pointer-events: auto;
  position: relative;
  z-index: 6;
}

.vhc-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #0a0a0a;
  color: #fff;
  border-radius: 0;
  flex-shrink: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.vhc-btn-icon svg {
  width: 18px;
  height: 18px;
}

.vhc-btn:hover .vhc-btn-icon {
  transform: translateX(3px);
}

.vhc-btn-text {
  text-transform: lowercase;
}

/* ----- Mobile overrides ----- */
@media (hover: none) and (pointer: coarse) {
  .vhc-card:hover video,
  .vhc-card:hover .vhc-poster {
    transform: none;
  }
}

@media (max-width: 600px) {
  .vhc-title { font-size: 24px; }
  .vhc-overlay { padding: 28px 22px; }
}
