/* Стили для главной страницы Speakee */

/* Анимированный градиентный фон */
body.home-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  /* Значительно увеличиваем контраст между цветами градиента */
  background: linear-gradient(-45deg, 
    rgb(71, 100, 234),  /* Более насыщенный синий */
    rgb(133, 58, 198),  /* Более насыщенный фиолетовый */
    rgb(52, 96, 250),   /* Ярче синий */
    rgb(142, 68, 234)); /* Яркий пурпурный */
  background-size: 200% 200%; /* Делаем размер еще меньше для более очевидного движения */
  /* Делаем анимацию быстрее и резче */
  animation: gradient-shift 6s linear infinite; /* Линейная анимация вместо ease-in-out */
  background-attachment: fixed;
  transition: none !important; /* Отключаем любые переходы, которые могут мешать */
}

/* Более интенсивная анимация градиента */
@keyframes gradient-shift {
  0% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

/* Контейнер для главной страницы */
.home-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 0 2rem;
  text-align: center;
  position: relative;
  top: 0;
}

.home-content {
  max-width: 900px;
  margin: 0 auto;
  transform: translateY(-2vh);
}

/* Логотип и описание */
.home-logo {
  font-size: 5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
}

.home-tagline {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  max-width: 700px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Кнопки */
.home-buttons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 5rem;
  justify-content: center;
  width: 100%;
}

.home-buttons .sp-btn {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.home-buttons .sp-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Стили для кнопок если не импортируются из других файлов */
.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.sp-btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
}

.sp-btn-primary {
  background-color: #7e57c2;
  color: white;
}

.sp-btn-secondary {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
}

/* Нижняя навигационная панель */
.home-nav-bar {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.25rem;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.home-nav-links {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.home-nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: transform 0.3s, color 0.3s;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.home-nav-link:hover {
  color: #e0e0e0;
  transform: translateY(-3px);
}

/* Минимальный хедер и футер */
.home-minimal-header {
  background-color: transparent;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
  padding: 1rem;
}

.home-minimal-footer.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Применение анимаций */
.home-logo {
  animation: fadeInDown 1s ease-out forwards;
}

.home-tagline {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards 0.2s;
}

.home-buttons {
  opacity: 0;
  animation: scaleIn 0.8s ease-out forwards 0.4s;
}

.home-nav-bar {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards 0.6s;
}

/* Анимация для кнопок с разной задержкой */
.home-buttons .sp-btn:nth-child(1) {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-out 0.7s forwards;
}

.home-buttons .sp-btn:nth-child(2) {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-out 0.9s forwards;
}

/* Анимация для навигационных ссылок с каскадной задержкой */
.home-nav-links li {
  opacity: 0;
  transform: translateY(10px);
}

.home-nav-links li:nth-child(1) {
  animation: fadeInUp 0.4s ease-out 1.1s forwards;
}

.home-nav-links li:nth-child(2) {
  animation: fadeInUp 0.4s ease-out 1.2s forwards;
}

.home-nav-links li:nth-child(3) {
  animation: fadeInUp 0.4s ease-out 1.3s forwards;
}

.home-nav-links li:nth-child(4) {
  animation: fadeInUp 0.4s ease-out 1.4s forwards;
}

/* Стили для новой анимированной кнопки */
.animated-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease-out;
  background: linear-gradient(45deg, #764ba2, #667eea);
  padding: 0.75rem 2rem 0.75rem 1.75rem;
  border-radius: 50px !important;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
  transform: translateY(20px);
  opacity: 0;
  animation: buttonFadeIn 0.8s ease-out 1.1s forwards;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.animated-button:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.5);
  background: linear-gradient(45deg, #7e57c2, #5e71d4);
}

.animated-button:active {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.animated-button .btn-icon {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
}

.animated-button .btn-text {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.animated-button .btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shine 3s infinite;
}

@keyframes buttonFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shine {
  0% {
    left: -100%;
  }
  20% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* Добавляем пульсацию для привлечения внимания */
.sp-btn-pulse {
  animation: buttonFadeIn 0.8s ease-out 1.1s forwards, pulse 2s infinite 2s;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(102, 126, 234, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
  }
}

/* Метка версии приложения */
.version-badge {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.4rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 100;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.5s ease-out 1.6s forwards;
}

.version-badge::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  background-color: rgba(106, 224, 126, 0.8);
  border-radius: 50%;
  margin-right: 0.4rem;
  box-shadow: 0 0 8px rgba(106, 224, 126, 0.6);
  animation: pulse 2s infinite;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 991px) {
  .home-logo {
    font-size: 4rem;
  }
  
  .home-tagline {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
  }
  
  .home-buttons {
    margin-bottom: 4rem;
  }
}

@media (max-width: 767px) {
  .home-hero {
    padding: 0 1.5rem;
  }
  
  .home-logo {
    font-size: 3.5rem;
  }
  
  .home-buttons {
    flex-direction: column;
    margin-bottom: 3rem;
    gap: 1rem;
  }
  
  .home-nav-links {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .home-nav-link {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }
  
  .animated-button {
    padding: 0.6rem 1.5rem 0.6rem 1.5rem;
  }
}

@media (max-width: 576px) {
  .home-logo {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
  }
  
  .home-tagline {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .home-nav-bar {
    padding: 1rem;
  }
  
  .home-nav-links {
    justify-content: center;
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .home-nav-link {
    justify-content: center;
    width: 100%;
    font-size: 0.95rem;
  }
  
  .version-badge {
    bottom: 1rem;
    right: 1rem;
    font-size: 0.75rem;
  }
}

@media (max-height: 700px) {
  .home-hero {
    padding-top: 2rem;
    height: auto;
    min-height: 100vh;
  }
  
  .home-content {
    transform: translateY(0);
  }
  
  .home-buttons {
    margin-bottom: 2rem;
  }
}