/* Улучшения для мобильных устройств и кнопок */

/* Общие улучшения для мобильной адаптивности */
@media (max-width: 767px) {
  body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Увеличиваем контрастность и читаемость текста */
  .info__wrap .info {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    font-size: 18px;
  }
  
  .info__wrap .name__wrap {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  }
  
  /* Улучшаем отображение карточек девушек для мобильных устройств */
  .gallery ul li img {
    object-fit: cover;
    height: 100%;
    width: 100%;
  }
  
  /* Улучшаем видимость информации */
  .info__wrap {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 10px;
    max-width: 80%;
  }
}

/* Улучшение кнопок для тапа */
.gallery .btn-group {
  padding: 10px 0;
  max-width: 65%;
  border-radius: 30px;
  background-color: rgba(0, 0, 0, 0.7);
}

.gallery .btn-group a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s ease-in-out !important;
}

.gallery .btn-group a.btn-dislike, 
.gallery .btn-group a.btn-like {
  width: 18vw;
  height: 18vw;
  max-width: 80px;
  max-height: 80px;
  line-height: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.gallery .btn-group a.btn-like:active,
.gallery .btn-group a.btn-dislike:active {
  transform: scale(0.9);
}

/* Улучшенные анимации */
.gallery ul li {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(145, 192, 69, 0.7);
  }
  
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(145, 192, 69, 0);
  }
  
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(145, 192, 69, 0);
  }
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(5px); }
  50% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

.gallery .btn-group a.btn-like {
  animation: pulse 2s infinite !important;
}

.gallery .btn-group a.btn-dislike:hover {
  animation: shake 0.5s ease-in-out !important;
}

/* Для улучшения регистрационной формы */
.registration-inner {
  border-radius: 16px;
  overflow: hidden;
}

.registration .block-field-group .form-group .btn-group .btn {
  border-radius: 25px;
  transform: translateY(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.registration .block-field-group .form-group .btn-group .btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Стили для списков понравившихся/непонравившихся профилей */
.liked-list a, .unliked-list a {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
  border-radius: 5px;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.liked-list a.animated-entry, .unliked-list a.animated-entry {
  transform: scale(1);
  opacity: 1;
}

.liked-list a img, .unliked-list a img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  object-fit: cover;
  display: block;
}

/* Эффекты для списков */
.liked-list a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(145, 192, 69, 0.3);
  z-index: 1;
  border-radius: 5px;
}

.unliked-list a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(214, 86, 99, 0.3);
  z-index: 1;
  border-radius: 5px;
}

/* Стили для работы с WebP */
.webp-support .gallery picture source {
  display: inline;
}

.no-webp-support .gallery picture source {
  display: none;
} 