/*!
 * Wedding Layout - Desktop Styles
 * Optimized for screens >= 769px
 * Base reference: 1920x1080
 */

/* Desktop-specific layout */
#names {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  top: 5vh;
  animation: namesEnter 1.2s ease-out forwards;
}

#noivos {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  top: calc(5vh + 13vw + 5vh); /* Reduced from 18vw to move noivos higher */
  opacity: 0;
  animation: noivosEnter 1.2s ease-out 0.3s forwards;
}

#simvaiacontecer {
  position: fixed;
  z-index: 5;
  opacity: 0;
  top: calc(5vh + 13vw + 2vh + 13vw); /* Increased top positioning */
  left: calc(55% + 3vw); /* Much less to the right */
  animation: badgeEnterDesktop 0.8s ease-out 2s forwards;
}

/* Desktop action bar */
#actionBar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

#rsvpBtn, #infoBtn {
  padding: 15px 25px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.9rem;
  user-select: none;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
}

#rsvpBtn:hover, #infoBtn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Desktop image sizing */
#names img {
  display: block;
  height: auto;
  width: 22vw; /* Reduced from 25vw for better proportions */
  max-width: 350px; /* Reduced from 400px */
  min-width: 280px;
}

#noivos img {
  display: block;
  height: auto;  
  width: 20vw;
  max-width: 320px;
  min-width: 240px;
}

#simvaiacontecer img {
  display: block;
  height: auto;
  width: 10vw;
  max-width: 180px;
  min-width: 140px;
}

/* Desktop modals */
#rsvpModal, #infoPanel {
  display: none;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  max-width: 800px;
  width: 90%;
  overflow-y: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 40px;
  box-shadow: none;
  text-align: center;
  color: #e7d5d5;
  top: calc(5vh + 15vw + 5vh); /* Just below names with adjusted sizing */
  bottom: 100px;
  max-height: calc(100vh - (5vh + 15vw + 5vh) - 120px);

  /* Fade mask */
  --fade-amount: 15%;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    black var(--fade-amount),
    black calc(100% - var(--fade-amount)),
    transparent
  );
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black var(--fade-amount),
    black calc(100% - var(--fade-amount)),
    transparent
  );
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  padding-bottom: 60px;
}

#infoPanel {
  text-align: left;
  color: white;
}

/* Desktop responsive adjustments */
@media (min-width: 1400px) {
  #names img {
    width: 25vw;
    max-width: 450px;
  }
  
  #noivos img {
    width: 20vw;
    max-width: 350px;
  }
  
  #simvaiacontecer img {
    width: 10vw;
    max-width: 200px;
  }
}

@media (min-width: 1920px) {
  #names {
    top: 5vh;
  }
  
  #names img {
    width: 22vw;
    max-width: 420px;
    min-width: 300px;
  }

  #noivos {
    top: calc(5vh + 420px * 0.6 + 30px);
  }

  #noivos img {
    width: 18vw;
    max-width: 350px;
    min-width: 280px;
  }

  #simvaiacontecer {
    top: 45vh;
    right: auto;
    left: calc(50% + 9vw); /* Match the main positioning */
    animation: badgeEnterDesktop 0.8s ease-out 2s forwards; /* Use same animation */
  }

  #simvaiacontecer img {
    width: 280px;
  }

  #rsvpModal, #infoPanel {
    top: calc(5vh + 420px * 0.6 + 5px);
    max-height: calc(100vh - (5vh + 420px * 0.6 + 5px) - 120px);
    width: 65vw;
    max-width: 1000px;
    padding: 32px;
  }
}

@media (min-width: 2560px) {
  #names {
    top: 6vh;
  }
  
  #names img {
    width: 450px;
    max-width: 450px;
  }

  #noivos {
    top: calc(6vh + 270px + 40px);
  }

  #noivos img {
    width: 380px;
    max-width: 380px;
  }

  #simvaiacontecer {
    top: 48vh;
  }

  #simvaiacontecer img {
    width: 320px;
  }

  #rsvpModal, #infoPanel {
    top: calc(6vh + 270px + 5px);
    max-height: calc(100vh - (6vh + 270px + 5px) - 120px);
    width: 55vw;
    max-width: 1400px;
  }
}

/* Desktop animations */
@keyframes badgeEnterDesktop {
  0% {
    opacity: 0;
    transform: translateX(50px) scale(0.8); /* Reduced from 100px */
  }
  100% {
    opacity: 0.9;
    transform: translateX(0) scale(1);
  }
}

@keyframes badgeEnterDesktopLarge {
  0% {
    right: -400px;
    opacity: 0;
  }
  100% {
    right: 20vw;
    opacity: 0.9;
  }
}