/* ==========================================================================
   LETÍCIA HALICK · BIO LINK AGGREGATOR
   Domain: links.leticiahalick.com
   Design: Modern Luxury Creator · Dark Velvet & Rose Pink Accents
   ========================================================================== */

:root {
  --bg-dark: #0a0a0f;
  --bg-card: rgba(22, 22, 30, 0.72);
  --bg-card-hover: rgba(30, 30, 42, 0.9);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(237, 63, 138, 0.4);
  
  --primary-rose: #ed3f8a;
  --primary-rose-glow: rgba(237, 63, 138, 0.35);
  --primary-rose-light: #ff70ad;
  
  --accent-wa: #25d366;
  --accent-wa-glow: rgba(37, 211, 102, 0.28);
  
  --accent-purple: #9d4edd;
  --accent-purple-glow: rgba(157, 78, 221, 0.3);
  
  --text-main: #fdfdfd;
  --text-secondary: #a3a3b5;
  --text-muted: #6e6e84;
  
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-full: 9999px;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-card);
  --shadow-hover: 0 20px 40px -12px rgba(0, 0, 0, 0.7), 0 0 25px -5px var(--primary-rose-glow);
  --transition-smooth: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  min-height: 100vh;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Background Light Orbs */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(100px);
  opacity: 0.45;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.bg-glow-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #ed3f8a 0%, rgba(237, 63, 138, 0) 70%);
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
}

.bg-glow-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #7928ca 0%, rgba(121, 40, 202, 0) 70%);
  bottom: 10%;
  left: -120px;
  animation-duration: 16s;
  animation-delay: -3s;
}

.bg-glow-3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #25d366 0%, rgba(37, 211, 102, 0) 70%);
  bottom: 25%;
  right: -80px;
  opacity: 0.22;
  animation-duration: 14s;
  animation-delay: -6s;
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(25px) scale(1.08); }
  100% { transform: translateY(-15px) scale(0.96); }
}

.bg-noise {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
}

/* Navigation Top Bar */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 580px;
  margin: 0 auto;
  padding: 16px 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-wa);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-wa);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Page Container */
.page-container {
  position: relative;
  z-index: 10;
  max-width: 580px;
  margin: 0 auto;
  padding: 10px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Profile Section */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 6px;
}

.avatar-wrapper {
  position: relative;
  margin-bottom: 18px;
}

.avatar-ring {
  width: 116px;
  height: 116px;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ed3f8a 0%, #ff70ad 40%, #7928ca 100%);
  box-shadow: 0 10px 28px -4px var(--primary-rose-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.avatar-ring:hover {
  transform: scale(1.04) rotate(1deg);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--bg-dark);
  background: #1a1a24;
}

.avatar-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  background: #ed3f8a;
  border: 3px solid var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.avatar-badge svg {
  width: 15px;
  height: 15px;
}

.profile-name {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.profile-handle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary-rose-light);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(237, 63, 138, 0.1);
  border: 1px solid rgba(237, 63, 138, 0.25);
  margin-bottom: 14px;
  transition: var(--transition-smooth);
}

.profile-handle:hover {
  background: rgba(237, 63, 138, 0.2);
  border-color: rgba(237, 63, 138, 0.45);
  transform: translateY(-1px);
}

.inline-arrow {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

.profile-tagline {
  color: var(--text-secondary);
  font-size: 0.94rem;
  max-width: 440px;
  margin: 0 auto 20px;
  line-height: 1.55;
}

.profile-tagline em {
  font-family: var(--font-serif);
  font-style: italic;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 500;
}

/* Metrics Bar */
.metrics-bar {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.metric-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.1);
}

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

/* Link Cards Base */
.link-card {
  position: relative;
  display: block;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  overflow: hidden;
  cursor: pointer;
}

.link-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-hover);
}

.link-card:active {
  transform: translateY(-1px) scale(0.995);
}

/* Card Pill Tags */
.card-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(237, 63, 138, 0.14);
  border: 1px solid rgba(237, 63, 138, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary-rose-light);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.tag-sparkle {
  color: #ff9ed2;
  font-size: 0.8rem;
  animation: spinSlow 6s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.card-pill-tag.tag-green {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.3);
  color: #4ade80;
}

.tag-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-wa);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-wa);
}

.card-pill-tag.tag-purple {
  background: rgba(157, 78, 221, 0.14);
  border-color: rgba(157, 78, 221, 0.3);
  color: #c77dff;
}

