/* Extracted from legacy styles.css; keep in sync with modular structure. */

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gradient-brand);
  box-shadow: 0 -12px 30px rgba(0, 30, 60, 0.25), 0 0 32px rgba(0, 212, 255, 0.12);
  z-index: 9999;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: var(--container-xs);
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-base-sm);
  line-height: var(--line-height-normal);
}

.cookie-banner__link {
  color: var(--color-brand-accent);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.cookie-banner__link:hover {
  color: rgba(0, 212, 255, 0.8);
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-banner__button {
  padding: 0.525rem 1rem;
  border: var(--border-width-thin) solid transparent;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base-sm);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.cookie-banner__button:focus-visible {
  outline: 2px solid var(--color-brand-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2);
}

.cookie-banner__button--primary {
  background: var(--color-brand-accent);
  color: var(--color-brand-primary);
  box-shadow: 0 12px 26px rgba(0, 212, 255, 0.35);
}

.cookie-banner__button--primary:hover {
  background: rgba(0, 212, 255, 0.9);
  box-shadow: 0 14px 30px rgba(0, 212, 255, 0.45);
  transform: translateY(-1px);
}

.cookie-banner__button--primary:active {
  background: rgba(0, 212, 255, 0.8);
  transform: translateY(0);
}

.cookie-banner__button--secondary {
  background: transparent;
  color: var(--color-brand-accent);
  border-color: rgba(255, 255, 255, 0.35);
}

.cookie-banner__button--secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.55);
}

.cookie-banner__button--secondary:active {
  background: rgba(255, 255, 255, 0.08);
}

.cookie-banner__button--tertiary {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.18);
}

.cookie-banner__button--tertiary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.32);
}

.cookie-banner__button--tertiary:active {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
  .cookie-banner__container {
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cookie-banner__text {
    min-width: 100%;
  }

  .cookie-banner__actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-banner__button {
    width: 100%;
  }
}
