@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Identidade Visual Kishibe & JoJo */
  --kishibe-blue: #33D5F5;
  --kishibe-blue-glow: rgba(51, 213, 245, 0.35);
  --kishibe-blue-glass: rgba(51, 213, 245, 0.12);
  
  --jojo-lime: #6FE607;
  --jojo-lime-glow: rgba(111, 230, 7, 0.35);
  --jojo-lime-glass: rgba(111, 230, 7, 0.15);
  
  --forest-dark: #314919;
  --forest-deep: #0b120d;
  --bg-dark: #070c08;

  /* Glassmorphism Token Constants */
  --glass-bg: rgba(18, 28, 22, 0.45);
  --glass-bg-hover: rgba(26, 42, 33, 0.65);
  --glass-border: rgba(51, 213, 245, 0.25);
  --glass-border-hover: var(--jojo-lime);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --glass-shadow-hover: 0 16px 40px rgba(111, 230, 7, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  
  --text-main: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-dim: rgba(255, 255, 255, 0.45);

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 
 * FUNDO COM EFEITO LITRAS DE REFLEXO DE VIDRO (GLASS STREAKS)
 * Feito com gradientes diagonais que refratam a luz com o azul Kishibe e verde Jojo
 */
body::before {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: -2;
  background: 
    /* Litras de reflexo de vidro - listras claras refratando */
    linear-gradient(115deg, 
      transparent 35%, 
      rgba(51, 213, 245, 0.08) 38%, 
      rgba(51, 213, 245, 0.18) 40%, 
      transparent 43%,
      transparent 55%,
      rgba(111, 230, 7, 0.07) 57%,
      rgba(111, 230, 7, 0.14) 59%,
      transparent 61%
    ),
    /* Gradiente radial ambiente para profundidade no azul Kishibe e verde floresta */
    radial-gradient(circle at 20% 25%, rgba(51, 213, 245, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(49, 73, 25, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(111, 230, 7, 0.06) 0%, transparent 65%),
    linear-gradient(to bottom, #090f0b, #050806);
  background-size: cover;
  animation: glassStreakShift 20s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Marca d'água sutil JoJo kana (ゴゴゴ) para profundidade atmosférica minimalista */
body::after {
  content: 'ゴ  ゴ  ゴ';
  position: fixed;
  top: 15%;
  right: -5%;
  font-family: var(--font-display);
  font-size: 16vw;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.015);
  letter-spacing: 0.2em;
  user-select: none;
  pointer-events: none;
  z-index: -1;
  transform: rotate(-12deg);
}

@keyframes glassStreakShift {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-3%, -2%) rotate(1deg);
  }
}

/* Layout Container Principal */
.app-container {
  max-width: 620px;
  margin: 0 auto;
  padding: 36px 20px 60px;
  position: relative;
  z-index: 10;
}

/* Top Actions / Topbar */
.top-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.share-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--glass-shadow);
}

.share-btn:hover {
  border-color: var(--jojo-lime);
  background: var(--glass-bg-hover);
  transform: translateY(-2px);
  color: var(--jojo-lime);
  box-shadow: 0 8px 24px var(--jojo-lime-glow);
}

.share-btn svg {
  width: 16px;
  height: 16px;
}

/* Cabeçalho do Perfil (Header) */
.profile-header {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
}

.avatar-wrapper {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--kishibe-blue), var(--jojo-lime));
  box-shadow: 0 0 30px rgba(51, 213, 245, 0.4);
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--forest-dark);
  border: 2px solid #000;
}

.profile-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.jojo-star-badge {
  color: var(--jojo-lime);
  font-size: 1.1rem;
  text-shadow: 0 0 12px var(--jojo-lime);
  animation: starPulse 2.5s infinite ease-in-out;
}

@keyframes starPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.15); opacity: 1; }
}

.profile-bio {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 500;
}

/* Divisor estético minimalista JoJo */
.jojo-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 28px 0;
}

.jojo-divider-line {
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--glass-border));
}

.jojo-divider-line:last-child {
  background: linear-gradient(90deg, var(--glass-border), transparent);
}

.jojo-divider-diamond {
  width: 8px;
  height: 8px;
  background: var(--kishibe-blue);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--kishibe-blue);
}

