/* Footer and cookie banner styles for Irányóra */

.footer-grid {
  margin-bottom: var(--space-6);
}

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

.footer-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.footer-meta {
  margin-top: var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.footer-bottom-right {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

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

.footer-cta-btn {
  margin-top: var(--space-3);
}

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  padding: var(--space-3) var(--space-4);
  background: radial-gradient(circle at top left, rgba(255, 158, 181, 0.22) 0, transparent 55%),
              radial-gradient(circle at top right, rgba(166, 216, 255, 0.22) 0, transparent 55%),
              rgba(17, 24, 39, 0.96);
  color: #ffffff;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.cookie-banner-inner {
  max-width: 1120px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cookie-banner-title {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-1);
}

.cookie-banner-description {
  font-size: var(--font-size-sm);
  color: rgba(249, 250, 251, 0.9);
}

.cookie-banner-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.cookie-banner-links .text-link {
  color: #e5e7eb;
}

.cookie-banner-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.cookie-btn {
  font-size: var(--font-size-sm);
}

.cookie-btn-reject {
  background-color: transparent;
  color: #e5e7eb;
  border-color: rgba(249, 250, 251, 0.5);
}

.cookie-btn-reject:hover {
  background-color: rgba(31, 41, 55, 0.9);
}

@media (min-width: 640px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-banner-actions {
    flex-direction: row;
    justify-content: flex-end;
  }
}

/* Visible state controlled by JS */
.cookie-banner--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Hiding animation */
.cookie-banner--hiding {
  transform: translateY(100%);
  opacity: 0;
}
