/* ==========================================================================
   RAQUETE DE TÊNIS — LINKTREE OFICIAL
   Design: Premium, Esportivo, Tecnológico e Responsivo
   ========================================================================== */

/* 1. VARIÁVEIS E PALETA DE CORES OFICIAL */
:root {
  --bg-deep: #0b111a;
  --bg-surface: #101924;
  --bg-card: rgba(18, 28, 42, 0.72);
  --bg-card-hover: rgba(23, 37, 56, 0.92);
  --border-card: rgba(0, 174, 195, 0.22);
  --border-card-hover: rgba(0, 174, 195, 0.55);

  --primary: #005675;
  --primary-dark: #003F56;
  --secondary: #00AEC3;
  --secondary-glow: rgba(0, 174, 195, 0.35);
  --accent: #FF8A00;
  --accent-dark: #FF4D00;
  --accent-glow: rgba(255, 138, 0, 0.35);
  --cream: #FFF5CE;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-main);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* 3. FUNDO ESPORTIVO COM LINHAS E GLOW AMBIENTE */
.court-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Luzes radiais de atmosfera */
.court-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
}

.glow-top {
  width: 380px;
  height: 380px;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 174, 195, 0.35) 0%, rgba(0, 86, 117, 0.15) 55%, transparent 75%);
}

.glow-bottom {
  width: 440px;
  height: 440px;
  bottom: -150px;
  right: -80px;
  background: radial-gradient(circle, rgba(255, 138, 0, 0.2) 0%, rgba(0, 86, 117, 0.1) 60%, transparent 75%);
}

/* Linhas sutis inspiradas na quadra de tênis */
.court-line {
  position: absolute;
  pointer-events: none;
  opacity: 0.14;
}

.court-line-vertical {
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 174, 195, 0.8) 30%, rgba(0, 174, 195, 0.2) 80%, transparent 100%);
}

.court-line-diagonal {
  width: 140%;
  height: 1px;
  top: 40%;
  left: -20%;
  transform: rotate(-12deg);
  background: linear-gradient(90deg, transparent 0%, rgba(0, 174, 195, 0.5) 40%, rgba(255, 138, 0, 0.4) 60%, transparent 100%);
}

/* 4. BARRA SUPERIOR E BOTÃO DE COMPARTILHAMENTO */
.top-bar {
  width: 100%;
  max-width: 520px;
  display: flex;
  justify-content: flex-end;
  padding: 16px 20px 0 20px;
  position: relative;
  z-index: 10;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(18, 28, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-share:hover {
  color: var(--text-main);
  background: rgba(26, 40, 58, 0.85);
  border-color: rgba(0, 174, 195, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-share:active {
  transform: scale(0.96);
}

.icon-share {
  width: 15px;
  height: 15px;
}

/* 5. CONTAINER PRINCIPAL DO LINKTREE */
.linktree-container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 10px 18px 40px 18px;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
}

/* 6. CABEÇALHO DO PERFIL */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}

.logo-wrapper {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-wrapper a {
  display: block;
  text-decoration: none;
  transition: transform var(--transition-base), filter var(--transition-base);
}

.logo-wrapper a:hover {
  transform: scale(1.03);
}

.brand-logo {
  max-width: 240px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(0, 174, 195, 0.28));
  transition: filter var(--transition-base);
}

.logo-wrapper a:hover .brand-logo {
  filter: drop-shadow(0 6px 22px rgba(0, 174, 195, 0.5));
}

.title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00AEC3 0%, #005675 100%);
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(0, 174, 195, 0.5);
  flex-shrink: 0;
}

.verified-badge svg {
  width: 12px;
  height: 12px;
}

.brand-description {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.55;
  margin: 0 auto;
}

/* 7. SEÇÃO DE BOTÕES / LINKS */
.links-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.tree-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 500px;
  min-height: 62px;
  margin: 0 auto;
  padding: 13px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), 
              background-color var(--transition-fast), 
              border-color var(--transition-fast), 
              box-shadow var(--transition-fast);
}

