/**
 * Steps Vertical Showcase Widget Styles
 * Matching competitor design structure
 */

.sellio-steps-vertical-showcase {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.sellio-steps-container {
  display: flex;
  flex-direction: row;
  gap: 60px;
  flex-wrap: wrap;
}

.sellio-steps-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.sellio-steps-section-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 40px 0;
  color: #000;
}

/* Steps List */
.sellio-steps-list {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
}

.sellio-steps-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}

.sellio-step-item {
  margin-bottom: 0;
  padding: 0;
  border: none;
  background: transparent;
  width: 100%;
  max-width: 100%;
}

.sellio-step-item a {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
}

.sellio-step-wrapper {
  position: relative;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.sellio-step-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sellio-step-item.sellio-step-active .sellio-step-pattern {
  opacity: 1;
}

.sellio-step-content {
  position: relative;
  z-index: 1;
}

.sellio-step-title {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  color: #000;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: font-weight 0.3s ease;
}

.sellio-step-item.sellio-step-active .sellio-step-title {
  font-weight: 700;
}

.sellio-step-number {
  font-weight: 700;
  font-size: 20px;
  color: #000;
  transition: all 0.3s ease;
}

.sellio-step-number-active {
  font-weight: 400;
}

.sellio-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
}

.sellio-step-icon svg {
  width: 1em;
  height: 1em;
  display: block;
}

.sellio-accordion {
  overflow: hidden;
  transition: height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
  margin-top: 0px;
  height: 0px;
  display: block;
  opacity: 0;
}

.sellio-accordion.sellio-accordion-open {
  opacity: 1;
  margin-top: 12px;
  height: auto;
}

.sellio-step-description {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0 0 16px 0;
  font-weight: 400;
}

.sellio-step-progress {
  display: block;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 12px;
  position: relative;
}

/* Hide progress bar when accordion is closed */
.sellio-accordion:not(.sellio-accordion-open) .sellio-step-progress {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.sellio-step-progress-bar {
  display: block;
  height: 100%;
  background: #000;
  border-radius: 2px;
  width: 0%;
  transition: width linear;
  position: relative;
  z-index: 1;
}

.sellio-media-hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}

.sellio-media-visible {
  display: block;
  opacity: 1;
  visibility: visible;
}

.sellio-external-video.sellio-media-hidden {
  display: none !important;
}

.sellio-external-video.sellio-media-visible {
  display: block;
}

/* Media Preview (Right Column) */
.sellio-steps-media {
  flex: 1;
  min-width: 0;
  position: sticky;
  top: 20px;
  align-self: flex-start;
}

.sellio-media-container {
  position: relative;
  width: 100%;
  aspect-ratio: 869/1080;
}

.sellio-media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.sellio-external-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.sellio-external-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  aspect-ratio: 1280/720;
}

.sellio-video-controls {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.sellio-external-video.playing .sellio-video-controls {
  opacity: 0;
}

.sellio-external-video:hover .sellio-video-controls {
  opacity: 1;
}

.sellio-video-controls-icon {
  width: 26px;
  height: 26px;
  position: absolute;
  z-index: 3;
}

.sellio-video-controls-progress {
  width: 64px;
  height: 64px;
  position: absolute;
  transform: rotate(-90deg);
}

.sellio-progress-circle {
  stroke-dashoffset: 94.2;
  transition: stroke-dashoffset 0.1s linear;
}

.sellio-external-video.playing .sellio-progress-circle {
  stroke-dashoffset: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .sellio-steps-container {
    gap: 40px;
  }

  .sellio-steps-section-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .sellio-steps-container {
    flex-direction: column;
    gap: 40px;
  }

  .sellio-steps-media {
    position: relative;
    top: 0;
  }

  .sellio-steps-section-title {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .sellio-step-title {
    font-size: 18px;
  }

  .sellio-step-description {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .sellio-steps-vertical-showcase {
    padding: 40px 15px;
  }

  .sellio-steps-section-title {
    font-size: 28px;
  }

  .sellio-step-title {
    font-size: 16px;
  }
}
