/* ==========================================================================
   PEACH MULTILINK - LUXURY DARK PEACH THEME
   Design: Modern Glamour, Glassmorphism & High-performance Mobile First
   ========================================================================== */

:root {
  /* Palette Colori Principali */
  --bg-dark: #0c0a10;
  --bg-card: rgba(23, 18, 28, 0.78);
  --bg-card-border: rgba(255, 170, 160, 0.18);

  --peach-primary: #ff8e72;
  --peach-light: #ffb4a2;
  --peach-glow: rgba(255, 142, 114, 0.35);
  --peach-gradient: linear-gradient(135deg, #ff7e67 0%, #ff5277 50%, #f472b6 100%);
  --peach-gradient-hover: linear-gradient(135deg, #ff9480 0%, #ff6285 50%, #f684c0 100%);

  --gold-accent: #fcd34d;
  --text-main: #f9f9fb;
  --text-muted: #a39eb2;
  --text-dim: #736c84;

  /* Colori Piattaforme */
  --accent-glow: rgba(255, 142, 114, 0.28);
  --channel-glow: rgba(42, 171, 238, 0.28);

  /* Fonts & Radius */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-full: 9999px;

  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100%;
  width: 100%;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  position: relative;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ==========================================================================
   Sfondo Ambient & Particelle
   ========================================================================== */

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  animation: pulseGlow 10s ease-in-out infinite alternate;
}

.glow-top {
  width: 320px;
  height: 320px;
  top: -60px;
  right: -50px;
  background: radial-gradient(circle, #ff6b8b, #7928ca);
}

.glow-bottom {
  width: 360px;
  height: 360px;
  bottom: -80px;
  left: -60px;
  background: radial-gradient(circle, #ff8e72, #e11d48);
  animation-duration: 12s;
  animation-delay: -3s;
}

@keyframes pulseGlow {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.45;
  }

  50% {
    transform: scale(1.15) translate(20px, 15px);
    opacity: 0.65;
  }

  100% {
    transform: scale(0.95) translate(-15px, -10px);
    opacity: 0.45;
  }
}

.stars-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.star {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: twinkle linear infinite;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.8);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.2);
  }
}

/* ==========================================================================
   Contenitore & Card Glassmorphic
   ========================================================================== */

.page-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 2;
  margin: auto;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 34px 24px 28px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(255, 142, 114, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  text-align: center;
  transition: transform 0.3s ease;
}

/* ==========================================================================
   Profile Header
   ========================================================================== */

.profile-header {
  margin-bottom: 24px;
}

.avatar-wrapper {
  position: relative;
  width: 114px;
  height: 114px;
  margin: 0 auto 16px;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--peach-gradient);
  animation: rotateRing 8s linear infinite;
  box-shadow: 0 0 25px var(--peach-glow);
  z-index: 1;
}

@keyframes rotateRing {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.avatar-img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: #1a1622;
  border: 3px solid #100d16;
  z-index: 2;
  display: block;
}

.online-badge {
  position: absolute;
  bottom: 4px;
  right: 6px;
  width: 18px;
  height: 18px;
  background-color: #10b981;
  border-radius: 50%;
  border: 3px solid #14101b;
  z-index: 3;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
}

.online-badge::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: badgePing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes badgePing {

  75%,
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  margin-bottom: 4px;
}

.verified-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  border-radius: 50%;
  padding: 3px;
  box-shadow: 0 0 10px rgba(0, 150, 255, 0.4);
}

.profile-handle {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--peach-light);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.profile-bio {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0 auto;
}

/* ==========================================================================
   View Switching & Panels (Welcome vs Links)
   ========================================================================== */

