/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --cor1: #D4A24E;    /* Dourado quente */
  --cor2: #8B2500;    /* Vermelho queimado */
  --cor3: #1A0A00;    /* Marrom escuro profundo */
  --cor1-light: #F0C97A;
  --cor2-light: #C44D2A;
  --cor3-light: #3A2010;
  --glass-bg: rgba(26, 10, 0, 0.55);
  --glass-border: rgba(212, 162, 78, 0.25);
  --text-primary: #FFF5E6;
  --text-secondary: rgba(255, 245, 230, 0.7);
  --shadow-glow: 0 0 30px rgba(212, 162, 78, 0.3);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ===== BODY / BACKGROUND ===== */
body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  background: var(--cor3);
}

/* Imagem de fundo com overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('bg.png') center/cover no-repeat;
  filter: blur(3px) brightness(0.35);
  z-index: 0;
  transform: scale(1.05);
}

/* Gradiente overlay sobre a imagem */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(212, 162, 78, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at bottom, rgba(139, 37, 0, 0.2) 0%, transparent 60%),
    linear-gradient(180deg, rgba(26, 10, 0, 0.7) 0%, rgba(26, 10, 0, 0.4) 50%, rgba(26, 10, 0, 0.8) 100%);
  z-index: 1;
}

/* ===== PARTÍCULAS / ELEMENTOS FLUTUANTES ===== */
.floating-elements {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.floating-element {
  position: absolute;
  font-size: 2rem;
  opacity: 0.12;
  animation: floatAround 20s infinite ease-in-out;
  filter: drop-shadow(0 0 10px rgba(212, 162, 78, 0.4));
}

.floating-element:nth-child(1) {
  top: 8%;
  left: 5%;
  font-size: 2.5rem;
  animation-duration: 18s;
  animation-delay: 0s;
}
.floating-element:nth-child(2) {
  top: 15%;
  right: 8%;
  font-size: 1.8rem;
  animation-duration: 22s;
  animation-delay: -3s;
}
.floating-element:nth-child(3) {
  top: 40%;
  left: 3%;
  font-size: 2.2rem;
  animation-duration: 25s;
  animation-delay: -6s;
}
.floating-element:nth-child(4) {
  top: 60%;
  right: 5%;
  font-size: 1.6rem;
  animation-duration: 19s;
  animation-delay: -9s;
}
.floating-element:nth-child(5) {
  top: 80%;
  left: 10%;
  font-size: 2rem;
  animation-duration: 23s;
  animation-delay: -12s;
}
.floating-element:nth-child(6) {
  top: 25%;
  left: 85%;
  font-size: 1.4rem;
  animation-duration: 21s;
  animation-delay: -4s;
}
.floating-element:nth-child(7) {
  top: 70%;
  left: 80%;
  font-size: 2.3rem;
  animation-duration: 26s;
  animation-delay: -7s;
}
.floating-element:nth-child(8) {
  top: 50%;
  left: 50%;
  font-size: 1.5rem;
  animation-duration: 17s;
  animation-delay: -2s;
}

@keyframes floatAround {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(30px, -40px) rotate(15deg) scale(1.1);
  }
  50% {
    transform: translate(-20px, -60px) rotate(-10deg) scale(0.95);
  }
  75% {
    transform: translate(25px, -20px) rotate(8deg) scale(1.05);
  }
}

/* Partículas de luz */
.light-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--cor1);
  border-radius: 50%;
  opacity: 0;
  animation: sparkle 4s infinite ease-in-out;
}

.light-particle:nth-child(9)  { top: 10%; left: 20%; animation-delay: 0s; }
.light-particle:nth-child(10) { top: 30%; left: 70%; animation-delay: 0.8s; }
.light-particle:nth-child(11) { top: 50%; left: 40%; animation-delay: 1.6s; }
.light-particle:nth-child(12) { top: 70%; left: 80%; animation-delay: 2.4s; }
.light-particle:nth-child(13) { top: 85%; left: 15%; animation-delay: 3.2s; }
.light-particle:nth-child(14) { top: 20%; left: 90%; animation-delay: 1.2s; }
.light-particle:nth-child(15) { top: 65%; left: 30%; animation-delay: 2s; }

@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0) translateY(0);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.5) translateY(-20px);
    box-shadow: 0 0 12px var(--cor1), 0 0 24px rgba(212, 162, 78, 0.4);
  }
}

/* ===== CONTAINER PRINCIPAL ===== */
.linktree-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 480px;
  padding: 40px 24px 50px;
  margin: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: containerFadeIn 1s ease-out;
}