/* Card Interior Content */
.card-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.card-icon-box {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

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

/* Custom Icon Boxes */
.card-icon-ai {
  background: linear-gradient(135deg, rgba(237, 63, 138, 0.25), rgba(121, 40, 202, 0.3));
  border: 1px solid rgba(237, 63, 138, 0.4);
  color: #ff70ad;
}

.card-icon-wa {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.2), rgba(16, 185, 129, 0.3));
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #4ade80;
}

.card-icon-site {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.2), rgba(99, 102, 241, 0.3));
  border: 1px solid rgba(157, 78, 221, 0.4);
  color: #c77dff;
}

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

/* Card Texts */
.card-texts {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Action Button */
.card-action-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.card-action-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.link-card:hover .card-action-btn {
  background: #ffffff;
  color: #0d0d12;
  border-color: #ffffff;
}

.link-card:hover .card-action-btn svg {
  transform: translateX(3px);
}

/* Featured Card (TTSHOP IA) Distinct Highlight */
.featured-card {
  background: linear-gradient(135deg, rgba(32, 24, 38, 0.85) 0%, rgba(20, 20, 28, 0.8) 100%);
  border: 1px solid rgba(237, 63, 138, 0.35);
  box-shadow: 0 12px 35px -10px rgba(237, 63, 138, 0.2), 0 0 0 1px rgba(237, 63, 138, 0.2);
}

.featured-card:hover {
  border-color: rgba(237, 63, 138, 0.65);
  box-shadow: 0 20px 45px -10px rgba(237, 63, 138, 0.35), 0 0 25px -4px rgba(237, 63, 138, 0.4);
}

.featured-card .card-action-btn {
  background: linear-gradient(135deg, #ed3f8a, #ff70ad);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(237, 63, 138, 0.35);
}

.featured-card:hover .card-action-btn {
  background: #ffffff;
  color: #ed3f8a;
}

/* Shimmer Light on Featured Card */
.card-shimmer {
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: cardShimmer 6s infinite;
  pointer-events: none;
}

@keyframes cardShimmer {
  0% { left: -150%; }
  30%, 100% { left: 150%; }
}

.card-highlight-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ed3f8a, #7928ca, transparent);
  opacity: 0.7;
}

/* WhatsApp Card Highlight */
.whatsapp-card:hover {
  border-color: rgba(37, 211, 102, 0.5);
  box-shadow: 0 16px 36px -10px rgba(37, 211, 102, 0.25);
}

/* Portfolio Card Highlight */
.portfolio-card:hover {
  border-color: rgba(157, 78, 221, 0.5);
  box-shadow: 0 16px 36px -10px rgba(157, 78, 221, 0.25);
}

/* Social Media Footer */
.social-footer {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.social-links-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-icon-btn svg {
  width: 17px;
  height: 17px;
}

.social-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer-credit {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-credit a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-credit a:hover {
  color: var(--primary-rose-light);
}

.domain-tag {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* Modal Dialog */
.custom-modal {
  border: none;
  background: transparent;
  padding: 20px;
  margin: auto;
  max-width: 90vw;
  z-index: 100;
}

.custom-modal::backdrop {
  background: rgba(8, 8, 12, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-card {
  width: 340px;
  background: #14141d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(237, 63, 138, 0.2);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-title-group h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.modal-sparkle {
  color: var(--primary-rose);
}

.close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.qr-canvas-box {
  width: 200px;
  height: 200px;
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.qr-instruction {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.qr-instruction strong {
  color: #ffffff;
}

.modal-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #ed3f8a, #ff70ad);
  border: none;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-action-btn svg {
  width: 18px;
  height: 18px;
}

.modal-action-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e1e2b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(237, 63, 138, 0.25);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  width: 20px;
  height: 20px;
  background: var(--accent-wa);
  color: #0c0d12;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
  .page-container {
    padding: 6px 14px 30px;
    gap: 26px;
  }
  
  .avatar-ring {
    width: 102px;
    height: 102px;
  }
  
  .profile-name {
    font-size: 1.65rem;
  }
  
  .profile-tagline {
    font-size: 0.88rem;
  }
  
  .link-card {
    padding: 16px 16px;
  }
  
  .card-icon-box {
    width: 44px;
    height: 44px;
  }
  
  .card-title {
    font-size: 0.98rem;
  }
  
  .card-desc {
    font-size: 0.78rem;
  }
  
  .card-action-btn {
    padding: 6px 11px;
    font-size: 0.74rem;
  }
  
  .social-icon-btn {
    padding: 8px 14px;
    font-size: 0.78rem;
  }
}
