/* ==========================================================
   PÁGINA DE LINKS — GABRIEL VAZ / ALIANÇA 10K
   ========================================================== */

/* ---------- Variáveis da identidade visual ---------- */

:root {
  color-scheme: dark;

  --background-top: #111a2c;
  --background-bottom: #070d19;

  --surface: #141f34;
  --surface-hover: #192844;
  --surface-strong: #1d2d4c;

  --text-primary: #f5f7fb;
  --text-secondary: #aab5ca;
  --text-dark: #101827;

  --gold: #f4c542;
  --gold-dark: #d9a91f;
  --gold-light: #ffe184;
  --gold-transparent: rgba(244, 197, 66, 0.16);

  --green: #35c985;
  --border: #293752;
  --border-hover: #d9a91f;

  --font-sans:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  --font-title:
    Georgia,
    "Times New Roman",
    serif;

  --container-width: 460px;
  --card-radius: 16px;

  --shadow-card:
    0 12px 28px rgba(0, 0, 0, 0.22);

  --shadow-primary:
    0 14px 34px rgba(244, 197, 66, 0.22);
}

/* ---------- Reset básico ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;

  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;

  color: var(--text-primary);

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(244, 197, 66, 0.14),
      transparent 38rem
    ),
    radial-gradient(
      circle at 10% 60%,
      rgba(46, 91, 160, 0.12),
      transparent 30rem
    ),
    linear-gradient(
      180deg,
      var(--background-top) 0%,
      var(--background-bottom) 100%
    );

  background-attachment: fixed;

  padding:
    max(38px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(32px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
}

/* Luz decorativa de fundo */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  opacity: 0.3;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px
    );

  background-size: 42px 42px;

  mask-image:
    linear-gradient(
      to bottom,
      black,
      transparent 75%
    );
}

/* ---------- Estrutura principal ---------- */

.link-hub {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* ---------- Perfil ---------- */

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;

  margin-bottom: 30px;

  text-align: center;
}

/* Funciona sem adicionar uma classe à imagem */

.profile > img {
  display: block;

  width: 132px;
  height: 132px;
  margin: 0 0 18px;

  object-fit: cover;
  object-position: center top;

  border: 3px solid var(--gold);
  border-radius: 50%;

  background-color: var(--surface);

  box-shadow:
    0 0 0 6px rgba(244, 197, 66, 0.11),
    0 16px 38px rgba(0, 0, 0, 0.48);
}

.profile h1 {
  margin: 0;

  font-family: var(--font-title);
  font-size: clamp(1.9rem, 7vw, 2.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;

  color: var(--text-primary);
}

.profile .role {
  max-width: 420px;
  margin: 10px 0 0;

  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: 0.085em;
  text-transform: uppercase;

  color: var(--gold);
}

.profile .promise {
  max-width: 36ch;
  margin: 14px auto 0;

  font-size: 0.95rem;
  line-height: 1.55;

  color: var(--text-secondary);
}

.profile .proof {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  margin: 16px 0 0;
  padding: 7px 12px;

  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;

  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.045);

  border: 1px solid var(--border);
  border-radius: 999px;
}

.profile .proof::before {
  content: "✓";

  display: grid;
  place-items: center;

  width: 17px;
  height: 17px;

  font-size: 0.68rem;
  font-weight: 900;

  color: #07140e;
  background: var(--green);

  border-radius: 50%;
}

/* ---------- Navegação e seções ---------- */

nav[aria-label="Links principais"] {
  display: grid;
  gap: 26px;
}

nav section {
  display: grid;
  gap: 12px;
}

/* Títulos/separadores das seções */

nav section h2 {
  display: flex;
  align-items: center;
  gap: 10px;

  margin: 0 2px 2px;

  font-size: 0.67rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;

  color: var(--text-secondary);
}

nav section h2::before,
nav section h2::after {
  content: "";

  height: 1px;
  flex: 1;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--border)
    );
}

nav section h2::after {
  background:
    linear-gradient(
      90deg,
      var(--border),
      transparent
    );
}

/* ---------- Cartões de links ---------- */

.link-card {
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;

  min-height: 78px;
  padding: 16px 52px 16px 19px;

  color: var(--text-primary);
  text-decoration: none;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.018),
      transparent 65%
    ),
    var(--surface);

  border: 1px solid var(--border);
  border-radius: var(--card-radius);

  box-shadow:
    inset 3px 0 0 rgba(244, 197, 66, 0.28);

  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

/* Seta à direita */

.link-card::after {
  content: "›";

  position: absolute;
  top: 50%;
  right: 18px;

  transform: translateY(-52%);

  font-family: Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;

  color: var(--gold);

  transition:
    transform 160ms ease,
    color 160ms ease;
}

.link-card strong {
  display: block;

  margin: 0;

  font-size: 0.97rem;
  font-weight: 750;
  line-height: 1.3;

  color: var(--text-primary);
}

.link-card span {
  display: block;

  margin-top: 4px;

  font-size: 0.79rem;
  font-weight: 400;
  line-height: 1.4;

  color: var(--text-secondary);
}

