/* ═══════════════════════════════════════════════════════════
   PT-LINKS — Patriotic Telehealth Linktree
   Matches the LP design system from index.css
   ═══════════════════════════════════════════════════════════ */

/* ── Design Tokens (from LP index.css) ────────────────────── */
:root {
  /* Core palette - matched to LP */
  --navy: #000000;
  --navy-mid: #0a0f1c;
  --blue: #5b7fff;
  --blue-bright: #7b9fff;
  --blue-electric: #4b6fef;
  --indigo: #7b5fff;
  --coral: #ff6b35;
  --amber: #f59e0b;
  --emerald: #00d9a3;
  --rose: #ff4b7f;

  /* LP card palette */
  --card-bg: linear-gradient(135deg, rgba(248, 251, 255, 0.98) 0%, rgba(231, 241, 255, 0.96) 100%);
  --card-border: rgba(117, 160, 225, 0.22);
  --card-shadow: 0 12px 24px rgba(9, 34, 78, 0.12);
  --card-shadow-hover: 0 20px 38px rgba(9, 34, 78, 0.2);
  --card-radius: 14px;

  /* LP text colors */
  --text-heading: #12315f;
  --text-title: #153b74;
  --text-body: #0d0d0d;
  --text-sub: rgba(21, 59, 116, 0.72);
  --text-muted: #708099;
  --text-footer: #808080;

  /* Page backgrounds */
  --page-bg: #030712;
  --footer-bg: #f9f9fb;

  /* Typography */
  --font-primary: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;

  /* LP animation easing */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-b: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* LP radius tokens */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;

  /* LP shadow tokens */
  --sh-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --sh-md: 0 4px 20px rgba(0, 0, 0, 0.3);
  --sh-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: #e5e7eb;
  background: var(--page-bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3a3f4e; border-radius: 10px; }

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

/* ── Hero Background (matches LP hero) ────────────────────── */
.hero-bg {
  position: fixed;
  inset: 0;
  background: #030712;
  z-index: 0;
  pointer-events: none;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 26%, rgba(153, 203, 239, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.16));
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #2a2f3e 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero-glow--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(153, 203, 239, 0.12) 0%, transparent 70%);
  top: -200px;
  left: -100px;
  animation: glowDrift 12s ease-in-out infinite alternate;
}

.hero-glow--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(91, 127, 255, 0.06) 0%, transparent 70%);
  bottom: 20%;
  right: -100px;
  animation: glowDrift 15s ease-in-out infinite alternate-reverse;
}

@keyframes glowDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.08); }
}

/* ── Container ────────────────────────────────────────────── */
.links-container {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto;
  padding: 48px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100vh;
}

/* ── Profile Header ───────────────────────────────────────── */
.profile-header {
  text-align: center;
  padding: 24px 16px 28px;
  margin-bottom: 4px;
}

