/* 
 * BioLink Generator — Styles
 * Custom UI styling, device frame dimensions, animations, and custom scrollbars.
 */

/* Custom Clean Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Subtle Interactive Animations */
.link-card-transition {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-card-transition:hover {
  transform: translateY(-2px);
}

.link-card-transition:active {
  transform: scale(0.98);
}

/* Device Mockup Viewport Responsiveness */
.mockup-viewport {
  height: 640px;
  max-height: calc(100vh - 175px);
}

@media (max-height: 800px) {
  .mockup-viewport {
    height: 540px;
  }
}

@media (max-height: 680px) {
  .mockup-viewport {
    height: 460px;
  }
}

/* Avatar camera hover indicator */
.avatar-hover-overlay {
  transition: opacity 0.2s ease-in-out;
}

/* Custom form transitions */
input, select, button {
  transition-property: color, background-color, border-color, box-shadow, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Modal and Dropdown animations */
@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#auth-modal > div,
#bio-manager-modal > div,
#new-bio-modal > div,
#tier-limit-modal > div {
  animation: modalPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
