/**
 * assets/css/video-cards.css
 *
 * Shared reusable video card styles
 * Used across:
 * - featured_mylinehub_seminar.php
 * - mylinehub_video_showcase.php
 * - topic-modal (related videos)
 *
 * Scoped to avoid breaking existing site styles
 */

/* --------------------------------
   Base Video Card
-------------------------------- */

.mh-video-card {
  display: block;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 32px rgba(14, 30, 62, 0.08);
  transition: all 0.25s ease;
  text-decoration: none;
}

.mh-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(14, 30, 62, 0.12);
  border-color: rgba(17, 155, 210, 0.3);
}

/* --------------------------------
   Thumbnail
-------------------------------- */

.mh-video-card__thumb-wrap {
  position: relative;
  display: block;
  overflow: hidden;
}

.mh-video-card__thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.mh-video-card:hover .mh-video-card__thumb {
  transform: scale(1.04);
}

/* Play icon overlay */

.mh-video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.25);
  opacity: 0;
  transition: all 0.25s ease;
}

.mh-video-card:hover .mh-video-card__play {
  opacity: 1;
}

.mh-video-card__play-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #119bd2;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 24px rgba(17, 155, 210, 0.4);
}

/* --------------------------------
   Content
-------------------------------- */

.mh-video-card__body {
  padding: 20px;
}

.mh-video-card__label {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(17, 155, 210, 0.1);
  color: #119bd2;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.mh-video-card__title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
  margin: 0 0 10px;
}

.mh-video-card__title:hover {
  color: #119bd2;
}

.mh-video-card__text {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  margin: 0 0 16px;
}

/* --------------------------------
   Meta
-------------------------------- */

.mh-video-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #64748b;
}

.mh-video-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------
   CTA
-------------------------------- */

.mh-video-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(17, 155, 210, 0.1);
  color: #119bd2;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.mh-video-card__btn:hover {
  background: #119bd2;
  color: #ffffff;
}

/* --------------------------------
   Compact Variant (for modal / lists)
-------------------------------- */

.mh-video-card--compact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
}

.mh-video-card--compact .mh-video-card__thumb {
  width: 120px;
  height: auto;
}

.mh-video-card--compact .mh-video-card__body {
  padding: 0;
}

.mh-video-card--compact .mh-video-card__title {
  font-size: 14px;
  margin-bottom: 6px;
}

.mh-video-card--compact .mh-video-card__text {
  font-size: 13px;
  margin-bottom: 0;
}

/* --------------------------------
   Grid helper (optional use)
-------------------------------- */

.mh-video-grid {
  display: grid;
  gap: 20px;
}

.mh-video-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.mh-video-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* --------------------------------
   Responsive
-------------------------------- */

@media (max-width: 991.98px) {
  .mh-video-card__thumb {
    height: 200px;
  }

  .mh-video-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .mh-video-card__thumb {
    height: 180px;
  }

  .mh-video-card__title {
    font-size: 16px;
  }

  .mh-video-grid--3,
  .mh-video-grid--2 {
    grid-template-columns: 1fr;
  }

  .mh-video-card--compact {
    flex-direction: column;
    align-items: flex-start;
  }

  .mh-video-card--compact .mh-video-card__thumb {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .mh-video-card__thumb {
    height: 160px;
  }

  .mh-video-card__body {
    padding: 16px;
  }
}