/* ================= FOOTER - ПУСТАЯ СВЕТЛАЯ ГАММА ================= */

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(135deg, rgba(0, 100, 0, 0.9) 0%, rgba(0, 80, 0, 0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: hidden;
  opacity: 0.4;
  transition: all 0.4s ease;
  padding: 5px 20px;
  box-shadow: 0 -4px 20px rgba(0, 100, 0, 0.3);
  transform: translateY(0);
}

body {
  padding-bottom: 20px;
}

/* Анимация клика на логотип */
@keyframes logoClick {
  0% { transform: scale(1.15) rotate(2deg); }
  50% { transform: scale(0.9) rotate(-2deg); }
  100% { transform: scale(1.15) rotate(2deg); }
}

/* Анимация пульсации логотипа для привлечения внимания */
@keyframes logoPulse {
  0% { 
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 8px rgba(255, 255, 0, 0.6));
  }
  50% { 
    transform: scale(1.1) rotate(1deg);
    filter: drop-shadow(0 0 12px rgba(255, 255, 0, 0.8));
  }
  100% { 
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 8px rgba(255, 255, 0, 0.6));
  }
}

/* Анимация стрелки вниз */
@keyframes arrowBounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(3px); }
  100% { transform: translateY(0); }
}

/* Анимация пульсации кнопок */
@keyframes buttonPulse {
  0% { transform: scale(1.15); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1.15); }
}

/* Верхняя часть footer */
.footer-top {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 20px;
  gap: 20px;
}

.footer-logo {
  height: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(255, 255, 0, 0.6));
  animation: logoPulse 2s ease-in-out infinite;
}

.footer-logo:hover {
  transform: scale(1.15) rotate(2deg);
  filter: drop-shadow(0 0 12px rgba(255, 255, 0, 0.8));
  animation-play-state: paused;
}

.footer-logo:active {
  animation: logoClick 0.3s ease-in-out;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 300;
  text-align: right;
}

.footer-arrow {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: arrowBounce 2s ease-in-out infinite;
}

.footer-arrow:hover {
  color: rgba(255, 255, 0, 1);
  transform: scale(1.2);
  animation-play-state: paused;
}

.footer-icon {
  position: relative;
  display: inline-block;
}

.footer-icon img {
  height: 32px;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover effect */
.footer-icon img:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 12px #00ff99);
  animation: buttonPulse 0.6s ease-in-out;
}

/* Tooltip */
.footer-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1200;
}

/* Tooltip arrow */
.footer-icon::before {
  content: "";
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent rgba(0, 0, 0, 0.85) transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1199;
}

.footer-icon:hover::after,
.footer-icon:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Контейнер карусели */
.footer-carousel {
    display: none;
  gap: 20px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 520px;
}

.footer-carousel::-webkit-scrollbar {
    display: none;
  }
  
/* Внутренний скролл контейнер */
.footer-carousel-scroll {
    display: flex;
  gap: 20px;
    align-items: center;
    overflow-x: auto;
  scroll-behavior: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  padding: 0 20px;
  width: 100%;
}

/* Плавные переходы для карусели */
.footer-carousel {
  transition: all 0.4s ease;
}

.footer-carousel * {
  transition: all 0.3s ease;
}

/* Градиенты для обрезок по бокам */
.footer-carousel::before,
.footer-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 10;
  pointer-events: none;
}

.footer-carousel::before {
  left: 0;
  background: linear-gradient(to right, rgba(0, 100, 0, 0.8) 0%, transparent 100%);
}

.footer-carousel::after {
  right: 0;
  background: linear-gradient(to left, rgba(0, 100, 0, 0.8) 0%, transparent 100%);
}

/* Hover эффекты для footer */

.footer:hover {
  opacity: 1;
}

.footer.visible {
  opacity: 1;
}

.footer.expanded {
  height: 65px;
  justify-content: space-between;
}

body.footer-expanded {
  padding-bottom: 65px;
}

.footer.expanded .footer-carousel {
  display: flex;
}

/* Медиа-запросы для карусели */
@media (max-width: 768px) {
  .footer-carousel {
    gap: 15px;
    max-width: 585px;
  }
  
  .footer-carousel-scroll {
    padding: 0 10px;
  }
  
  .footer-carousel::before,
  .footer-carousel::after {
    width: 50px;
  }
}

@media (max-width: 480px) {
  .footer-carousel {
    gap: 10px;
    max-width: 650px;
  }
  
  .footer-carousel-scroll {
    padding: 0 5px;
  }
  
  .footer-carousel::before,
  .footer-carousel::after {
    width: 60px;
  }
}
