/**
 * Smort Blend Mode Video Block Styles - Updated Video Poster Design
 */

.smort-blend-mode-video {
  position: relative;
  overflow: hidden;
  padding: var(--space-16) 0;
  width: 100%;
  min-height: 50vh;
}

/* Background Media Container */
.smort-blend-mode-video-background-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.smort-blend-mode-video-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.smort-blend-mode-video-background-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* Marquee Background Text */
.smort-blend-mode-video-marquee-container {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.smort-blend-mode-video-marquee {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-family: var(--font-heading);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  will-change: transform;
}

.smort-blend-mode-video-marquee span {
  padding: 0 4rem;
  display: inline-block;
}

/* Duplicate the content for seamless loop */
.smort-blend-mode-video-marquee::after {
  content: attr(data-text);
  padding: 0 4rem;
  display: inline-block;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Inner content styling */
.smort-blend-mode-video-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  gap: var(--space-4);
}

/* Section Title */
.smort-blend-mode-video-section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

/* Bouncing Arrow */
.smort-blend-mode-video-arrow {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  width: 32px;
  height: 32px;
  animation: bounce 2s ease-in-out infinite;
  flex-shrink: 0;
  margin-bottom: -8px;
}

.smort-blend-mode-video-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}

.smort-blend-mode-video-arrow svg path,
.smort-blend-mode-video-arrow svg polyline {
  stroke: #961718 !important;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Video Poster Container */
.smort-blend-mode-video-video-poster-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  cursor: pointer;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.smort-blend-mode-video-video-poster-container:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.smort-blend-mode-video-poster-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* Gradient Overlay */
.smort-blend-mode-video-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

/* Play Button Wrapper */
.smort-blend-mode-video-play-button-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

/* Custom Play Button */
.smort-blend-mode-video-play-button {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.smort-blend-mode-video-play-button svg {
  width: 40px;
  height: 40px;
  color: var(--primary-color);
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.smort-blend-mode-video-play-button:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.smort-blend-mode-video-play-button:hover svg {
  transform: scale(1.1);
}

/* Play Text */
.smort-blend-mode-video-play-text {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin: 0;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Video Dialog styling */
.smort-blend-mode-video-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.smort-blend-mode-video-dialog {
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease forwards;
  border: 1px solid #fff;
}
.smort-blend-mode-video-dialog-background-video {
  pointer-events: none;
}
@keyframes slideIn {
  from {
    transform: scale(0.8) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.smort-blend-mode-video-dialog-close {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.smort-blend-mode-video-dialog-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.smort-blend-mode-video-dialog-close:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.smort-blend-mode-video-dialog-content {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}

.smort-blend-mode-video-dialog-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
}

@media (max-width: 768px) {
  .smort-blend-mode-video-dialog {
    max-width: 95vw;
    max-height: 95vh;
    margin: 10px;
  }

  .smort-blend-mode-video-dialog-close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
}

.smort-blend-mode-video-dialog-player::-webkit-media-controls-panel {
  background-color: rgba(0, 0, 0, 0.8);
}

.smort-blend-mode-video-dialog-player::-webkit-media-controls-play-button,
.smort-blend-mode-video-dialog-player::-webkit-media-controls-volume-slider,
.smort-blend-mode-video-dialog-player::-webkit-media-controls-timeline,
.smort-blend-mode-video-dialog-player::-webkit-media-controls-current-time-display,
.smort-blend-mode-video-dialog-player::-webkit-media-controls-time-remaining-display {
  color: white;
}
/* Responsive Styles */
@media (width <= 1024px) {
  .smort-blend-mode-video {
    min-height: 60vh;
    padding: var(--space-16) 0;
  }

  .smort-blend-mode-video-marquee {
    font-size: clamp(3rem, 10vw, 8rem);
  }

  .smort-blend-mode-video-play-button {
    width: 80px;
    height: 80px;
  }

  .smort-blend-mode-video-play-button svg {
    width: 32px;
    height: 32px;
  }

  .smort-blend-mode-video-play-text {
    font-size: var(--text-xl);
  }
}

@media (width <= 768px) {
  .smort-blend-mode-video {
    min-height: 50vh;
    padding: var(--space-12) 0;
  }

  .smort-blend-mode-video-marquee {
    font-size: clamp(2rem, 8vw, 6rem);
  }

  .smort-blend-mode-video-video-poster-container {
    border-radius: 16px;
  }

  .smort-blend-mode-video-play-button {
    width: 70px;
    height: 70px;
  }

  .smort-blend-mode-video-play-button svg {
    width: 28px;
    height: 28px;
  }

  .smort-blend-mode-video-play-text {
    font-size: var(--text-lg);
  }
}

@media (width <= 480px) {
  .smort-blend-mode-video {
    min-height: 40vh;
  }

  .smort-blend-mode-video-marquee {
    font-size: clamp(1.5rem, 6vw, 4rem);
  }

  .smort-blend-mode-video-video-poster-container {
    border-radius: 12px;
  }

  .smort-blend-mode-video-play-button {
    width: 60px;
    height: 60px;
  }

  .smort-blend-mode-video-play-button svg {
    width: 24px;
    height: 24px;
  }

  .smort-blend-mode-video-play-text {
    font-size: var(--text-base);
  }
}
