/* =========================================================
   HOME / LINKTREE — página inicial (index.html)
   Estilo próprio, totalmente responsivo (mobile-first).
   ========================================================= */

:root {
  --hue: 210;
  --primary: hsl(var(--hue), 69%, 55%);
  --primary-dark: hsl(var(--hue), 57%, 45%);
  --bg-grad-1: hsl(var(--hue), 70%, 96%);
  --bg-grad-2: hsl(var(--hue), 60%, 88%);
  --text: hsl(var(--hue), 12%, 20%);
  --muted: hsl(var(--hue), 10%, 45%);
  --card: rgba(255, 255, 255, 0.85);
  --border: rgba(0, 0, 0, 0.06);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
  --radius: 16px;
  --font: 'Poppins', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(160deg, var(--bg-grad-1) 0%, var(--bg-grad-2) 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 3rem) 1rem 5rem;
}

img { max-width: 100%; height: auto; display: block; }

/* Logo da marca no topo */
/* Marca: ícone + wordmark (texto HTML, sem caixa) */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}
.brand__icon { height: 64px; width: auto; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.04; }
.brand__name {
  font-size: clamp(1.4rem, 6vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #2e8be6;
  margin: 0;
}
.brand__tag {
  align-self: flex-end;
  font-size: clamp(0.7rem, 2.6vw, 0.86rem);
  letter-spacing: 0.22em;
  text-transform: lowercase;
  font-weight: 500;
  color: var(--text);
}

/* Cartão central (linktree) */
.home-linktree {
  width: 100%;
  max-width: 480px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2rem);
}

/* Perfil */
.profile {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.profile__img {
  width: clamp(110px, 30vw, 150px);
  height: clamp(110px, 30vw, 150px);
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease;
}
.profile__img:hover { transform: scale(1.05); }

.profile__name {
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  font-weight: 700;
  color: var(--text);
}

.profile__description {
  font-size: clamp(0.9rem, 3vw, 1rem);
  color: var(--muted);
  font-weight: 500;
  max-width: 30ch;
}

/* Lista de links */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.link-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: clamp(0.95rem, 3vw, 1.05rem);
  font-weight: 600;
  text-align: center;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.link-item i { font-size: 1.15em; }

.link-item:hover,
.link-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
  outline: none;
}

.link-item--primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}
.link-item--primary:hover { background: var(--primary-dark); }

.link-item--secondary:hover,
.link-item--tertiary:hover {
  background: #fff;
  color: var(--primary);
}

/* CTA em destaque (Calculadora de Arbitragem) — visualmente distinto */
.link-item--cta {
  background: linear-gradient(135deg, #0f9b8e 0%, #16c79a 100%);
  color: #fff;
  border: none;
  font-weight: 700;
}
.link-item--cta:hover { filter: brightness(1.05); }
.link-item--cta::after {
  content: "ferramenta";
  position: absolute;
  top: -8px;
  right: 12px;
  background: #ff5722;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.link-item { position: relative; min-height: 52px; }

/* Ícones sociais */
.social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 0.25rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.3rem;
  color: var(--primary);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.social-icon:hover,
.social-icon:focus-visible {
  transform: translateY(-4px);
  background: var(--primary);
  color: #fff;
  outline: none;
}

/* ===== Resultados recentes (autoridade) ===== */
.destaques {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.1rem 1.25rem;
}
.destaques__titulo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.destaques__titulo i { color: #f1a02e; }
.destaques__lista { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.destaques__lista li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text);
}
.destaques__lista li > span:nth-child(2) { flex: 1; }
.destaques__medal { font-size: 1.05rem; }
.destaques__ano {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(127,127,127,.12);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ===== Instagram (prova social + conversão) ===== */
.ig {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.ig__teaser {
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
  max-width: 36ch;
}
.ig__feed {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.ig__tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bg-grad-2);
}
.ig__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.ig__tile-ic {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  opacity: 0;
  background: rgba(0,0,0,.28);
  transition: opacity 0.3s ease;
}
.ig__tile:hover img,
.ig__tile:focus-visible img { transform: scale(1.08); }
.ig__tile:hover .ig__tile-ic,
.ig__tile:focus-visible .ig__tile-ic { opacity: 1; }

.ig__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  /* Gradiente da marca Instagram */
  background: linear-gradient(95deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
  box-shadow: 0 8px 22px rgba(214, 41, 118, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.ig__btn i { font-size: 1.3rem; }
.ig__btn:hover,
.ig__btn:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.04);
  box-shadow: 0 12px 30px rgba(214, 41, 118, 0.45);
  outline: none;
}

/* Link discreto do admin (engrenagem) */
.admin-link {
  position: fixed;
  bottom: 12px;
  right: 14px;
  color: rgba(80, 90, 100, 0.45);
  font-size: 1.1rem;
  z-index: 10;
  transition: color 0.2s ease;
}
.admin-link:hover { color: rgba(80, 90, 100, 0.9); }

/* Tema escuro (caso ativado em outra página e salvo no localStorage) */
body.dark-theme {
  --bg-grad-1: hsl(var(--hue), 28%, 14%);
  --bg-grad-2: hsl(var(--hue), 30%, 9%);
  --text: hsl(var(--hue), 8%, 92%);
  --muted: hsl(var(--hue), 8%, 65%);
  --card: rgba(40, 48, 58, 0.85);
  --border: rgba(255, 255, 255, 0.08);
}

/* Telas maiores: alinha ao topo (conteúdo pode passar da altura da tela) */
@media screen and (min-width: 768px) {
  body { justify-content: flex-start; }
}

/* Botão desabilitado (em construção) */
.link-item--soon {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}
.link-item__tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(127, 127, 127, 0.2);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 999px;
}
