/* ==========================================================================
   LEOPARDUS AGENCY - ESTILOS VISUAIS MODERNOS (CSS PURO)
   Identidade: Fundo Grafite Quase Preto, Acentos em Laranja/Amarelo e Vidro Fosco
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variáveis e Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Cores Base */
  --bg-base: #0B0C0E;
  --bg-surface: rgba(18, 20, 26, 0.75);
  --bg-surface-hover: rgba(26, 29, 38, 0.90);
  --bg-surface-active: rgba(32, 36, 48, 0.95);

  /* Degradê da Marca (Extraído fielmente da logo da Leopardus Agency) */
  --brand-orange: #FF3D00;
  --brand-amber: #FF8A00;
  --brand-yellow: #FFC107;
  --brand-gradient: linear-gradient(135deg, #FF3D00 0%, #FF8A00 52%, #FFC107 100%);
  --brand-gradient-hover: linear-gradient(135deg, #FF4F14 0%, #FF991A 52%, #FFCB24 100%);
  --brand-gradient-subtle: linear-gradient(135deg, rgba(255, 61, 0, 0.12) 0%, rgba(255, 138, 0, 0.08) 50%, rgba(255, 193, 7, 0.05) 100%);

  /* Bordas e Sombras */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 138, 0, 0.35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 8px 24px -4px rgba(0, 0, 0, 0.5), 0 2px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 16px 32px -6px rgba(0, 0, 0, 0.65), 0 0 20px -2px rgba(255, 110, 0, 0.22);
  --shadow-featured: 0 12px 30px -4px rgba(255, 75, 0, 0.28), 0 0 18px 0 rgba(255, 193, 7, 0.15);

  /* Tipografia */
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --text-white: #FFFFFF;
  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-muted: #8E9BAE;

  /* Raio de Arredondamento */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transições Suaves */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset e Configurações Globais
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Cor de seleção de texto personalizada com a identidade da marca */
::selection {
  background-color: var(--brand-orange);
  color: #FFFFFF;
}

::-moz-selection {
  background-color: var(--brand-orange);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Barra de Rolagem Personalizada com o Degradê da Marca
   -------------------------------------------------------------------------- */
/* Suporte padrão para Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--brand-amber) var(--bg-base);
}

/* Suporte para Chrome, Edge, Safari, Opera e navegadores baseados em Chromium */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-orange) 0%, var(--brand-amber) 52%, var(--brand-yellow) 100%);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-base);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #FF4F14 0%, #FF991A 52%, #FFCB24 100%);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem 3rem;
}

/* --------------------------------------------------------------------------
   3. Acessibilidade & Focus
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--brand-amber);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255, 138, 0, 0.25);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --------------------------------------------------------------------------
   4. Efeitos de Fundo (Ambient Glows)
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(100px);
  opacity: 0.55;
}

.ambient-glow-top {
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 61, 0, 0.25) 0%, rgba(255, 138, 0, 0.15) 45%, transparent 70%);
}

.ambient-glow-bottom {
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.12) 0%, rgba(255, 94, 0, 0.08) 50%, transparent 70%);
}

/* --------------------------------------------------------------------------
   5. Estrutura do Layout
   -------------------------------------------------------------------------- */
.top-nav {
  width: 100%;
  max-width: 580px;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 10;
  margin-bottom: 0.75rem;
}

.action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.action-btn .icon {
  width: 18px;
  height: 18px;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.container {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   6. Cabeçalho de Perfil (Logo, Nome e Bio)
   -------------------------------------------------------------------------- */
.profile-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.logo-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.logo-glow {
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-full);
  background: var(--brand-gradient);
  filter: blur(14px);
  opacity: 0.45;
  transition: opacity var(--transition-normal);
  z-index: -1;
}

.logo-wrapper:hover .logo-glow {
  opacity: 0.75;
  filter: blur(18px);
}

.profile-logo {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-full);
  object-fit: contain;
  background-color: #121316;
  border: 2px solid rgba(255, 138, 0, 0.3);
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.7);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
  display: block;
}

.logo-wrapper:hover .profile-logo {
  transform: scale(1.03);
  border-color: rgba(255, 193, 7, 0.65);
}

.profile-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.profile-handle {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--brand-amber);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

/* Badge de Status ("Disponível para novos projetos") */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981; /* Verde elegante para indicar atividade */
  box-shadow: 0 0 10px #10B981;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}