.logo-wrap {
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.profile-tagline {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  max-width: 360px;
  margin: 0 auto 16px;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

.badge-dot--green { background: #00d9a3; }
.badge-dot--blue { background: #5b7fff; }
.badge-dot--amber { background: #f59e0b; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ── Link Cards (matches LP service-mini-card style) ──────── */
.links-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-card {
  --mx: 0;
  --my: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 14px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  font-family: var(--font-primary);
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.38s var(--ease-b),
    box-shadow 0.38s var(--ease),
    border-color 0.38s var(--ease);
  will-change: transform, box-shadow;
}

/* Shimmer overlay on hover */
.link-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.06) 45%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.06) 55%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
  pointer-events: none;
  border-radius: inherit;
}

.link-card:hover::after {
  transform: translateX(100%);
}

.link-card:hover {
  transform:
    translateY(-6px)
    perspective(800px)
    rotateX(calc(var(--my) * -2deg))
    rotateY(calc(var(--mx) * 2deg));
  border-color: rgba(91, 127, 255, 0.46);
  box-shadow:
    0 24px 54px rgba(9, 34, 78, 0.18),
    0 0 0 1px rgba(117, 160, 225, 0.3);
}

.link-card:focus-visible {
  outline: 3px solid rgba(123, 159, 255, 0.64);
  outline-offset: 3px;
}

.link-card:active {
  transform: translateY(-2px) scale(0.995);
  transition-duration: 0.1s;
}

.link-card__icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.32s var(--ease-b),
    box-shadow 0.32s var(--ease);
}

.link-card:hover .link-card__icon {
  transform: translateY(-3px) scale(1.06);
}

.link-card__icon svg {
  width: 20px;
  height: 20px;
}

/* Icon color variants — matched to LP color system */
.link-card__icon--blue {
  background: linear-gradient(135deg, #0c4285, #99cbef);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(12, 66, 133, 0.22);
}
.link-card:hover .link-card__icon--blue {
  box-shadow: 0 14px 28px rgba(12, 66, 133, 0.35);
}

.link-card__icon--indigo {
  background: linear-gradient(135deg, #7b5fff, #b4a0ff);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(123, 95, 255, 0.22);
}
.link-card:hover .link-card__icon--indigo {
  box-shadow: 0 14px 28px rgba(123, 95, 255, 0.35);
}

.link-card__icon--emerald {
  background: linear-gradient(135deg, #00d9a3, #62f0ca);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 217, 163, 0.22);
}
.link-card:hover .link-card__icon--emerald {
  box-shadow: 0 14px 28px rgba(0, 217, 163, 0.35);
}

.link-card__icon--sky {
  background: linear-gradient(135deg, #4b6fef, #7b9fff);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(75, 111, 239, 0.22);
}
.link-card:hover .link-card__icon--sky {
  box-shadow: 0 14px 28px rgba(75, 111, 239, 0.35);
}

.link-card__icon--coral {
  background: linear-gradient(135deg, #ff6b35, #ffab87);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(255, 107, 53, 0.22);
}
.link-card:hover .link-card__icon--coral {
  box-shadow: 0 14px 28px rgba(255, 107, 53, 0.35);
}

.link-card__text {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.link-card__title {
  color: var(--text-title);
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: 0;
}

.link-card__subtitle {
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.link-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #071a38;
  transition:
    transform 0.24s var(--ease),
    color 0.24s var(--ease);
}

.link-card__arrow svg {
  width: 20px;
  height: 20px;
}

.link-card:hover .link-card__arrow {
  color: #315fce;
  transform: translateX(4px);
}

/* ── Section Divider ──────────────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.divider-label {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

/* ── Social Buttons (matches LP circular social buttons) ──── */
.socials-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  color: #ffffff;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.35s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0;
  outline: none;
  position: relative;
}

.social-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: inherit;
  opacity: 0;
  filter: blur(10px);
  z-index: -1;
  transition: opacity 0.3s ease;
}

.social-btn:hover,
.social-btn:focus-visible {
  transform: scale(1.18) translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.social-btn:hover::before {
  opacity: 0.45;
}

.social-btn:active {
  transform: scale(1.05) translateY(-1px);
  transition-duration: 0.1s;
}

.social-btn svg {
  width: 22px;
  height: 22px;
  transition: transform 0.25s var(--ease-b);
}

.social-btn:hover svg {
  transform: scale(1.08);
}

/* Specific social button backgrounds - exact match from LP */
.social-btn--instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-btn--facebook {
  background: #1877f2;
}

.social-btn--x {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn--youtube {
  background: #ff0000;
}

.social-btn--linkedin {
  background: #0077b5;
}

.social-btn--tiktok {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Footer ───────────────────────────────────────────────── */
.links-footer {
  text-align: center;
  padding: 28px 16px 8px;
  margin-top: 16px;
}

.links-footer p {
  font-family: var(--font-primary);
  font-size: 12px;
  color: var(--text-footer);
  line-height: 1.6;
}

.footer-sub {
  margin-top: 4px;
  font-size: 11px !important;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .links-container {
    padding: 32px 16px 32px;
  }

  .profile-tagline {
    font-size: 14px;
  }

  .link-card__title {
    font-size: 14px;
  }

  .link-card__subtitle {
    font-size: 11px;
  }

  .socials-grid {
    gap: 10px;
  }

  .social-btn {
    width: 44px;
    height: 44px;
  }

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

@media (max-width: 360px) {
  .profile-badges {
    gap: 6px;
  }

  .badge {
    font-size: 10px;
    padding: 5px 10px;
  }

  .social-btn {
    width: 40px;
    height: 40px;
  }

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

/* ── Hover media query for touch devices ──────────────────── */
@media (hover: none) {
  .link-card:hover {
    transform: none;
    box-shadow: var(--card-shadow);
    border-color: var(--card-border);
  }

  .link-card:hover::after {
    transform: translateX(-100%);
  }

  .link-card:active {
    transform: scale(0.98);
  }

  .social-btn:hover {
    transform: none;
  }

  .social-btn:hover::before {
    opacity: 0;
  }

  .social-btn:active {
    transform: scale(0.92);
  }
}

/* ── Entrance Animations ──────────────────────────────────── */
.anim-item {
  opacity: 0;
  transform: translateY(32px) scale(0.96);
}

body.loaded .anim-item {
  animation: lp-entrance 0.82s var(--ease-b) both;
  animation-delay: calc(0.06s + var(--i, 0) * 0.065s);
}

@keyframes lp-entrance {
  0% {
    opacity: 0;
    transform: translateY(32px) scale(0.96);
    filter: blur(4px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Logo special entrance */
body.loaded .profile-header.anim-item {
  animation-name: lp-entrance-header;
  animation-duration: 1s;
}

@keyframes lp-entrance-header {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    filter: blur(6px);
  }
  50% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
