/* Footer and cookie banner styles for Vltavera */

.vlt-footer {
  font-size: var(--font-size-sm);
}

.vlt-footer__columns {
  row-gap: var(--space-6);
}

.vlt-footer__column {
  color: var(--color-text-soft);
}

.vlt-footer__text {
  color: var(--color-text-soft);
}

.vlt-footer__legal-links {
  margin-top: var(--space-2);
}

.vlt-footer__bottom {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  border-top: 1px solid var(--gray-200);
  padding-top: var(--space-4);
}

.vlt-footer__copyright {
  color: var(--color-text-muted);
}

.vlt-footer__social {
  display: flex;
  gap: var(--space-3);
}

.vlt-footer__social-link {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  color: var(--color-text-muted);
  transition: background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-fast),
    box-shadow var(--transition-base);
}

.vlt-footer__social-link:hover,
.vlt-footer__social-link:focus-visible {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--color-primary), #7bb3f4);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(74, 144, 226, 0.35);
}

@media (min-width: 768px) {
  .vlt-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Cookie banner */
.vlt-cookie {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.vlt-cookie__content {
  pointer-events: auto;
  width: min(960px, 100% - 2.5rem);
  margin: var(--space-4) auto;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffffff, #f1eee9);
  box-shadow: var(--shadow-medium);
}

.vlt-cookie__title {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-2);
}

.vlt-cookie__text {
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-4);
}

.vlt-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: flex-end;
}

.vlt-cookie__button {
  font-size: var(--font-size-xs);
}

/* Animation states controlled via JS class */
.vlt-cookie[hidden] {
  display: none;
}

.vlt-cookie--visible {
  animation: vlt-cookie-fade-in 220ms ease-out forwards;
}

.vlt-cookie--hiding {
  animation: vlt-cookie-fade-out 180ms ease-in forwards;
}

@keyframes vlt-cookie-fade-in {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes vlt-cookie-fade-out {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(12px);
    opacity: 0;
  }
}

@media (max-width: 767px) {
  .vlt-cookie__content {
    padding: var(--space-4) var(--space-4);
  }

  .vlt-cookie__actions {
    justify-content: stretch;
  }

  .vlt-cookie__button {
    flex: 1 1 45%;
    justify-content: center;
  }
}
