/* Кастомные анимации для проекта GlobalJournalismHub */

/* Fade-in анимация */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Fade-out анимация */
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Рост элементов */
@keyframes grow {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Плавное появление снизу */
@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Плавное появление слева */
@keyframes slideLeft {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Плавное появление справа */
@keyframes slideRight {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Применение анимаций */
.animate-fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.animate-fade-out {
  animation: fadeOut 0.5s ease-in-out;
}

.animate-grow {
  animation: grow 0.4s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.5s ease-out;
}

.animate-slide-left {
  animation: slideLeft 0.5s ease-out;
}

.animate-slide-right {
  animation: slideRight 0.5s ease-out;
}

/* Задержки для последовательного появления */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

/* Стили для активных табов */
[data-tab-button].active {
  color: #1E3A8A;
  border-bottom-color: #00BFFF;
  border-bottom-width: 2px;
}

/* Стили для FAQ */
.faq-icon.rotate-180 {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.faq-icon {
  transition: transform 0.3s ease;
}

/* Стили для ошибок валидации */
.error-message {
  color: #DC2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.error-message.hidden {
  display: none;
}
