/* ===== LINK PAGE — Studio Karoline Alves ===== */
/* Linktree-style bio page. Standalone, no header/footer. */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Open Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Roboto",
    "Helvetica Neue",
    Arial,
    sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== HERO COMPACTO ===== */
.link-hero {
  width: 100%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 2.5rem 1rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.link-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.6);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 10px;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s ease-out 0.1s forwards;
}

.link-hero-name {
  font-family: var(--font-family-display, serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
  opacity: 0;
  animation: fadeUp 0.6s ease-out 0.2s forwards;
}

.link-hero-name em {
  font-style: italic;
  font-weight: 400;
}

.link-hero-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 300px;
  line-height: 1.5;
  opacity: 0;
  animation: fadeUp 0.6s ease-out 0.3s forwards;
}

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

/* ===== CONTAINER CENTRAL ===== */
.link-body {
  width: 100%;
  max-width: 480px;
  padding: 1.5rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ===== DESTAQUE DINAMICO ===== */

/* ===== CTA PRIMARIO ===== */
.link-cta-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(var(--color-primary-rgb), 0.3);
  opacity: 0;
  animation: fadeUp 0.5s ease-out 0.4s forwards;
}

.link-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--color-primary-rgb), 0.4);
  color: #fff;
}

.link-cta-primary i {
  font-size: 1.1rem;
}

/* ===== LINK ITEM (lista compacta) ===== */
.link-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: #fff;
  border: 1px solid var(--color-border, #e5e5e5);
  border-radius: 14px;
  text-decoration: none;
  color: var(--foreground, #1a1a1a);
  transition: all 0.2s ease;
  opacity: 0;
  animation: fadeUp 0.5s ease-out var(--delay, 0.45s) forwards;
}

.link-item:hover {
  border-color: rgba(var(--color-primary-rgb), 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
  color: var(--foreground, #1a1a1a);
}

.link-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.link-item-icon.wine {
  background: rgba(var(--color-primary-rgb), 0.08);
  color: var(--color-primary);
}

.link-item-icon.green {
  background: rgba(37, 211, 102, 0.08);
  color: #25d366;
}

.link-item-icon.pink {
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.08), rgba(253, 29, 29, 0.08));
  color: #e4405f;
}

.link-item-text {
  flex: 1;
  min-width: 0;
}

.link-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.link-item-sub {
  font-size: 0.75rem;
  color: #999;
  line-height: 1.4;
}

.link-item-arrow {
  color: #ccc;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.link-item:hover .link-item-arrow {
  transform: translateX(3px);
  color: var(--color-primary);
}

/* ===== SHARE BUTTON ===== */
.link-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.5s ease-out 0.05s forwards;
}

.link-share-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ===== QR MODAL ===== */
.link-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.link-modal-overlay.active {
  display: flex;
}

.link-modal {
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px;
  max-width: 320px;
  width: 90%;
  text-align: center;
  color: #1a1a1a;
  position: relative;
}

.link-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #666;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.link-modal-close:hover {
  background: #f0f0f0;
}

.link-modal h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.link-qr-box {
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  border: 2px dashed #ddd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
}

.link-qr-box canvas {
  border-radius: 8px;
}

.link-modal-url {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 16px;
  word-break: break-all;
}

.link-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.link-modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.link-modal-btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.link-modal-btn-primary:hover {
  background: var(--color-primary-dark);
}

.link-modal-btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.link-modal-btn-outline:hover {
  background: rgba(var(--color-primary-rgb), 0.06);
}

/* ===== FOOTER MINIMO ===== */
.link-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.7rem;
  color: #bbb;
  margin-top: auto;
}

.link-footer a {
  color: #999;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.link-footer a:hover {
  color: var(--color-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 479px) {
  .link-hero {
    padding: 2rem 1rem 1.5rem;
  }

  .link-avatar {
    width: 60px;
    height: 60px;
    padding: 8px;
  }

  .link-hero-name {
    font-size: 1.25rem;
  }

  .link-body {
    padding: 1.25rem 0.75rem 2.5rem;
  }

  .link-cta-primary {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
  }
}