/* Interações */

.link-card:hover {
  transform: translateY(-3px);

  background-color: var(--surface-hover);
  border-color: var(--border-hover);

  box-shadow:
    inset 3px 0 0 var(--gold),
    var(--shadow-card);
}

.link-card:hover::after {
  color: var(--gold-light);

  transform:
    translate(3px, -52%);
}

.link-card:active {
  transform: translateY(-1px);
}

.link-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- CTA principal ---------- */

.link-card.primary {
  min-height: 92px;
  padding-top: 21px;

  color: var(--text-dark);

  background:
    radial-gradient(
      circle at 85% 0%,
      rgba(255, 255, 255, 0.5),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      var(--gold-light) 0%,
      var(--gold) 52%,
      var(--gold-dark) 100%
    );

  border-color: var(--gold-light);

  box-shadow: var(--shadow-primary);
}

.link-card.primary::before {
  content: "PRINCIPAL";

  position: absolute;
  top: -11px;
  right: 16px;

  padding: 5px 10px;

  font-size: 0.61rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: var(--gold-light);
  background: var(--text-dark);

  border: 1px solid var(--gold);
  border-radius: 999px;

  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

.link-card.primary::after {
  color: var(--text-dark);
}

.link-card.primary strong {
  font-size: 1.04rem;
  color: var(--text-dark);
}

.link-card.primary span {
  color: rgba(16, 24, 39, 0.78);
}

.link-card.primary:hover {
  transform: translateY(-4px);

  border-color: #fff2ba;

  box-shadow:
    0 18px 42px rgba(244, 197, 66, 0.3);
}

/* ---------- Variação visual por objetivo ---------- */

/* Desempregado */

.link-card[href*="recarga-rapida"] {
  box-shadow:
    inset 3px 0 0 #f27a68;
}

/* Aliança 20K */

.link-card[href*="alianca-20k"] {
  box-shadow:
    inset 3px 0 0 var(--gold);
}

/* Vagas remotas */

.link-card[href*="vagas-remotas"] {
  box-shadow:
    inset 3px 0 0 var(--green);
}

/* Pod10K */

.link-card[href*="pod10k"] {
  box-shadow:
    inset 3px 0 0 #e45858;
}

/* ---------- Rodapé ---------- */

.link-hub footer {
  position: relative;

  margin-top: 34px;
  padding: 23px 10px 4px;

  font-size: 0.74rem;
  font-weight: 550;
  line-height: 1.6;
  letter-spacing: 0.025em;
  text-align: center;

  color: var(--text-secondary);
}

.link-hub footer::before {
  content: "";

  position: absolute;
  top: 0;
  left: 50%;

  width: 72px;
  height: 1px;

  transform: translateX(-50%);

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--gold),
      transparent
    );
}

/* ---------- Seleção de texto ---------- */

::selection {
  color: var(--text-dark);
  background: var(--gold);
}

/* ---------- Responsividade ---------- */

@media (max-width: 520px) {
  body {
    padding-top: max(26px, env(safe-area-inset-top));
    padding-right: max(14px, env(safe-area-inset-right));
    padding-bottom: max(28px, env(safe-area-inset-bottom));
    padding-left: max(14px, env(safe-area-inset-left));
  }

  .profile {
    margin-bottom: 27px;
  }

  .profile > img {
    width: 116px;
    height: 116px;
    margin-bottom: 16px;
  }

  .profile h1 {
    font-size: 1.9rem;
  }

  .profile .role {
    max-width: 350px;
    font-size: 0.7rem;
  }

  .profile .promise {
    max-width: 34ch;
    font-size: 0.9rem;
  }

  .link-card {
    min-height: 76px;
    padding: 15px 45px 15px 16px;

    border-radius: 14px;
  }

  .link-card.primary {
    min-height: 90px;
    padding-top: 20px;
  }

  .link-card strong {
    font-size: 0.93rem;
  }

  .link-card.primary strong {
    font-size: 0.99rem;
  }

  .link-card span {
    font-size: 0.77rem;
  }

  .link-card::after {
    right: 15px;
  }
}

/* Celulares muito pequenos */

@media (max-width: 350px) {
  body {
    padding-right: 10px;
    padding-left: 10px;
  }

  .profile .role {
    font-size: 0.66rem;
    letter-spacing: 0.055em;
  }

  .link-card {
    padding-right: 38px;
  }

  .link-card::after {
    right: 12px;
  }

  .link-card.primary::before {
    right: 10px;
  }
}

/* ---------- Acessibilidade: menos movimento ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .link-card:hover {
    transform: none;
  }

  .link-card:hover::after {
    transform: translateY(-52%);
  }
}

/* ---------- Alto contraste ---------- */

@media (forced-colors: active) {
  .profile > img,
  .profile .proof,
  .link-card,
  .link-card.primary {
    border: 2px solid currentColor;
  }

  .link-card:focus-visible {
    outline: 3px solid Highlight;
  }
}