.profile-bio {
  font-size: 0.96rem;
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.55;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   7. Seção de Links & Cartões
   -------------------------------------------------------------------------- */
.links-section {
  width: 100%;
}

.links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.link-item {
  width: 100%;
}

/* Card Padrão de Link */
.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 66px;
  padding: 0.9rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--transition-fast), 
              border-color var(--transition-fast), 
              background-color var(--transition-fast), 
              box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-gradient-subtle);
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

/* Conteúdo interno do Link */
.link-main {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  min-width: 0; /* Previne overflow de textos longos */
}

.link-icon-box {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.link-icon-box svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  transition: transform var(--transition-fast);
}

.link-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.link-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.link-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.link-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition-fast);
}

.link-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--brand-gradient);
  color: #0B0C0E;
}

/* Ícone de Flecha Externa */
.link-arrow {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), color var(--transition-fast);
  min-width: 20px;
}

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

/* Estados de Hover e Toque (Desktop e Mobile) */
.link-card:hover {
  transform: translateY(-2px);
  background-color: var(--bg-surface-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

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

.link-card:hover .link-icon-box {
  background: rgba(255, 138, 0, 0.15);
  border-color: rgba(255, 138, 0, 0.35);
  color: var(--brand-yellow);
  transform: scale(1.06);
}

.link-card:hover .link-title {
  color: var(--text-white);
}

.link-card:hover .link-desc {
  color: var(--text-secondary);
}

.link-card:hover .link-arrow {
  color: var(--brand-amber);
  transform: translate(2px, -2px);
}

.link-card:active {
  transform: translateY(0);
  background-color: var(--bg-surface-active);
}

/* --------------------------------------------------------------------------
   8. Variação: Link em Destaque Especial (Ex: WhatsApp / Contato Principal)
   -------------------------------------------------------------------------- */
.link-card.featured {
  background: linear-gradient(135deg, rgba(255, 61, 0, 0.18) 0%, rgba(25, 27, 34, 0.88) 45%, rgba(255, 193, 7, 0.08) 100%);
  border: 1px solid rgba(255, 138, 0, 0.45);
  box-shadow: var(--shadow-featured);
}

.link-card.featured::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--brand-gradient);
}

.link-card.featured .link-icon-box {
  background: var(--brand-gradient);
  color: #0B0C0E;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(255, 61, 0, 0.35);
}

.link-card.featured:hover {
  border-color: rgba(255, 193, 7, 0.7);
  box-shadow: 0 16px 36px -4px rgba(255, 75, 0, 0.38), 0 0 24px rgba(255, 193, 7, 0.25);
}

.link-card.featured:hover .link-icon-box {
  transform: scale(1.08) rotate(-3deg);
}

/* --------------------------------------------------------------------------
   9. Rodapé Discreto
   -------------------------------------------------------------------------- */
.page-footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-tagline {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.4rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   10. Notificação Toast
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(22, 24, 30, 0.95);
  color: var(--text-white);
  border: 1px solid rgba(255, 138, 0, 0.4);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 138, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.toast-icon {
  width: 18px;
  height: 18px;
  color: var(--brand-yellow);
}

/* --------------------------------------------------------------------------
   11. Preferência do Usuário por Movimento Reduzido (Acessibilidade)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .status-dot {
    animation: none;
  }

  .link-card:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   12. Adaptações Responsivas
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  body {
    padding: 1rem 0.85rem 2.5rem;
  }

  .profile-logo {
    width: 96px;
    height: 96px;
  }

  .profile-title {
    font-size: 1.5rem;
  }

  .profile-bio {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }

  .link-card {
    padding: 0.85rem 1rem;
    min-height: 62px;
  }

  .link-icon-box {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .link-icon-box svg {
    width: 20px;
    height: 20px;
  }

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

  .link-desc {
    font-size: 0.78rem;
  }
}

/* Cor de seleção de texto personalizada com a identidade da marca */
::selection {
  background-color: var(--brand-orange); /* Laranja da logo (#FF3D00) */
  color: #FFFFFF;
}
::-moz-selection {
  background-color: var(--brand-orange);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Barra de Rolagem Personalizada com o Degradê da Marca
   -------------------------------------------------------------------------- */
/* Suporte padrão para Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--brand-amber) var(--bg-base);
}

/* Suporte para Chrome, Edge, Safari, Opera e Chromium */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base); /* Fundo escuro idêntico ao da página */
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-orange) 0%, var(--brand-amber) 52%, var(--brand-yellow) 100%);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-base); /* Respiro visual elegante */
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #FF4F14 0%, #FF991A 52%, #FFCB24 100%);
}