/*
 * Worxogo Video Card Widget CSS
 *
 * Elementor Video Card Widget Styles
 */

/* ===== VIDEO CARD SECTION ===== */
.video-card-section {
  width: 100%;
  padding: 0px;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
}

.video-card__container {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 8px;
  padding: 60px;
  display: flex;
  flex-direction: column;
  gap: 56px;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
}

/* ===== LAYOUT ORIENTATIONS ===== */
/* Video Left, Content Right (Default) */
.video-card-section.video-left .video-card__container {
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
}

.video-card-section.video-left .video-card__content {
  order: 2;
}

.video-card-section.video-left .video-card__video {
  order: 1;
}

/* Video Right, Content Left */
.video-card-section.video-right .video-card__container {
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
}

.video-card-section.video-right .video-card__content {
  order: 1;
}

.video-card-section.video-right .video-card__video {
  order: 2;
}

/* ===== CONTENT SECTION ===== */
.video-card__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
  justify-content: flex-start;
  flex: 1;
  min-width: 386px;
  position: relative;
}

.video-card__header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
}

.video-card__logo {
  flex-shrink: 0;
  width: 150px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 200/48;
}

.video-card__logo-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  position: absolute;
  left: 0;
  top: 0;
}

.video-card__title-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
}

.video-card__title {
  color: #290074;
  text-align: left;
  font-family: "Albert Sans", sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 112%;
  position: relative;
  align-self: stretch;
  margin: 0;
}

.video-card__subtitle {
  color: #616160;
  text-align: left;
  font-family: "Albert Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;
  position: relative;
  align-self: stretch;
  margin: 0;
}

/* ===== STATS SECTION ===== */
.video-card__stats {
  display: flex;
  flex-direction: row;
  gap: 19px;
  align-items: center;
  justify-content: flex-start;
  align-content: center;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
}

.video-card__stat {
  background: #eaeae8;
  border-style: solid;
  border-color: #b1b1af;
  border-width: 1px;
  padding: 20px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  height: 120px;
  min-width: 240px;
  position: relative;
}

.video-card__stat-value {
  color: #4000a9;
  text-align: left;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 120%;
  letter-spacing: -0.02em;
  position: relative;
}

.video-card__stat-label {
  color: #616160;
  text-align: left;
  font-family: "Albert Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  position: relative;
  flex: 1;
}

/* ===== VIDEO SECTION ===== */
.video-card__video {
  flex-shrink: 0;
  width: 376px;
  height: 376px;
  position: relative;
}

.video-card__video-container {
  background: #ffffff;
  border-radius: 8px;
  border-style: solid;
  border-color: #ffffff;
  border-width: 8px;
  width: 376px;
  height: 376px;
  position: relative;
  overflow: hidden;
}

.video-card__video-thumbnail {
  border-radius: 5px;
  width: 100% !important;
  height: 100% !important;
  position: absolute;
  left: 0;
  top: 0;
  object-fit: cover !important;
}

.video-card__play-button {
  opacity: 0.8;
  width: 175px;
  height: 175px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(50% - 87.5px);
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.video-card__play-button:hover {
  opacity: 1;
}

.video-card__play-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  left: 0;
  top: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .video-card-section {
    padding: 0px 50px;
  }

  .video-card__container {
    padding: 40px;
    gap: 40px;
  }

  .video-card__video {
    width: 320px;
    height: 320px;
  }

  .video-card__video-container {
    width: 320px;
    height: 320px;
    border-width: 6px;
  }

  .video-card__play-button {
    width: 100px;
    height: 100px;
    top: calc(50% - 50px);
  }

  .video-card__title {
    font-size: 32px;
  }

  .video-card__stat {
    height: 100px;
    min-width: 200px;
  }

  .video-card__stat-value {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .video-card-section {
    padding: 0px 30px;
  }

  .video-card__container {
    flex-direction: column !important;
    align-items: center;
    padding: 60px;
    gap: 30px;
  }

  .video-card-section.video-right .video-card__content,
  .video-card-section.video-right .video-card__video {
    order: initial !important;
  }

  /* For video-left layout, keep content on top and video on bottom when stacked */
  .video-card-section.video-left .video-card__content {
    order: 1 !important;
  }

  .video-card-section.video-left .video-card__video {
    order: 2 !important;
  }

  .video-card__content {
    min-width: 100%;
    width: 100%;
  }

  .video-card__video {
    width: 100%;
    height: 280px;
  }

  .video-card__video-container {
    width: 100%;
    height: 280px;
    border-width: 4px;
  }

  .video-card__play-button {
    width: 80px;
    height: 80px;
    top: calc(50% - 40px);
  }

  .video-card__title {
    font-size: 28px;
  }

  .video-card__stats {
    flex-direction: row;
    gap: 15px;
    align-items: stretch;
  }

  .video-card__stat {
    width: 100%;
    min-width: auto;
    height: auto;
    min-height: 80px;
    padding: 15px;
  }

  .video-card__stat-value {
    font-size: 24px;
  }

  .video-card__stat-label {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .video-card-section {
    padding: 0px 15px;
  }

  .video-card__container {
    padding: 20px;
    gap: 20px;
  }

  .video-card__video {
    width: 100%;
    height: 240px;
  }

  .video-card__video-container {
    width: 100%;
    height: 240px;
    border-width: 3px;
  }

  .video-card__play-button {
    width: 60px;
    height: 60px;
    top: calc(50% - 30px);
  }

  .video-card__logo {
    width: 150px;
    height: 36px;
  }

  .video-card__title {
    font-size: 24px;
    line-height: 110%;
  }

  .video-card__subtitle {
    font-size: 14px;
  }

  .video-card__header {
    gap: 15px;
  }

  .video-card__title-section {
    gap: 20px;
  }

  .video-card__stat {
    flex-direction: column;
    min-height: 70px;
    padding: 12px;
  }

  .video-card__stat-value {
    font-size: 20px;
  }

  .video-card__stat-label {
    font-size: 13px;
    text-align: center !important;
  }
}
