/* styles/cookie-banner.css */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 20000;
  padding: 0 20px 20px;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.cookie-banner.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.cookie-banner__content {
  position: relative;
  background: #060C1A;
  background-image: linear-gradient(135deg, rgb(11, 24, 54), rgba(20, 97, 204, 0.15));
  border: 1.5px solid rgba(88, 141, 214, 0.6);
  border-radius: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  box-shadow: 0 -10px 40px rgba(4, 219, 214, 0.15), 0 -5px 20px rgba(20, 97, 204, 0.2);
  display: flex;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(10px);
}

.cookie-banner__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1461cc 0%, #04dbd6 100%);
  border-radius: 50%;
  color: #060c1a;
  animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(4, 219, 214, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(4, 219, 214, 0);
  }
}

.cookie-banner__text {
  flex: 1;
  min-width: 0;
}

.cookie-banner__message {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  letter-spacing: 0.3px;
}

.cookie-banner__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-banner__button {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-banner__button--accept {
  padding: 12px 28px;
  background: linear-gradient(90deg, #1461cc 0%, #04dbd6 100%);
  border-radius: 24px;
  color: #060c1a;
  font-size: 14px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.cookie-banner__button--accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(4, 219, 214, 0.35);
}

.cookie-banner__button--accept:active {
  transform: translateY(0);
}

.cookie-banner__button--close {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  padding: 0;
}

.cookie-banner__button--close:hover {
  background: rgba(4, 219, 214, 0.15);
  color: #04dbd6;
  transform: rotate(90deg);
}

/* Адаптивная версия для планшетов */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 0 15px 15px;
  }

  .cookie-banner__content {
    padding: 18px 20px;
    gap: 16px;
    border-radius: 16px;
  }

  .cookie-banner__icon {
    width: 38px;
    height: 38px;
  }

  .cookie-banner__icon svg {
    width: 20px;
    height: 20px;
  }

  .cookie-banner__message {
    font-size: 13px;
  }

  .cookie-banner__button--accept {
    padding: 10px 22px;
    font-size: 13px;
    border-radius: 20px;
  }

  .cookie-banner__button--close {
    width: 32px;
    height: 32px;
  }

  .cookie-banner__button--close svg {
    width: 18px;
    height: 18px;
  }
}

/* Адаптивная версия для мобильных */
@media (max-width: 480px) {
  .cookie-banner {
    padding: 0 12px 12px;
  }

  .cookie-banner__content {
    flex-direction: column;
    padding: 16px 18px;
    gap: 14px;
    border-radius: 14px;
    align-items: flex-start;
  }

  .cookie-banner__icon {
    width: 36px;
    height: 36px;
    align-self: center;
  }

  .cookie-banner__icon svg {
    width: 18px;
    height: 18px;
  }

  .cookie-banner__text {
    text-align: center;
  }

  .cookie-banner__message {
    font-size: 12px;
    line-height: 1.4;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .cookie-banner__button--accept {
    flex: 1;
    padding: 10px 20px;
    font-size: 12px;
    border-radius: 18px;
  }

  .cookie-banner__button--close {
    width: 36px;
    height: 36px;
  }

  .cookie-banner__button--close svg {
    width: 16px;
    height: 16px;
  }
}