.view-panel {
  display: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.view-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Welcome Action Box */
.action-box {
  margin: 24px 0 20px;
}

.disclaimer-text {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* BOTTONE PRINCIPALE: "Scopri i miei link 💋" */
.btn-primary {
  width: 100%;
  padding: 17px 24px;
  background: var(--peach-gradient);
  border: none;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 10px 25px rgba(255, 82, 119, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 14px 30px rgba(255, 82, 119, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.35),
      transparent);
  transform: skewX(-20deg);
  animation: shineSweep 3.5s infinite;
}

@keyframes shineSweep {
  0% {
    left: -100%;
  }

  35%,
  100% {
    left: 180%;
  }
}

.btn-text {
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.social-tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.pill {
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   Links View & Dynamic Cards
   ========================================================================== */

.links-header {
  margin-bottom: 20px;
}

.badge-exclusive {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-accent);
  background: rgba(252, 211, 77, 0.12);
  border: 1px solid rgba(252, 211, 77, 0.3);
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.links-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

/* Singola Link Card */
.link-card {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.link-card:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(255, 170, 160, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.link-card:active {
  transform: translateY(0) scale(0.99);
}

/* Varianti Piattaforma */
.link-card.exclusive {
  border-color: rgba(255, 142, 114, 0.3);
  box-shadow: 0 4px 15px rgba(255, 142, 114, 0.1);
}

.link-card.exclusive:hover {
  border-color: rgba(255, 142, 114, 0.7);
  box-shadow: 0 8px 25px var(--peach-glow);
}

.link-card.channel {
  border-color: rgba(42, 171, 238, 0.25);
  box-shadow: 0 4px 15px rgba(42, 171, 238, 0.08);
}

.link-card.channel:hover {
  border-color: rgba(42, 171, 238, 0.6);
  box-shadow: 0 8px 25px rgba(42, 171, 238, 0.28);
}

.link-card.instagram {
  border-color: rgba(225, 48, 108, 0.25);
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.08);
}

.link-card.instagram:hover {
  border-color: rgba(225, 48, 108, 0.65);
  box-shadow: 0 8px 25px rgba(225, 48, 108, 0.28);
}

.link-card.instagram-tattoos {
  border-color: rgba(255, 142, 114, 0.25);
  box-shadow: 0 4px 15px rgba(255, 142, 114, 0.08);
}

.link-card.instagram-tattoos:hover {
  border-color: rgba(255, 142, 114, 0.65);
  box-shadow: 0 8px 25px rgba(255, 142, 114, 0.28);
}

.link-card.tiktok {
  border-color: rgba(37, 244, 238, 0.25);
  box-shadow: 0 4px 15px rgba(37, 244, 238, 0.08);
}

.link-card.tiktok:hover {
  border-color: rgba(37, 244, 238, 0.65);
  box-shadow: 0 8px 25px rgba(254, 44, 85, 0.25);
}

.link-card.support {
  border-color: rgba(0, 112, 186, 0.25);
  box-shadow: 0 4px 15px rgba(0, 112, 186, 0.08);
}

.link-card.support:hover {
  border-color: rgba(0, 112, 186, 0.65);
  box-shadow: 0 8px 25px rgba(0, 112, 186, 0.28);
}

/* Icona Piattaforma */
.link-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 14px;
  transition: transform 0.3s ease;
}

.link-card:hover .link-icon-box {
  transform: scale(1.1) rotate(4deg);
}

.exclusive .link-icon-box {
  background: rgba(255, 142, 114, 0.15);
  color: var(--peach-primary);
  border: 1px solid rgba(255, 142, 114, 0.35);
}

.channel .link-icon-box {
  background: rgba(42, 171, 238, 0.15);
  color: #2aabee;
  border: 1px solid rgba(42, 171, 238, 0.3);
}

.instagram .link-icon-box {
  background: rgba(225, 48, 108, 0.15);
  color: #e1306c;
  border: 1px solid rgba(225, 48, 108, 0.3);
}

.instagram-tattoos .link-icon-box {
  background: rgba(255, 142, 114, 0.15);
  color: var(--peach-primary);
  border: 1px solid rgba(255, 142, 114, 0.3);
}

.tiktok .link-icon-box {
  background: rgba(37, 244, 238, 0.12);
  color: #25f4ee;
  border: 1px solid rgba(37, 244, 238, 0.3);
}

.support .link-icon-box {
  background: rgba(0, 112, 186, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(0, 112, 186, 0.3);
}

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

/* Contenuto Testuale Link */
.link-content {
  flex-grow: 1;
  text-align: left;
}

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

.link-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.link-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.link-badge.vip {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  color: #fff;
  box-shadow: 0 0 8px rgba(255, 65, 108, 0.4);
}

.link-badge.free {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.link-badge.official {
  background: rgba(225, 48, 108, 0.2);
  color: #ff6584;
  border: 1px solid rgba(225, 48, 108, 0.4);
}

.link-badge.tattoo {
  background: rgba(255, 142, 114, 0.2);
  color: var(--peach-light);
  border: 1px solid rgba(255, 142, 114, 0.4);
}

.link-badge.tiktok-badge {
  background: rgba(37, 244, 238, 0.18);
  color: #25f4ee;
  border: 1px solid rgba(37, 244, 238, 0.4);
}

.link-badge.support-badge {
  background: rgba(0, 112, 186, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(0, 112, 186, 0.4);
}

.link-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Freccia di Apertura */
.link-arrow {
  color: var(--text-dim);
  transition: transform 0.3s ease, color 0.3s ease;
  margin-left: 8px;
}

.link-card:hover .link-arrow {
  color: #fff;
  transform: translateX(4px);
}

/* Bottone Torna Indietro */
.btn-back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
}

.btn-back:hover {
  color: var(--peach-light);
  background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.profile-footer {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.footer-links .dot {
  opacity: 0.4;
}

.developer-credit {
  margin-top: 12px;
  font-size: 0.74rem;
  color: var(--text-dim);
}

.developer-credit a {
  color: var(--peach-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.developer-credit a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px var(--peach-glow);
}

/* ==========================================================================
   Toast Notifiche
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(30, 24, 38, 0.95);
  border: 1px solid var(--peach-primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 100;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}

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

/* ==========================================================================
   Ottimizzazioni Mobile e Safe Area
   ========================================================================== */

@media (max-width: 480px) {
  body {
    padding: 14px 12px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .card {
    padding: 28px 18px 22px;
    border-radius: 24px;
  }

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

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

  .btn-primary {
    padding: 16px 20px;
    font-size: 1.05rem;
  }

  .link-card {
    padding: 14px 16px;
  }

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