/* ============================================
   Max Wilson Pereira — 2026 Link-in-Bio Design
   Inspired by Linktree • Social media palette
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  /* Social palette */
  --instagram-pink: #e1306c;
  --instagram-purple: #833ab4;
  --instagram-blue: #405de6;
  --youtube-red: #ff0000;
  --x-blue: #1da1f2;
  --x-dark: #14171a;

  /* Theme */
  --bg-dark: #0a0a0b;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.12);
  --text-primary: #ffffff;
  --text-secondary: #e2e2e8;
  --text-muted: #a8a8b3;
  --bg-content-card: rgba(12, 12, 14, 0.94);
  --accent-gradient: linear-gradient(
    135deg,
    #e1306c 0%,
    #833ab4 50%,
    #405de6 100%
  );
  --accent-gradient-soft: linear-gradient(
    135deg,
    rgba(225, 48, 108, 0.15) 0%,
    rgba(131, 58, 180, 0.15) 50%,
    rgba(64, 93, 230, 0.15) 100%
  );
  --shadow-glow: 0 0 40px rgba(225, 48, 108, 0.15);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

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

/* Web Components — participate in parent layout without creating an extra box */
max-badge,
max-tagline,
max-site-name,
max-profile-img,
max-link-list,
max-back-button {
  display: contents;
}

body {
  font-family:
    "Plus Jakarta Sans",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: transparent;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  position: relative;
  overflow-x: hidden;
}

/* Hero image — back layer, always visible through overlay */
.hero-bg {
  position: fixed;
  inset: 0;
  background-image: url("../assets/vintage-microphone.jpg");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Dark overlay — semi-transparent so hero image shows through */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 50% at 50% -20%,
      rgba(131, 58, 180, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 60% 40% at 100% 100%,
      rgba(225, 48, 108, 0.2) 0%,
      transparent 45%
    ),
    radial-gradient(
      ellipse 50% 30% at 0% 80%,
      rgba(64, 93, 230, 0.15) 0%,
      transparent 40%
    ),
    rgba(10, 10, 11, 0.7); /* Hero image "opacity", change the last field */
  z-index: 1;
  pointer-events: none;
}

/* Subtle noise texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 2;
}

/* Layout container */
.page-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Profile section — card for readability over hero image */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  width: 100%;
  background: var(--bg-content-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px 24px 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.profile-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(225, 48, 108, 0.5);
  box-shadow:
    var(--shadow-glow),
    0 8px 32px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.02);
  box-shadow:
    0 0 50px rgba(225, 48, 108, 0.2),
    0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Typography */
h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 12px;
  letter-spacing: -0.01em;
}

h2.accent {
  font-weight: 800; /* makes the gradient bold */
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 8px;
  max-width: 320px;
}

/* Link buttons — glassmorphism cards */
.link-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-button {
  width: 100%;
}

.link-button a {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.link-button a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.link-button a:hover {
  background: var(--bg-card-hover);
  border-color: rgba(225, 48, 108, 0.4);
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(225, 48, 108, 0.1);
}

.link-button a:hover::before {
  opacity: 0.08;
}

.link-button a span {
  position: relative;
  z-index: 1;
}

/* Back button */
.back-button {
  position: fixed;
  top: 20px;
  left: 24px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.back-button:hover {
  background: var(--bg-card-hover);
  border-color: rgba(225, 48, 108, 0.4);
  transform: translateX(-2px);
}

.back-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Content sections (subpages) — card for readability over hero image */
.content-section {
  width: 100%;
  text-align: left;
  background: var(--bg-content-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.content-section p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.content-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* PIX box — glass card */
.pix-box {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  padding: 20px 24px;
  margin: 16px 0;
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: 0.02em;
  word-break: break-all;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Steps / highlight cards */
.step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  margin: 8px 0;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step .step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
}

.step .highlight {
  color: var(--instagram-pink);
  font-weight: 600;
}

.highlight {
  color: var(--instagram-pink);
  font-weight: 600;
}

/* Form and CTA buttons */
.pix-continue-form {
  margin-top: 20px;
}

.input-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.pix-input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 12px;
}

.pix-input::placeholder {
  color: var(--text-muted);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.primary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.download-button {
  margin: 8px 0 20px;
}

/* Lists */
ul {
  list-style: none;
  margin: 16px 0 24px;
  padding: 0;
}

ul li {
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.4;
}

ul li:last-child {
  border-bottom: none;
}

ul li::before {
  content: "♫";
  margin-right: 12px;
  opacity: 0.6;
  font-size: 0.85rem;
}

/* Social proof / badge (optional) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--accent-gradient-soft);
  border: 1px solid rgba(225, 48, 108, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* Subpage layout — content aligned with home, back button floats above */
.page-sub .content-section {
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 480px) {
  body {
    padding: 16px;
  }

  .profile-img {
    width: 120px;
    height: 120px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  .tagline {
    font-size: 0.9rem;
  }

  .link-button a {
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  .pix-box {
    font-size: 1.25rem;
    padding: 16px 20px;
  }

  .pix-input,
  .primary-button {
    min-height: 54px;
    font-size: 0.98rem;
  }

  .back-button {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .profile-img,
  .link-button a,
  .back-button,
  .primary-button {
    transition: none;
  }

  .link-button a:hover {
    transform: none;
  }

  .primary-button:hover:not(:disabled) {
    transform: none;
  }
}
