/* Rezen Simple Video Block */
.rezen-simple-video {
  position: relative;
  margin-left: calc(50% - 50vw);
  padding: 4rem 0;
  background: var(--bg-color, #f7f8f6);
  overflow: hidden;
}

.rezen-simple-video .wrapper {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Content Section */
.rezen-simple-video__title {
  color: #fff;
  font-family: "PP Telegraf";
  font-size: 70px;
  font-style: normal;
  font-weight: 400;
  line-height: 84px;
  letter-spacing: -1.2px;
}

.rezen-simple-video__title h1,
.rezen-simple-video__title h2,
.rezen-simple-video__title h3,
.rezen-simple-video__title h4,
.rezen-simple-video__title h5,
.rezen-simple-video__title h6 {
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.rezen-simple-video__title strong {
  font-weight: 400;
}

/* Default gradient styling for em tags */
.rezen-simple-video--em-gradient .rezen-simple-video__title em {
  font-family: "Instrument Serif", Georgia, serif;
  background: linear-gradient(90deg, #ff557e 38.46%, #7798ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

/* Solid color styling for em tags */
.rezen-simple-video--em-solid .rezen-simple-video__title em {
  font-family: "Instrument Serif", Georgia, serif;
  color: var(--title-em-color, #ff557e);
  font-style: italic;
}

.rezen-simple-video__copy {
  color: rgba(5, 14, 61, 0.7);
  font-family: Inter, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0;
}

.rezen-simple-video__copy p {
  margin: 0 0 1rem 0;
}

.rezen-simple-video__copy p:last-child {
  margin-bottom: 0;
}

/* Media Section */
.rezen-simple-video__media {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Animated SVG Lines */
.rezen-simple-video__line {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.rezen-simple-video__line--top-left {
  top: 30%;
  left: 0;
  width: 200px;
  height: 80px;
}

.rezen-simple-video__line--bottom-right {
  bottom: 30%;
  right: 0;
  width: 240px;
  height: 80px;
}

.rezen-simple-video__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.rezen-simple-video__svg path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

/* Video size reduction when lines are enabled */
.rezen-simple-video--with-lines .rezen-simple-video__video {
  margin: 0 auto;
}

.rezen-simple-video__video {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  min-height: 400px;
  max-height: 70vh;
  object-fit: cover;
  object-position: center;
  border-radius: 1rem;
  background: #000;
}

/* Mobile video handling */
.rezen-simple-video__video--mobile {
  display: none;
}

/* Responsive video (when only one video for all devices) - inherits base styles */

/* Large Desktop Media Queries */
@media (min-width: 1900px) {
  .rezen-simple-video__line--top-left {
    width: 740px;
    height: 270px;
  }

  .rezen-simple-video__line--bottom-right {
    width: 740px;
    height: 270px;
  }
}

@media (min-width: 1601px) and (max-width: 1899px) {
  .rezen-simple-video__line--top-left {
    width: 370px;
    height: 170px;
  }

  .rezen-simple-video__line--bottom-right {
    width: 370px;
    height: 170px;
  }
}

@media (min-width: 1401px) and (max-width: 1600px) {
  .rezen-simple-video__line--top-left {
    width: 130px;
    height: 120px;
  }

  .rezen-simple-video__line--bottom-right {
    width: 130px;
    height: 120px;
  }
}

/* Responsive Design */
@media (max-width: 1400px) and (min-width: 1025px) {
  .rezen-simple-video__line--top-left {
    width: 110px;
    height: 230px;
  }

  .rezen-simple-video__line--bottom-right {
    width: 110px;
    height: 40px;
  }
}

@media (max-width: 1024px) {
  .rezen-simple-video {
    padding: 3rem 0;
  }

  .rezen-simple-video .wrapper {
    gap: 2.5rem;
  }

  .rezen-simple-video__title {
    font-size: 48px;
    line-height: 1.2;
  }

  .rezen-simple-video__media {
    max-width: 100%;
  }

  .rezen-simple-video__video {
    min-height: 300px;
    max-height: 60vh;
  }

  .rezen-simple-video__line--top-left {
    width: 80px;
    height: 160px;
  }

  .rezen-simple-video__line--bottom-right {
    width: 90px;
    height: 60px;
  }
}

@media (max-width: 768px) {
  .rezen-simple-video {
    padding: 2rem 0;
  }

  .rezen-simple-video .wrapper {
    gap: 2rem;
  }

  .rezen-simple-video__title {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .rezen-simple-video__copy {
    font-size: 1rem;
  }

  .rezen-simple-video__video {
    min-height: 250px;
    max-height: 50vh;
  }

  .rezen-simple-video__line--top-left {
    width: 60px;
    height: 150px;
  }

  .rezen-simple-video__line--bottom-right {
    width: 70px;
    height: 50px;
  }

  /* Show mobile video if available, otherwise keep responsive video visible */
  .rezen-simple-video__video--desktop {
    display: none;
  }

  .rezen-simple-video__video--mobile {
    display: block;
  }

  /* Responsive video stays visible on mobile when no separate mobile video exists */
  .rezen-simple-video__video--responsive {
    display: block;
  }
}

@media (max-width: 480px) {
  .rezen-simple-video {
    padding: 1.5rem 0;
  }

  .rezen-simple-video .wrapper {
    gap: 1.5rem;
  }

  .rezen-simple-video__title {
    font-size: 28px;
    line-height: 1.2;
  }

  .rezen-simple-video__video {
    min-height: 200px;
    border-radius: 0.5rem;
  }

  .rezen-simple-video__media {
    border-radius: 0.5rem;
  }

  .rezen-simple-video__line--top-left {
    width: 60px;
    height: 100px;
  }

  .rezen-simple-video__line--bottom-right {
    width: 70px;
    height: 20px;
  }
}

/* High DPI displays optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  .rezen-simple-video__video {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Debug empty state */
.rezen-simple-video--empty {
  border: 2px dashed #ccc;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rezen-simple-video--empty::before {
  content: "Rezen Simple Video Block - Add content in the editor";
  color: #666;
  font-family: Inter, sans-serif;
  font-size: 1rem;
  text-align: center;
}
