/* ============================
   LINK ID — Cyberpunk Neon Theme
   ============================ */

:root {
  /* Colors */
  --bg-primary: #06060e;
  --bg-secondary: #0c0c1d;
  --bg-card: rgba(15, 15, 35, 0.65);
  --bg-card-border: rgba(168, 85, 247, 0.15);
  --neon-purple: #a855f7;
  --neon-purple-dim: rgba(168, 85, 247, 0.3);
  --neon-cyan: #22d3ee;
  --neon-cyan-dim: rgba(34, 211, 238, 0.3);
  --neon-green: #3fe669;
  --neon-orange: #f97316;
  --neon-pink: #ec4899;
  --text-primary: #f0f0f5;
  --text-secondary: rgba(240, 240, 245, 0.6);
  --text-muted: rgba(240, 240, 245, 0.35);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --container-max: 460px;
  --card-padding: 2.5rem 2rem;
  --radius: 20px;
  --radius-btn: 14px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ============================
   Particle Canvas
   ============================ */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================
   Floating Glow Orbs
   ============================ */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--neon-purple);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: var(--neon-cyan);
  bottom: -150px;
  left: -100px;
  animation-delay: -7s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--neon-orange);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.15;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.02); }
}

/* ============================
   Container
   ============================ */
.container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ============================
   Glassmorphism Card
   ============================ */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: var(--card-padding);
  width: 100%;
  animation: cardFadeIn 1s ease-out forwards;
  box-shadow:
    0 0 40px rgba(168, 85, 247, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================
   Avatar
   ============================ */
.avatar-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    var(--neon-purple),
    var(--neon-cyan),
    var(--neon-green),
    var(--neon-orange),
    var(--neon-pink),
    var(--neon-purple)
  );
  animation: ringRotate 4s linear infinite;
  z-index: 0;
}

.avatar-ring::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg-primary);
}

@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

.avatar-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

/* ============================
   Profile Info
   ============================ */
.profile-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, var(--text-primary), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeSlideUp 0.8s ease-out 0.3s both;
}

.profile-desc {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 2rem;
  animation: fadeSlideUp 0.8s ease-out 0.5s both;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================
   Link Buttons
   ============================ */
.links-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.link-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  animation: linkEntrance 0.6s ease-out both;
}

.link-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-btn);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.link-btn:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 0 20px var(--link-glow, rgba(168, 85, 247, 0.3)),
    0 0 60px var(--link-glow, rgba(168, 85, 247, 0.12)),
    0 8px 25px rgba(0, 0, 0, 0.3);
}

.link-btn:hover::before {
  opacity: 1;
  background: linear-gradient(
    135deg,
    var(--link-glow, rgba(168, 85, 247, 0.12)),
    transparent
  );
}

.link-btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

.link-btn .link-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.link-btn .link-label {
  position: relative;
  z-index: 1;
}

@keyframes linkEntrance {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================
   Inline QR Codes Per Link
   ============================ */
.link-item-wrapper {
  width: 100%;
  animation: linkEntrance 0.6s ease-out both;
}

.link-qr-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 2;
  padding: 0;
}

.link-qr-toggle:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--neon-purple-dim);
  color: var(--neon-purple);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.15);
}

.link-qr-toggle.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--neon-purple);
  color: var(--neon-purple);
}

.link-qr-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              padding 0.4s ease;
  opacity: 0;
}

.link-qr-panel.open {
  max-height: 260px;
  opacity: 1;
  padding: 0.75rem 0 0.25rem;
}

.link-qr-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.link-qr-svg-wrap {
  padding: 0.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.12);
  flex-shrink: 0;
  line-height: 0;
}

.link-qr-svg-wrap svg {
  display: block;
  width: 100px;
  height: 100px;
}

.link-qr-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.link-qr-info-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.link-qr-info-hint {
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.7;
}

@media (max-width: 480px) {
  .link-qr-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================
   Footer
   ============================ */
.footer {
  margin-top: 2rem;
  text-align: center;
  padding: 1rem 0;
  animation: fadeSlideUp 0.8s ease-out 1.2s both;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 300;
}

.neon-text {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* ============================
   Social Icons (SVG inline)
   ============================ */
.icon-telegram { color: #26A5E4; }
.icon-whatsapp { color: #25D366; }
.icon-threema { color: #3fe669; }
.icon-instagram { color: #E4405F; }
.icon-twitter { color: #1DA1F2; }
.icon-youtube { color: #FF0000; }
.icon-tiktok { color: #ee1d52; }
.icon-github { color: #f0f0f5; }
.icon-email { color: #f97316; }
.icon-website { color: #a855f7; }
.icon-linkedin { color: #0A66C2; }
.icon-discord { color: #5865F2; }
.icon-facebook { color: #1877F2; }
.icon-signal { color: #3a76f0; }
.icon-viber { color: #7360f2; }

/* ============================
   Responsive
   ============================ */
@media (max-width: 480px) {
  .container {
    padding: 2rem 1rem;
  }

  .glass-card {
    padding: 2rem 1.25rem;
  }

  .avatar-wrapper {
    width: 110px;
    height: 110px;
  }

  .avatar-img {
    width: 100px;
    height: 100px;
  }

  .profile-name {
    font-size: 1.5rem;
  }

  .link-btn {
    padding: 0.85rem 1.2rem;
    font-size: 0.95rem;
  }

  .glow-orb {
    opacity: 0.25;
  }

  .orb-1 { width: 250px; height: 250px; }
  .orb-2 { width: 200px; height: 200px; }
  .orb-3 { width: 180px; height: 180px; }
}

@media (min-width: 768px) {
  .container {
    padding: 4rem 1.5rem;
  }
}

/* ============================
   Loading skeleton
   ============================ */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
