/* Стили для блока шеринга статьи */

.post-share-block {
  position: relative;
  padding: clamp(32px, 17.9184px + 3.0612vw, 62px) clamp(12px, 5.898px + 1.3265vw, 25px);
  margin-top: 80px;
  overflow: hidden;

  /* background: linear-gradient(225deg, #43BAF5 7.92%, #242FFF 100%); */
  background-blend-mode: overlay, normal;
  border-radius: 12px;
}

.waves {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.waves dotlottie-player,
.waves .static-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.waves .static-svg {
  /* top: -40px; */
  top: initial;
  bottom: clamp(-280px, 320px + -31.25vw, 0px);
  height: auto;
}

/* Статичні зображення відображаються за замовчуванням */
.static-svg {
  display: none;
}

/* Для десктопу (>= 768px) показуємо desktop версію */
.static-svg-desktop {
  display: block;
}

.static-svg-mobile {
  display: none;
}

@media screen and (max-width:998px) {
  .waves .static-svg {
   bottom: clamp(-120px, 160px + -27.3437vw, -50px);
  }
}

/* Для мобільних (<768px) показуємо mobile версію */
@media (max-width: 767px) {
  .static-svg-desktop {
    display: none;
  }

  .static-svg-mobile {
    display: block;
  }

  .waves .static-svg {
    bottom: clamp(-320px, 214.433px + -69.5876vw, -50px);
  }
}

/* Коли анімація завантажена, приховуємо всі статичні зображення */
.post-share-block.has-animation .static-svg {
  display: none !important;
}

.post-share-header,
.post-share-networks {
  position: relative;
  z-index: 1;
}

.post-share-header {
  margin-bottom: 20px;
  text-align: center;
}

.post-share-title {
  font-family: Satoshi, sans-serif;
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  font-feature-settings: 'liga' off;
  line-height: 130%; /* 36.4px */
  color: var(--e-global-color-text);
  text-align: center;
}

.post-share-subtitle {
  margin-bottom: clamp(24px, 21.1837px + 0.6122vw, 30px);
  font-family: Satoshi, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  font-feature-settings: 'liga' off;
  line-height: 1.55; /* 155.556% */
  color: rgb(240 243 250 / 80%);
}

.post-share-networks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .share-button:hover {
    box-shadow: 0 5px 10px rgb(0 0 0 / 10%);
    transform: translateY(-3px);
  }
}

.share-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.share-icon-placeholder {
  font-size: 16px;
  font-weight: 600;
  color: #666;
}

/* Уведомление о копировании */
.share-notification {
  position: absolute;
  bottom: -60px;
  left: 50%;
  z-index: 100;
  padding: 10px 20px;
  font-size: 14px;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  background-color: rgb(0 0 0 / 80%);
  border-radius: 4px;
  box-shadow: 0 3px 10px rgb(0 0 0 / 20%);
  transition: opacity 0.3s ease;
  transform: translateX(-50%);
}

/* Для скринридеров */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Адаптивность */
@media (max-width: 480px) {
  .post-share-block {
    padding: 20px 15px;
  }

  .post-share-title {
    font-size: 18px;
  }

  .post-share-subtitle {
    font-size: 14px;
  }

  .share-button {
    width: 38px;
    height: 38px;
  }

  .share-notification {
    width: 90%;
    max-width: 280px;
    white-space: normal;
  }
}

/* Адаптивность */
@media (max-width: 480px) {
  .post-share-block {
    padding: 20px 15px;
  }

  .post-share-title {
    font-size: 18px;
  }

  .post-share-subtitle {
    font-size: 14px;
  }

  .share-button {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}