@keyframes containerFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== LOGO / AVATAR ===== */
.logo-wrapper {
  position: relative;
  margin-bottom: 28px;
  animation: logoFloat 4s ease-in-out infinite;
}

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

.logo-glow {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 162, 78, 0.4) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.logo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--cor1);
  border-right-color: var(--cor1-light);
  animation: ringRotate 6s linear infinite;
}

@keyframes ringRotate {
  to {
    transform: rotate(360deg);
  }
}

.logo-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-bottom-color: var(--cor2-light);
  border-left-color: var(--cor2);
  animation: ringRotate 4s linear infinite reverse;
}

.logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--cor1);
  box-shadow:
    0 0 20px rgba(212, 162, 78, 0.4),
    0 0 40px rgba(212, 162, 78, 0.15),
    inset 0 0 20px rgba(0, 0, 0, 0.3);
  background: var(--cor3);
  position: relative;
  padding: 15px;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@keyframes logoImgPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ===== INFORMAÇÕES DO PERFIL ===== */
.profile-info {
  text-align: center;
  margin-bottom: 36px;
  animation: fadeSlideUp 0.8s ease-out 0.3s both;
}

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

.profile-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-shadow: 0 2px 12px rgba(212, 162, 78, 0.3);
  letter-spacing: 0.5px;
}

.profile-name .highlight {
  color: var(--cor1);
  position: relative;
}

.profile-name .highlight::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cor1), transparent);
  animation: shimmerLine 3s ease-in-out infinite;
}

@keyframes shimmerLine {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.profile-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.profile-tagline {
  font-size: 0.85rem;
  color: var(--cor1-light);
  font-weight: 400;
  font-style: italic;
  opacity: 0.85;
}

/* Separador decorativo */
.separator {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cor1), transparent);
  margin: 0 auto 36px;
  position: relative;
  animation: fadeSlideUp 0.8s ease-out 0.5s both;
}

.separator::before {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--cor1);
  font-size: 0.7rem;
  animation: rotateStar 8s linear infinite;
}

@keyframes rotateStar {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== LINKS / BOTÕES ===== */
.links-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.link-item {
  animation: fadeSlideUp 0.6s ease-out both;
}

.link-item:nth-child(1) { animation-delay: 0.6s; }
.link-item:nth-child(2) { animation-delay: 0.75s; }
.link-item:nth-child(3) { animation-delay: 0.9s; }
.link-item:nth-child(4) { animation-delay: 1.05s; }
.link-item:nth-child(5) { animation-delay: 1.2s; }

.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 22px;
  text-decoration: none;
  color: var(--text-primary);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;

  /* Glassmorphism */
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  /* 3D transform */
  transform: perspective(800px) rotateX(0deg) translateZ(0);
  transform-style: preserve-3d;
}

/* Efeito de brilho passando */
.link-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 162, 78, 0.12),
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 1;
}

/* Linha de borda inferior animada */
.link-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cor1), var(--cor2-light), var(--cor1));
  transition: width 0.4s ease;
}

.link-btn:hover {
  transform: perspective(800px) rotateX(-2deg) translateY(-4px) translateZ(10px);
  border-color: rgba(212, 162, 78, 0.5);
  box-shadow:
    0 12px 40px rgba(212, 162, 78, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: rgba(26, 10, 0, 0.7);
}

.link-btn:hover::before {
  left: 100%;
}

.link-btn:hover::after {
  width: 100%;
}

.link-btn:active {
  transform: perspective(800px) rotateX(0deg) translateY(-1px) translateZ(5px);
  transition-duration: 0.1s;
}

/* Ícone do botão */
.link-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
  background: linear-gradient(135deg, rgba(212, 162, 78, 0.15), rgba(139, 37, 0, 0.15));
  border: 1px solid rgba(212, 162, 78, 0.2);
}

.link-btn:hover .link-icon {
  transform: rotateY(360deg) scale(1.1);
  background: linear-gradient(135deg, rgba(212, 162, 78, 0.3), rgba(139, 37, 0, 0.3));
  border-color: rgba(212, 162, 78, 0.5);
  box-shadow: 0 0 15px rgba(212, 162, 78, 0.3);
}

/* Texto do botão */
.link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 2;
  flex: 1;
}

.link-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.link-btn:hover .link-title {
  color: var(--cor1-light);
}

.link-description {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 300;
  transition: color 0.3s ease;
}

.link-btn:hover .link-description {
  color: rgba(255, 245, 230, 0.85);
}