/* Efeito sutil de reflexo atlético no hover */
.tree-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.tree-link:hover::before {
  left: 150%;
}

.tree-link:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 174, 195, 0.22), 0 4px 8px rgba(0, 0, 0, 0.35);
}

.tree-link:active {
  transform: scale(0.98) translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Conteúdo Esquerdo do Botão */
.link-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.link-icon {
  font-size: 1.45rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 174, 195, 0.12);
  border: 1px solid rgba(0, 174, 195, 0.2);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-bounce), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.tree-link:hover .link-icon {
  transform: scale(1.1) rotate(6deg);
  background: rgba(0, 174, 195, 0.22);
}

/* Ícone com Imagem Fotográfica */
.link-icon-img {
  padding: 0;
  border: 1.5px solid rgba(0, 174, 195, 0.4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  background: #ffffff;
}

.btn-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 10px;
  transition: transform var(--transition-bounce);
}

.tree-link:hover .link-icon-img {
  transform: scale(1.08);
  border-color: var(--secondary);
  box-shadow: 0 0 16px rgba(0, 174, 195, 0.55);
}

.tree-link:hover .link-icon-img .btn-thumb-img {
  transform: scale(1.08);
}

.link-text-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.link-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.3;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Seta Direita do Botão */
.link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-dim);
  flex-shrink: 0;
  margin-left: 8px;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.link-arrow svg {
  width: 18px;
  height: 18px;
}

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

/* 8. BOTÃO 6: GRUPO DE OFERTAS (EM BREVE - ESTILIZAÇÃO DIFERENCIADA) */
.tree-link-disabled {
  background: rgba(14, 20, 30, 0.65);
  border: 1px dashed rgba(255, 138, 0, 0.4);
  cursor: pointer;
  position: relative;
}

.tree-link-disabled::before {
  display: none;
}

.tree-link-disabled .flame-icon {
  background: rgba(255, 138, 0, 0.12);
  border-color: rgba(255, 138, 0, 0.3);
}

.tree-link-disabled:hover {
  background: rgba(20, 26, 38, 0.85);
  border-color: rgba(255, 138, 0, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 138, 0, 0.18);
}

.tree-link-disabled:hover .flame-icon {
  background: rgba(255, 138, 0, 0.22);
  transform: scale(1.1) rotate(-6deg);
}

.title-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(255, 138, 0, 0.2) 0%, rgba(255, 77, 0, 0.25) 100%);
  border: 1px solid rgba(255, 138, 0, 0.5);
  color: #FFB366;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.arrow-disabled {
  color: rgba(255, 138, 0, 0.6);
}

.arrow-disabled svg {
  width: 17px;
  height: 17px;
}

.tree-link-disabled:hover .arrow-disabled {
  color: var(--accent);
  transform: rotate(15deg);
}

/* 9. RODAPÉ OFICIAL */
.tree-footer {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.footer-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 174, 195, 0.4), transparent);
  margin-bottom: 14px;
}

.copyright-line {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.01em;
}

.rights-line {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* 10. TOAST NOTIFICATION */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 36, 0.95);
  border: 1px solid rgba(0, 174, 195, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 174, 195, 0.25);
  z-index: 1000;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-bounce), opacity var(--transition-fast);
}

.toast-notification.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  font-size: 1.1rem;
}

/* 11. RESPONSIVIDADE (MOBILE-FIRST POLISH) */
@media (max-width: 480px) {
  .top-bar {
    padding: 12px 14px 0 14px;
  }

  .linktree-container {
    padding: 6px 14px 34px 14px;
  }

  .brand-logo {
    max-width: 210px;
  }

  .brand-title {
    font-size: 1.45rem;
  }

  .brand-description {
    font-size: 0.88rem;
    padding: 0 4px;
  }

  .tree-link {
    min-height: 58px;
    padding: 12px 15px;
    border-radius: 14px;
  }

  .link-icon {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

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

  .link-subtitle {
    font-size: 0.76rem;
  }

  .toast-notification {
    width: calc(100% - 32px);
    max-width: 380px;
    justify-content: center;
    text-align: center;
    bottom: 18px;
  }
}
