<template>
  <footer class="page-footer">
    <div class="footer-section">
      <span class="footer-label">Presented By</span>
      <div class="logos-row">
        <div v-for="(logo, i) in presentedBy" :key="'p-' + i" class="logo-item">
          <img :src="logo.src" :alt="logo.name" class="logo-image" />
        </div>
      </div>
    </div>

    <div class="footer-section">
      <span class="footer-label">Academic Collaborators</span>
      <div class="logos-row">
        <div v-for="(logo, i) in collaborators" :key="'c-' + i" class="logo-item">
          <img :src="logo.src" :alt="logo.name" class="logo-image" />
        </div>
      </div>
    </div>
  </footer>
</template>

<script>
export default {
  name: "PageFooter",
  data() {
    return {
      presentedBy: [
        { name: "DeepKin", src: new URL("../assets/images/companies_images/deepkin_logo.png", import.meta.url).href },
        { name: "The Fin AI", src: new URL("../assets/images/companies_images/logofinai.png", import.meta.url).href },
        { name: "NaCTeM", src: new URL("../assets/images/companies_images/nactemlogo.png", import.meta.url).href },
        { name: "PAAL AI", src: new URL("../assets/images/companies_images/paalai_logo.png", import.meta.url).href },
      ],
      collaborators: [
        { name: "Stevens Institute of Technology", src: new URL("../assets/images/companies_images/stevens.png", import.meta.url).href },
        { name: "University of Florida", src: new URL("../assets/images/companies_images/florida.png", import.meta.url).href },
        { name: "Columbia University", src: new URL("../assets/images/companies_images/columbia.png", import.meta.url).href },
        { name: "Harvard University", src: new URL("../assets/images/companies_images/harvard.png", import.meta.url).href },
        { name: "Université de Montréal", src: new URL("../assets/images/companies_images/montreal.png", import.meta.url).href },
        { name: "Georgia Institute of Technology", src: new URL("../assets/images/companies_images/georgia.png", import.meta.url).href },
      ],
    };
  },
};
</script>

<style scoped>
.page-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-top: 2px solid rgba(0, 0, 0, 0.05);
  z-index: 100;
  backdrop-filter: blur(6px);
}

.footer-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.footer-label {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, rgb(0, 0, 185), rgb(240, 0, 15));
  -webkit-background-clip: text;
  color: transparent;
}

.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.logo-item {
  width: 72px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.logo-item:hover {
  transform: translateY(-2px) scale(1.03);
}

.logo-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

/* Responsive */
@media (max-width: 768px) {
  .page-footer {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .logo-item {
    width: 60px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .footer-label {
    font-size: 0.8rem;
  }

  .logos-row {
    gap: 0.75rem;
  }

  .logo-item {
    width: 52px;
    height: 18px;
  }
}
</style>