/* Seta indicadora */
.link-arrow {
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.link-btn:hover .link-arrow {
  color: var(--cor1);
  transform: translateX(4px);
}

/* ===== CORES ESPECÍFICAS POR BOTÃO ===== */
.link-btn.whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.5);
  box-shadow:
    0 12px 40px rgba(37, 211, 102, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.link-btn.whatsapp:hover .link-icon {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.25), rgba(18, 140, 60, 0.25));
  border-color: rgba(37, 211, 102, 0.5);
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
}
.link-btn.whatsapp:hover .link-title {
  color: #5AE88A;
}
.link-btn.whatsapp:hover::after {
  background: linear-gradient(90deg, #25D366, #128C3C, #25D366);
}

.link-btn.ifood:hover {
  border-color: rgba(234, 29, 37, 0.5);
  box-shadow:
    0 12px 40px rgba(234, 29, 37, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.link-btn.ifood:hover .link-icon {
  background: linear-gradient(135deg, rgba(234, 29, 37, 0.25), rgba(180, 20, 25, 0.25));
  border-color: rgba(234, 29, 37, 0.5);
  box-shadow: 0 0 15px rgba(234, 29, 37, 0.3);
}
.link-btn.ifood:hover .link-title {
  color: #FF6B6B;
}
.link-btn.ifood:hover::after {
  background: linear-gradient(90deg, #EA1D25, #B41419, #EA1D25);
}

.link-btn.food99:hover {
  border-color: rgba(255, 193, 7, 0.5);
  box-shadow:
    0 12px 40px rgba(255, 193, 7, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.link-btn.food99:hover .link-icon {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.25), rgba(200, 150, 5, 0.25));
  border-color: rgba(255, 193, 7, 0.5);
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
}
.link-btn.food99:hover .link-title {
  color: #FFD54F;
}
.link-btn.food99:hover::after {
  background: linear-gradient(90deg, #FFC107, #C89605, #FFC107);
}

.link-btn.delivery:hover {
  border-color: rgba(255, 152, 0, 0.5);
  box-shadow:
    0 12px 40px rgba(255, 152, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.link-btn.delivery:hover .link-icon {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.25), rgba(200, 120, 0, 0.25));
  border-color: rgba(255, 152, 0, 0.5);
  box-shadow: 0 0 15px rgba(255, 152, 0, 0.3);
}
.link-btn.delivery:hover .link-title {
  color: #FFB74D;
}
.link-btn.delivery:hover::after {
  background: linear-gradient(90deg, #FF9800, #C87800, #FF9800);
}

.link-btn.location:hover {
  border-color: rgba(66, 133, 244, 0.5);
  box-shadow:
    0 12px 40px rgba(66, 133, 244, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.link-btn.location:hover .link-icon {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.25), rgba(40, 100, 200, 0.25));
  border-color: rgba(66, 133, 244, 0.5);
  box-shadow: 0 0 15px rgba(66, 133, 244, 0.3);
}
.link-btn.location:hover .link-title {
  color: #82B1FF;
}
.link-btn.location:hover::after {
  background: linear-gradient(90deg, #4285F4, #2864C8, #4285F4);
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 40px;
  text-align: center;
  animation: fadeSlideUp 0.8s ease-out 1.5s both;
}

.footer-text {
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.5;
}

.footer-heart {
  color: var(--cor2-light);
  display: inline-block;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(1); }
  75% { transform: scale(1.15); }
}

/* ===== HORÁRIO DE FUNCIONAMENTO ===== */
.schedule-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(212, 162, 78, 0.1);
  border: 1px solid rgba(212, 162, 78, 0.2);
  margin-bottom: 30px;
  animation: fadeSlideUp 0.8s ease-out 0.45s both;
}

.schedule-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  animation: dotBlink 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.schedule-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 520px) {
  .linktree-container {
    padding: 30px 16px 40px;
    margin: 10px;
  }

  .logo {
    width: 125px;
    height: 125px;
    font-size: 2.8rem;
  }

  .profile-name {
    font-size: 1.6rem;
  }

  .profile-subtitle {
    font-size: 0.82rem;
  }

  .link-btn {
    padding: 14px 18px;
    gap: 12px;
  }

  .link-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    border-radius: 10px;
  }

  .link-title {
    font-size: 0.92rem;
  }

  .link-description {
    font-size: 0.7rem;
  }

  .links-container {
    gap: 12px;
  }

  .floating-element {
    font-size: 1.5rem;
  }
}

@media (max-width: 360px) {
  .profile-name {
    font-size: 1.4rem;
  }

  .logo {
    width: 110px;
    height: 110px;
  }

  .link-btn {
    padding: 12px 14px;
  }
}

/* ===== ACESSIBILIDADE - Redução de movimento ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
