/* =========================================================
   PUBLIC LINKS PAGE — app.css
   ========================================================= */

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px 80px;
}

/* Top bar */
.topbar {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 100;
}

/* Main column */
.links-column {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Profile header */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding-top: 20px;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  background: var(--bg-2);
}

.profile-avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-muted);
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profile-username {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: -6px;
}

.profile-bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.5;
}

/* Section */
.link-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0 4px;
}

/* Link card */
.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

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

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

/* Subtle shine on hover */
.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(var(--text-rgb), 0.03) 50%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.link-card:hover::before { opacity: 1; }

.link-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  object-fit: contain;
}

.link-logo-placeholder {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.link-label {
  flex: 1;
  font-weight: 500;
  font-size: 0.95rem;
}

.link-arrow {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.link-card:hover .link-arrow {
  transform: translateX(3px);
}

/* Embed card */
.embed-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
}

.embed-card iframe {
  width: 100%;
  display: block;
  border: none;
}

.embed-label {
  padding: 10px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* Custom link with emoji */
.link-emoji {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Footer */
.page-footer {
  margin-top: auto;
  padding-top: 48px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.page-footer a { color: var(--text-muted); }
.page-footer a:hover { color: var(--text); }

/* Loading state */
.loading-shimmer {
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: var(--radius-lg);
  height: 64px;
}

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

/* Responsive */
@media (max-width: 480px) {
  .page-wrap { padding: 40px 16px 60px; }
  .profile-name { font-size: 1.3rem; }
  .link-card { padding: 12px 14px; }
}