/* Links Container */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Cartão do Link (Link Card - Glassmorphism) */
.link-card {
  position: relative;
  display: flex;
  align-items: center;
  text-decoration: none;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 72px;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--kishibe-blue);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.link-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--jojo-lime);
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--glass-shadow-hover);
}

.link-card:hover::before,
.link-card:active::before {
  opacity: 1;
  background: var(--jojo-lime);
}

/* Estado de Toque Tátil para Dispositivos Mobile (:active) */
.link-card:active {
  transform: scale(0.97) translateY(0);
  border-color: var(--jojo-lime);
  background: var(--glass-bg-hover);
  box-shadow: 0 0 30px var(--jojo-lime-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Efeito Ripple / Onda de Luz JoJo ao Tocar */
.jojo-touch-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 230, 7, 0.45) 0%, transparent 70%);
  transform: scale(0);
  animation: jojoRippleAnim 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 2;
}

@keyframes jojoRippleAnim {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(3.5);
    opacity: 0;
  }
}

.link-icon-box {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  color: var(--kishibe-blue);
  transition: all 0.3s ease;
}

.link-card:hover .link-icon-box {
  background: rgba(111, 230, 7, 0.15);
  border-color: var(--jojo-lime);
  color: var(--jojo-lime);
  transform: scale(1.08) rotate(-4deg);
}

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

.link-content {
  flex-grow: 1;
  min-width: 0;
}

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

.link-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
}

.link-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(111, 230, 7, 0.15);
  color: var(--jojo-lime);
  border: 1px solid rgba(111, 230, 7, 0.4);
}

.link-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

.link-arrow {
  flex-shrink: 0;
  margin-left: 12px;
  color: var(--text-dim);
  transition: all 0.3s ease;
}

.link-card:hover .link-arrow {
  color: var(--jojo-lime);
  transform: translateX(4px);
}

/* Skeleton Loading State */
.skeleton-card {
  height: 76px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.skeleton-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.08), 
    transparent
  );
  animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
  100% {
    left: 100%;
  }
}

/* Footer / Botão Discreto Admin */
.app-footer {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-text {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 500;
}

.admin-trigger-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  font-size: 0.78rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.admin-trigger-link:hover {
  color: var(--kishibe-blue);
  border-color: var(--kishibe-blue);
  background: rgba(51, 213, 245, 0.08);
}

.admin-trigger-link svg {
  width: 14px;
  height: 14px;
}

/* Toast de Notificação (Compartilhamento) */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(11, 18, 13, 0.95);
  border: 1px solid var(--jojo-lime);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--jojo-lime-glow);
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
}

.toast-notice svg {
  color: var(--jojo-lime);
  width: 18px;
  height: 18px;
}

/* Responsividade Mobile e Ajustes Finos de Ergonomia (<480px & <360px) */
@media (max-width: 480px) {
  .app-container {
    padding: 20px 14px 44px;
  }
  .top-bar {
    margin-bottom: 18px;
  }
  .share-btn {
    padding: 9px 15px;
    font-size: 0.82rem;
  }
  .profile-header {
    margin-bottom: 28px;
  }
  .avatar-wrapper {
    width: 92px;
    height: 92px;
    margin-bottom: 14px;
  }
  .profile-name {
    font-size: 1.45rem;
  }
  .profile-bio {
    font-size: 0.92rem;
    padding: 0 8px;
  }
  .link-card {
    padding: 15px 16px;
    border-radius: 18px;
  }
  .link-icon-box {
    width: 42px;
    height: 42px;
    margin-right: 12px;
    border-radius: 10px;
  }
  .link-icon-box svg {
    width: 22px;
    height: 22px;
  }
  .link-title {
    font-size: 0.96rem;
  }
  .link-subtitle {
    font-size: 0.79rem;
    margin-top: 3px;
  }
  .link-arrow {
    margin-left: 8px;
  }
  .toast-notice {
    width: calc(100% - 32px);
    max-width: 360px;
    text-align: center;
    font-size: 0.84rem;
    padding: 10px 18px;
  }
}

@media (max-width: 360px) {
  .profile-name {
    font-size: 1.28rem;
  }
  .link-card {
    padding: 12px 14px;
  }
  .link-icon-box {
    width: 38px;
    height: 38px;
    margin-right: 10px;
  }
  .link-title {
    font-size: 0.9rem;
  }
  .link-subtitle {
    font-size: 0.74rem;
  }
}
