/* Reset e fonte moderna */
:root {
  /* Cores serão definidas dinamicamente pelo profile JSON */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Animações de entrada */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Classes para animações */
.animate-slide-left {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-right {
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 0.6s ease-out forwards;
}

/* Delays para sequenciamento */
.animate-delay-1 { animation-delay: 0.2s; }
.animate-delay-2 { animation-delay: 0.4s; }
.animate-delay-3 { animation-delay: 0.6s; }
.animate-delay-4 { animation-delay: 0.8s; }
.animate-delay-5 { animation-delay: 1.0s; }
.animate-delay-6 { animation-delay: 1.2s; }
.animate-delay-7 { animation-delay: 1.4s; }
.animate-delay-8 { animation-delay: 1.6s; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: 
    var(--background-image),
    linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  background-size: cover, 100% 100%;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  color: var(--secondary-color);
}

/* Container principal */
#biolink-content {
  background: transparent;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Avatar com efeito moderno */
.avatar-container {
  position: relative;
  margin-bottom: 1.5rem;
}

.avatar-container img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--secondary-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}

/* Nome e bio */
.profile-info {
  max-width: 80%;
}

.profile-info h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
  color: var(--secondary-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.verification-badge {
  width: 20px;
  height: 20px;
  align-self: center;
}

.profile-info p {
  font-size: 1rem;
  color: var(--secondary-color);
  opacity: 0.8;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 600;
}

/* Container do vídeo YouTube */
.video-container {
  width: 100%;
  max-width: 320px;
  margin-bottom: 2rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--secondary-color);
  border-opacity: 0.1;
  backdrop-filter: blur(10px);
}

.video-container iframe {
  width: 100%;
  border: none;
  display: block;
}

/* Container dos links */
.links-container {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Botões modernos com glassmorphism */
.link-btn {
  background: var(--primary-color);
  backdrop-filter: blur(10px);
  border: 1px solid var(--secondary-color);
  border-opacity: 0.2;
  border-radius: var(--button-border-radius, 25px);
  padding: 1rem 1.5rem;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.link-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1), 
    rgba(255, 255, 255, 0.05)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.link-btn:hover::before {
  opacity: 1;
}

.link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background: var(--primary-color);
  filter: brightness(1.1);
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  text-decoration: none;
}

.link-btn:active {
  transform: translateY(0);
  background: var(--primary-color);
  filter: brightness(0.9);
}

.link-btn i {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Ícones sociais na parte inferior */
.social-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
  justify-items: center;
  max-width: 75%;
  width: 100%;
}

.social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  opacity: 0.8;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon img {
  width: 44px;
  height: 44px;
  filter: brightness(0) invert(1) opacity(0.8);
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.social-icon:hover img {
  filter: brightness(0) invert(1) opacity(1) drop-shadow(0 4px 8px var(--secondary-color));
  transform: scale(1.1);
}

/* Frame de smartphone para desktop */
@media (min-width: 992px) {
  body {
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
  }
  
  .smartphone-frame {
    width: 375px;
    height: 812px;
    background: 
      url('/images/background/bg1.png'),
      linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    background-size: cover, 100% 100%;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
      0 0 0 8px #2c2c2c,
      0 0 0 12px #3a3a3a,
      0 20px 60px rgba(0, 0, 0, 0.4),
      inset 0 2px 4px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
  }
  
  .smartphone-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 6px;
    background: #333;
    border-radius: 3px;
    z-index: 10;
  }
  
  .smartphone-frame::after {
    content: '';
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #222;
    border-radius: 50%;
    z-index: 10;
  }
  
  #biolink-content {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow-y: auto;
    overflow-x: hidden;
    background: 
      var(--background-image),
      linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    background-size: cover, 100% 100%;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed;
    padding-top: 4rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  #biolink-content::-webkit-scrollbar {
    display: none;
  }
}

/* Responsividade mobile */
@media (max-width: 576px) {
  #biolink-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .links-container {
    max-width: 80%;
  }
  
  .link-btn {
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .profile-info h2 {
    font-size: 1.5rem;
  }
  
  .social-icons {
    gap: 1rem;
    max-width: 75%;
  }
  
  .social-icon {
    width: 40px;
    height: 40px;
  }
  
  .social-icon img {
    width: 40px;
    height: 40px;
  }
  
  .video-container {
    max-width: 80%;
  }
  
  .video-container iframe {
    height: 158px;
  }
}

/* Melhorias para acessibilidade */
@media (prefers-reduced-motion: reduce) {
  .link-btn,
  .social-icon {
    transition: none;
  }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 320px) {
  .links-container {
    max-width: 80%;
  }
  
  .link-btn {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
  }
}
