/* ==========================================================================
   links.css — Página inicial de links (tema console, sempre escuro)
   © @JottaCyber
   ========================================================================== */

:root {
  --c-bg: #050304;
  --c-panel: #0c0809;
  --c-panel-2: #120c0e;
  --c-line: #3a1a20;
  --c-red: #ff2a3d;
  --c-red-soft: #ff6b78;
  --c-red-dim: #8f1724;
  --c-ink: #f4e9ea;
  --c-muted: #a8898e;
  --c-green: #4fca82;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.console {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255, 42, 61, .14), transparent 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(255, 42, 61, .06), transparent 60%),
    var(--c-bg);
  color: var(--c-ink); font-family: var(--mono); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
/* scanlines sutis */
body.console::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--c-red); outline-offset: 3px; border-radius: 6px; }

.hub {
  position: relative; z-index: 1;
  max-width: 1040px; margin-inline: auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100dvh;
}

/* ---- Janela de terminal ---- */
.term {
  border: 1px solid var(--c-line); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, var(--c-panel), var(--c-bg));
  box-shadow: 0 0 0 1px rgba(255,42,61,.05), 0 30px 80px -30px rgba(255,42,61,.35);
}
.term-bar {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: var(--c-panel-2); border-bottom: 1px solid var(--c-line);
}
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #3b2a2d; display: block; }
.dots i:first-child { background: var(--c-red); }
.term-title { font-size: 12px; color: var(--c-muted); flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lang-switch { display: flex; border: 1px solid var(--c-line); border-radius: 999px; overflow: hidden; flex: none; }
.lang-switch button {
  border: 0; background: transparent; color: var(--c-muted); cursor: pointer;
  font: 600 11px/1 var(--mono); padding: 7px 10px;
}
.lang-switch button:hover { color: var(--c-ink); }
.lang-switch button[aria-pressed="true"] { background: var(--c-red); color: #1a0508; }

.term-body { display: grid; grid-template-columns: 1fr; }

.cmd { margin: 0 0 14px; font-size: 13px; color: var(--c-ink); }
.cmd .p { color: var(--c-red); margin-right: 6px; }
.cmd.last { margin: 18px 0 0; color: var(--c-muted); }
.blink { color: var(--c-red); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- Perfil ---- */
.profile { padding: 26px 20px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.profile .cmd { align-self: flex-start; }
.avatar-wrap {
  width: 116px; height: 116px; border-radius: 50%; padding: 3px; margin-top: 4px;
  background: conic-gradient(from 200deg, var(--c-red), var(--c-red-dim), var(--c-red));
  box-shadow: 0 0 34px rgba(255,42,61,.35);
}
.avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 3px solid var(--c-bg); }
.name { margin: 16px 0 2px; font-size: 30px; font-weight: 700; letter-spacing: .02em; color: var(--c-red); text-shadow: 0 0 18px rgba(255,42,61,.45); }
.cursor { animation: blink 1.1s steps(1) infinite; margin-left: 2px; }
.role { margin: 0; color: var(--c-red-soft); font-size: 14px; }
.bio { margin: 10px 0 0; color: var(--c-muted); font-size: 13px; max-width: 34ch; }

.socials { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; justify-content: center; }
.socials a {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--c-line); background: var(--c-panel-2); color: var(--c-red);
  transition: transform .12s, background .12s, color .12s, border-color .12s, box-shadow .12s;
}
.socials a:hover { background: var(--c-red); color: #1a0508; border-color: var(--c-red); transform: translateY(-2px); box-shadow: 0 8px 22px -8px rgba(255,42,61,.7); }
.socials svg { width: 21px; height: 21px; fill: currentColor; display: block; }

/* ---- Links ---- */
.links { padding: 22px 16px 24px; border-top: 1px dashed var(--c-line); }
.link-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 14px; margin-bottom: 12px; min-height: 76px;
  border: 1px solid var(--c-red-dim); border-radius: 14px; background: rgba(255,42,61,.03);
  transition: transform .12s, background .12s, border-color .12s, box-shadow .12s;
}
.link-card:hover { border-color: var(--c-red); background: rgba(255,42,61,.09); transform: translateY(-2px); box-shadow: 0 12px 30px -16px rgba(255,42,61,.8); }
.link-card .idx { display: none; }
.link-card .ico {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,42,61,.12); color: var(--c-red); border: 1px solid var(--c-line);
}
.link-card .ico svg { width: 22px; height: 22px; fill: currentColor; }
.link-card .txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.link-card .t { font-weight: 600; color: var(--c-ink); font-size: 14.5px; }
.link-card .d { color: var(--c-muted); font-size: 12.5px; }
.link-card .go { color: var(--c-red); font-size: 18px; }

.link-card.site { background: var(--c-red); border-color: var(--c-red); }
.link-card.site .t { color: #1a0508; font-weight: 700; }
.link-card.site .d { color: #4a0d16; }
.link-card.site .ico { background: rgba(26,5,8,.15); color: #1a0508; border-color: rgba(26,5,8,.25); }
.link-card.site .go { color: #1a0508; }
.link-card.site:hover { background: var(--c-red-soft); border-color: var(--c-red-soft); }

.quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; font-size: 12.5px; }
.q-label { color: var(--c-red); margin-right: 2px; }
.quick a { color: var(--c-muted); border: 1px solid var(--c-line); border-radius: 8px; padding: 6px 10px; transition: color .12s, border-color .12s; }
.quick a:hover { color: var(--c-ink); border-color: var(--c-red); }

.hub-copy { text-align: center; color: var(--c-muted); font-size: 11.5px; margin: 18px 0 0; }

/* ---- PC: duas colunas ---- */
@media (min-width: 860px) {
  .hub { padding-block: 40px; }
  .term-body { grid-template-columns: 370px 1fr; min-height: 520px; }
  .profile { border-right: 1px dashed var(--c-line); padding: 30px 28px; justify-content: flex-start; }
  .avatar-wrap { width: 150px; height: 150px; margin-top: 18px; }
  .name { font-size: 36px; }
  .links { border-top: 0; padding: 30px 32px; display: flex; flex-direction: column; }
  .link-card { grid-template-columns: auto auto 1fr auto; padding: 20px 22px; min-height: 92px; margin-bottom: 14px; }
  .link-card .idx { display: inline; color: var(--c-red); font-size: 12px; opacity: .8; }
  .link-card.site .idx { color: #1a0508; }
  .link-card .t { font-size: 16.5px; }
  .link-card .d { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .blink, .cursor { animation: none; }
  .link-card, .socials a { transition: none; }
}
