/* Footer styles for Polviion */
.pv-footer {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), #020617);
  border-top: 1px solid rgba(30, 64, 175, 0.7);
  color: #e5e7eb;
  padding-top: 2.5rem;
  padding-bottom: 5.5rem; /* space for cookie banner on mobile */
}

.pv-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 1.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 2fr);
  gap: 2.5rem;
}

.pv-footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.pv-footer-brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.9rem;
  background: conic-gradient(from 210deg, #22d3ee, #a855f7, #f97316, #22d3ee);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.75);
  position: relative;
  overflow: hidden;
}

.pv-footer-brand-mark::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 0, rgba(248, 250, 252, 0.2), transparent 55%),
              #020617;
}

.pv-footer-brand-text {
  display: flex;
  flex-direction: column;
}

.pv-footer-brand-title {
  font-family: "Orbitron", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.96rem;
  color: #f9fafb;
}

.pv-footer-brand-subtitle {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #38bdf8;
}

.pv-footer-copy {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #9ca3af;
  max-width: 28rem;
}

.pv-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.pv-footer-heading {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #cbd5f5;
}

.pv-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pv-footer-list li + li {
  margin-top: 0.4rem;
}

.pv-footer-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #9ca3af;
  text-decoration: none;
}

.pv-footer-list a::before {
  content: '';
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 999px;
  background: radial-gradient(circle, #38bdf8, transparent 70%);
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pv-footer-list a:hover,
.pv-footer-list a:focus-visible {
  color: #e5e7eb;
  outline: none;
}

.pv-footer-list a:hover::before,
.pv-footer-list a:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.pv-footer-list a:focus-visible {
  box-shadow: 0 0 0 2px #020617, 0 0 0 4px #38bdf8;
  border-radius: 999px;
  padding-inline: 0.35rem;
  margin-inline: -0.35rem;
}

.pv-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(30, 64, 175, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pv-footer-bottom-text {
  margin: 0;
  font-size: 0.78rem;
  color: #6b7280;
}

.pv-footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pv-footer-social-link {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
  background: radial-gradient(circle at 30% 0, rgba(56, 189, 248, 0.16), transparent 60%),
              rgba(15, 23, 42, 0.95);
}

.pv-footer-social-link:hover,
.pv-footer-social-link:focus-visible {
  color: #f9fafb;
  border-color: #38bdf8;
  outline: none;
  box-shadow: 0 0 0 2px rgba(8, 47, 73, 0.85), 0 0 0 4px rgba(56, 189, 248, 0.85);
}

/* Cookie banner */
.pv-cookie-banner {
  position: fixed;
  inset-inline: 0.75rem;
  bottom: 0.75rem;
  z-index: 1200;
  max-width: 1100px;
  margin-inline: auto;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.35), transparent 55%),
              radial-gradient(circle at top right, rgba(168, 85, 247, 0.3), transparent 55%),
              #020617;
  border-radius: 1rem;
  border: 1px solid rgba(56, 189, 248, 0.7);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  opacity: 0;
  transform: translateY(130%);
  pointer-events: none;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.pv-cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pv-cookie-banner.is-hiding {
  opacity: 0;
  transform: translateY(130%);
}

.pv-cookie-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.15rem 1.1rem;
}

.pv-cookie-text {
  flex: 1 1 auto;
}

.pv-cookie-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f9fafb;
}

.pv-cookie-description {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #d1d5db;
}

.pv-cookie-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pv-cookie-link:hover,
.pv-cookie-link:focus-visible {
  color: #e0f2fe;
  outline: none;
}

.pv-cookie-link:focus-visible {
  box-shadow: 0 0 0 2px #020617, 0 0 0 4px #38bdf8;
  border-radius: 999px;
  padding-inline: 0.25rem;
  margin-inline: -0.25rem;
}

.pv-cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pv-cookie-btn {
  min-width: 8.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.pv-cookie-btn-primary {
  background: linear-gradient(135deg, #22c55e, #22d3ee);
  color: #020617;
}

.pv-cookie-btn-primary:hover,
.pv-cookie-btn-primary:focus-visible {
  background: linear-gradient(135deg, #16a34a, #06b6d4);
}

.pv-cookie-btn-secondary {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.8);
  color: #e5e7eb;
}

.pv-cookie-btn-secondary:hover,
.pv-cookie-btn-secondary:focus-visible {
  border-color: #e5e7eb;
}

.pv-cookie-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #020617, 0 0 0 4px #38bdf8;
}

@media (max-width: 768px) {
  .pv-footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .pv-footer-copy {
    max-width: none;
  }

  .pv-footer-links {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .pv-footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .pv-cookie-inner {
    flex-direction: column;
    padding: 0.9rem 0.9rem 0.95rem;
  }

  .pv-cookie-actions {
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .pv-cookie-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .pv-cookie-banner {
    inset-inline: 0.5rem;
    bottom: 0.5rem;
  }

  .pv-footer-links {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pv-cookie-banner {
    transition: none !important;
  }
}
