/* ==========================================================================
   TargetLog Links Page — Linktree-style bio link page
   Dark theme, gold accents, mobile-first
   ========================================================================== */

:root {
  --primary: #1B2838;
  --primary-light: #2A3F56;
  --accent: #E8A838;
  --accent-light: #F0C060;
  --accent-glow: rgba(232, 168, 56, 0.25);
  --bg: #0F1923;
  --surface: #1B2838;
  --surface-light: #243447;
  --card: #1E3044;
  --text: #FFFFFF;
  --text-secondary: #8B9DB5;
  --text-muted: #5A6F85;
  --border: #2A3F56;
  --border-light: #344D66;
  --radius: 12px;
  --radius-lg: 16px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Background Image ---------- */
.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
}

.bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(15, 25, 35, 0.55) 0%,
    rgba(15, 25, 35, 0.75) 35%,
    rgba(15, 25, 35, 0.92) 65%,
    rgba(15, 25, 35, 0.98) 100%
  );
  backdrop-filter: blur(2px);
}

/* ---------- Main Container ---------- */
.links-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 60px 20px 32px;
  max-width: 440px;
  margin: 0 auto;
}

/* ---------- Profile ---------- */
.profile {
  text-align: center;
  margin-bottom: 36px;
}

.profile-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  margin: 0 auto 16px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 24px var(--accent-glow);
}

.profile-name {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--text), var(--text-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-tagline {
  font-size: 0.938rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.profile-desc {
  font-size: 0.813rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Links ---------- */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: auto;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: rgba(27, 40, 56, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  cursor: pointer;
}

.link-btn:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px var(--accent-glow);
}

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

.link-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: rgba(232, 168, 56, 0.1);
  border-radius: 10px;
  color: var(--accent);
}

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

.link-label {
  display: block;
  font-size: 0.688rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.3;
}

.link-name {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.link-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.3s;
}

.link-btn:hover .link-arrow {
  color: var(--accent);
  transform: translateX(2px);
}

/* ---------- Footer ---------- */
.links-footer {
  padding-top: 36px;
  text-align: center;
}

.links-footer p {
  font-size: 0.688rem;
  color: var(--text-muted);
}

.links-footer a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s;
}

.links-footer a:hover {
  color: var(--text);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.links .link-btn:nth-child(1) { transition-delay: 0.05s; }
.links .link-btn:nth-child(2) { transition-delay: 0.1s; }
.links .link-btn:nth-child(3) { transition-delay: 0.15s; }

/* ---------- Responsive ---------- */
@media (min-width: 481px) {
  .links-container {
    padding-top: 80px;
  }

  .profile-icon {
    width: 112px;
    height: 112px;
    border-radius: 28px;
  }

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

  .link-btn {
    padding: 18px 22px;
  }
}

@media (min-height: 800px) {
  .links-container {
    justify-content: center;
    padding-top: 0;
  }

  .profile {
    margin-bottom: 40px;
  }
}
