/**
 * Links Page Styles - AEA Branded Linktree
 * Mobile-first responsive design
 */

/* ===== Reset ===== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* ===== Page Layout ===== */
.links-page {
  min-height: 100vh;
  width: 100%;
  background-color: var(--light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3rem 1rem;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}

.links-wrapper {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== Hero Section ===== */
.links-hero {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeInDown 0.6s ease forwards;
}

.links-logo {
  width: 120px;
  height: auto;
  object-fit: contain;
  margin-bottom: 1.25rem;
}

.links-location-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.25rem;
  color: var(--green);
  margin: 0 0 0.5rem 0;
  line-height: 1.125;
  font-weight: 700;
}

.links-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  color: var(--paragraphs);
  margin: 0;
  font-weight: 400;
}

/* ===== Links Container ===== */
.links-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* ===== Link Button ===== */
.link-button {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background-color: var(--yellow);
  color: white;
  border-radius: 50em;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.link-button:nth-child(1) { animation-delay: 0.1s; }
.link-button:nth-child(2) { animation-delay: 0.15s; }
.link-button:nth-child(3) { animation-delay: 0.2s; }
.link-button:nth-child(4) { animation-delay: 0.25s; }
.link-button:nth-child(5) { animation-delay: 0.3s; }
.link-button:nth-child(6) { animation-delay: 0.35s; }
.link-button:nth-child(7) { animation-delay: 0.4s; }
.link-button:nth-child(8) { animation-delay: 0.45s; }
.link-button:nth-child(9) { animation-delay: 0.5s; }
.link-button:nth-child(10) { animation-delay: 0.55s; }

.link-button:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(58, 93, 171, 0.3);
}

.link-button-content {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.link-button-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Hover animation element */
.link-button-hover {
  position: absolute;
  inset: 0;
  background-color: var(--green);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1;
}

.link-button:hover .link-button-hover {
  transform: translateX(0);
}

/* ===== Video Section ===== */
.links-video-section {
  margin-top: 2.5rem;
  width: 100%;
  text-align: center;
  animation: fadeIn 0.6s ease 0.6s forwards;
  opacity: 0;
}

.links-video-link {
  position: relative;
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  animation: floatVideo 5s ease-in-out infinite;
}

.links-video-thumbnail {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.links-video-link:hover .links-video-thumbnail {
  transform: scale(1.05);
}

.links-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.links-video-link:hover .links-video-play {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.links-play-icon {
  width: 24px;
  height: 24px;
  margin-left: 4px;
  /* Filter to make SVG blue #3a5dab */
  filter: brightness(0) saturate(100%) invert(32%) sepia(67%) saturate(487%) hue-rotate(189deg) brightness(93%) contrast(89%);
}

.links-video-caption {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  color: var(--paragraphs);
  margin-top: 1rem;
}

/* ===== Floating Images ===== */
.links-floating-images {
  position: relative;
  width: 100%;
  height: 200px;
  margin-top: 2rem;
  animation: fadeIn 0.6s ease 0.8s forwards;
  opacity: 0;
}

.links-float-img {
  position: absolute;
  border: 0.5rem solid white;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 15px 30px rgba(21, 36, 34, 0.15);
}

.links-float-1 {
  width: 45%;
  left: -5%;
  top: 0;
  transform: rotate(-8deg);
  z-index: 1;
  animation: float1 4s ease-in-out infinite;
}

.links-float-2 {
  width: 50%;
  left: 50%;
  transform: translateX(-50%) rotate(6deg);
  bottom: 0;
  z-index: 3;
  animation: float2 5s ease-in-out infinite;
}

.links-float-3 {
  width: 40%;
  right: -5%;
  top: 10%;
  transform: rotate(-5deg);
  z-index: 2;
  animation: float3 4.5s ease-in-out infinite;
}

/* ===== Footer ===== */
.links-footer {
  margin-top: 2.5rem;
  text-align: center;
  animation: fadeIn 0.6s ease 0.8s forwards;
  opacity: 0;
}

.links-footer-logo {
  width: 140px;
  transition: filter 0.2s ease;
  /* Filter to convert white SVG to orange #ff9e18 */
  filter: brightness(0) saturate(100%) invert(67%) sepia(57%) saturate(1500%) hue-rotate(357deg) brightness(101%) contrast(101%);
}

.links-footer-logo:hover {
  filter: brightness(0) saturate(100%) invert(67%) sepia(57%) saturate(1800%) hue-rotate(357deg) brightness(105%) contrast(101%);
}

.links-footer-text {
  font-size: 0.75rem;
  color: var(--paragraphs);
  margin-top: 0.75rem;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float1 {
  0%, 100% {
    transform: rotate(-8deg) translateY(0);
  }
  50% {
    transform: rotate(-8deg) translateY(-10px);
  }
}

@keyframes float2 {
  0%, 100% {
    transform: translateX(-50%) rotate(6deg) translateY(0);
  }
  50% {
    transform: translateX(-50%) rotate(6deg) translateY(-12px);
  }
}

@keyframes float3 {
  0%, 100% {
    transform: rotate(-5deg) translateY(0);
  }
  50% {
    transform: rotate(-5deg) translateY(-8px);
  }
}

@keyframes floatVideo {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* ===== Responsive ===== */
@media screen and (min-width: 480px) {
  .links-wrapper {
    max-width: 340px;
  }

  .links-location-name {
    font-size: 2.75rem;
  }

  .links-logo {
    width: 140px;
  }

  .links-floating-images {
    height: 220px;
  }

  .links-video-play {
    width: 70px;
    height: 70px;
  }

  .links-play-icon {
    width: 28px;
    height: 28px;
  }
}

@media screen and (min-width: 768px) {
  .links-wrapper {
    max-width: 400px;
  }

  .links-logo {
    width: 160px;
  }

  .links-location-name {
    font-size: 3.25rem;
  }

  .link-button {
    padding: 1.125rem 1.75rem;
    font-size: 1rem;
  }

  .links-floating-images {
    height: 260px;
  }

  .links-float-img {
    border-width: 0.6rem;
    border-radius: 1.25rem;
  }
}

@media screen and (min-width: 992px) {
  .links-page {
    padding: 4rem 1rem;
  }

  .links-wrapper {
    max-width: 420px;
  }
}
