/* =====================================================
   JrockLOL Studio — Link na Bio
   Identidade visual herdada do StreamPro
   Fonte: Bebas Neue (títulos) + Outfit (corpo)
===================================================== */

/* =====================================================
   VARIÁVEIS DO DESIGN SYSTEM (mesmas do StreamPro)
===================================================== */
:root {
  --bg1: #16026b;
  --bg2: #210581;

  --primary: #fabd03;
  --secondary: #cf410f;

  --card: rgba(255, 255, 255, 0.05);
  --card-hover: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.1);
  --text: #ffffff;

  --text-muted: rgba(255, 255, 255, 0.7);
  --text-dim: rgba(255, 255, 255, 0.5);
  --primary-dark: #d9a303;
  --primary-glow: rgba(250, 189, 3, 0.3);
  --secondary-glow: rgba(207, 65, 15, 0.3);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --transition: 0.3s ease;

  /* Cores das plataformas (usadas no hover) */
  --youtube: #ff0033;
  --twitch: #9146ff;
  --tiktok: #25f4ee;
  --instagram: #e1306c;
  --whatsapp: #25d366;
}

/* =====================================================
   RESET E BASE
===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { font-size: 16px; }

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg1);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Gradiente de texto dourado */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================================================
   FUNDO — gradiente, brilhos e grade pontilhada
===================================================== */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg1) 0%, var(--bg2) 100%);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: pulse 6s ease-in-out infinite;
}

.glow-1 {
  width: 320px;
  height: 320px;
  background: var(--primary);
  top: -140px;
  right: -120px;
}

.glow-2 {
  width: 300px;
  height: 300px;
  background: var(--secondary);
  bottom: -120px;
  left: -120px;
  animation-delay: 3s;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

@keyframes pulse {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.1); }
}

/* =====================================================
   LAYOUT DA PÁGINA (mobile first)
===================================================== */
.page {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 56px 16px 32px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* =====================================================
   PERFIL
===================================================== */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Anel em gradiente, estilo story do Instagram */
.avatar-ring {
  position: relative;
  width: 128px;
  height: 128px;
  padding: 4px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--primary), #ff8c00, var(--secondary), var(--primary));
  box-shadow: 0 8px 32px var(--primary-glow);
  margin-bottom: 18px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 45% 20%;
  border: 4px solid var(--bg1);
  background: var(--bg2);
}

/* Selo "ON AIR" */
.live-badge {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--secondary);
  border: 3px solid var(--bg1);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.profile-name {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 2.6rem;
  letter-spacing: 0.03em;
  line-height: 1;
}

.profile-handle {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.profile-bio {
  max-width: 340px;
  margin-top: 12px;
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* =====================================================
   LINKS
===================================================== */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link {
  --accent: var(--primary);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px 16px 12px 12px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform var(--transition), background var(--transition),
              border-color var(--transition), box-shadow var(--transition);
}

/* Barra lateral — acende como a "tally light" de uma câmera */
.link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--transition), top var(--transition), bottom var(--transition);
}

.link:hover,
.link:focus-visible {
  transform: translateY(-2px);
  background: var(--card-hover);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 22%, transparent);
}

.link:hover::before,
.link:focus-visible::before {
  opacity: 1;
  top: 0;
  bottom: 0;
}

.link:active { transform: scale(0.98); }

.link-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  transition: background var(--transition), color var(--transition);
}

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

.link:hover .link-icon,
.link:focus-visible .link-icon {
  background: var(--accent);
  color: #fff;
}

.link-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.link-title {
  font-weight: 600;
  font-size: 1.02rem;
}

.link-sub {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.link-arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  transition: transform var(--transition), color var(--transition);
}

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

/* Cores por plataforma */
.link--whatsapp  { --accent: var(--whatsapp); }
.link--youtube   { --accent: var(--youtube); }
.link--twitch    { --accent: var(--twitch); }
.link--tiktok    { --accent: var(--tiktok); }
.link--instagram { --accent: var(--instagram); }

.link--tiktok:hover .link-icon,
.link--tiktok:focus-visible .link-icon {
  color: #0b0b0b;
  box-shadow: -2px -2px 0 #fe2c55 inset;
}

.link--instagram:hover .link-icon,
.link--instagram:focus-visible .link-icon {
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}

/* WhatsApp — contato principal, sempre em destaque */
.link--whatsapp {
  border-color: rgba(37, 211, 102, 0.4);
  background: linear-gradient(90deg, rgba(37, 211, 102, 0.14), var(--card));
}

.link--whatsapp .link-icon {
  background: var(--whatsapp);
  color: #fff;
}

.link--whatsapp .link-sub { color: #7ef0a8; }

/* =====================================================
   SERVIÇOS
===================================================== */
.services {
  padding: 24px 18px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(250, 189, 3, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(250, 189, 3, 0.18);
}

.section-badge {
  display: inline-block;
  background: rgba(250, 189, 3, 0.15);
  border: 1px solid rgba(250, 189, 3, 0.3);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.services-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 12px 0 18px;
}

.services-title .text-gradient { white-space: nowrap; }

.services-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.services-list li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.services-list li:first-child { border-top: none; padding-top: 0; }

.svc-num {
  flex-shrink: 0;
  width: 28px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--primary);
}

.services-list strong {
  display: block;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.3;
}

.services-list p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 2px;
}

/* Link do site — destaque dourado (botão primário do StreamPro) */
.link--site {
  --accent: var(--primary);
  background: var(--primary);
  border-color: var(--primary);
  color: #1a0050;
}

.link--site .link-icon {
  background: rgba(26, 0, 80, 0.12);
  color: #1a0050;
}

.link--site .link-sub { color: rgba(26, 0, 80, 0.7); }

.link--site:hover,
.link--site:focus-visible {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 10px 28px var(--primary-glow);
}

.link--site:hover .link-icon,
.link--site:focus-visible .link-icon {
  background: #1a0050;
  color: var(--primary);
}

.link--site::before { display: none; }

.link--site .link-arrow { color: #1a0050; }

.wip-badge {
  display: inline-block;
  vertical-align: 2px;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 100px;
  background: #1a0050;
  color: var(--primary);
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* =====================================================
   RODAPÉ
===================================================== */
.footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* =====================================================
   BOTÃO COMPARTILHAR + TOAST
===================================================== */
.share-btn {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--transition), transform var(--transition);
}

.share-btn svg { width: 18px; height: 18px; }
.share-btn:hover { background: var(--card-hover); transform: scale(1.06); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  transform: translate(-50%, 20px);
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--primary);
  color: #1a0050;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =====================================================
   ANIMAÇÃO DE ENTRADA (ativada via JS)
===================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--delay, 0s);
}

/* =====================================================
   RESPONSIVO
===================================================== */
@media (min-width: 520px) {
  .page { padding-top: 72px; gap: 32px; }
  .profile-name { font-size: 3rem; }
  .avatar-ring { width: 140px; height: 140px; }
  .glow-1 { width: 500px; height: 500px; }
  .glow-2 { width: 420px; height: 420px; }
}

@media (max-width: 359px) {
  .profile-name { font-size: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
