/**
 * ByManda Collective — BioLink Styling (Linktree-style Luxury Landing Page)
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300..900;1,9..40,300..900&family=Playfair+Display:ital,wght@0,500..800;1,500..800&display=swap');

:root {
  --bio-bg: #0d0d0f;
  --bio-text: #f3f4f6;
  --bio-text-muted: #9ca3af;
  --bio-card-bg: rgba(25, 25, 30, 0.75);
  --bio-card-border: rgba(255, 255, 255, 0.1);
  --bio-card-hover: rgba(40, 40, 48, 0.9);
  --bio-accent: #6c5643;
  --bio-accent-glow: rgba(108, 86, 67, 0.4);
  --bio-radius: 16px;
  --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

/* THEMES */
body.theme-dark-luxury {
  --bio-bg: #0d0d0f;
  --bio-text: #f9fafb;
  --bio-text-muted: #9ca3af;
  --bio-card-bg: rgba(26, 26, 32, 0.75);
  --bio-card-border: rgba(255, 255, 255, 0.1);
  --bio-card-hover: rgba(38, 38, 48, 0.95);
  --bio-accent: #6c5643;
  --bio-accent-glow: rgba(108, 86, 67, 0.4);
}

body.theme-earthy-brown {
  --bio-bg: #1a1614;
  --bio-text: #faf7f2;
  --bio-text-muted: #b8aba0;
  --bio-card-bg: rgba(38, 32, 28, 0.85);
  --bio-card-border: rgba(108, 86, 67, 0.3);
  --bio-card-hover: rgba(56, 48, 42, 0.95);
  --bio-accent: #8c7058;
  --bio-accent-glow: rgba(140, 112, 88, 0.4);
}

body.theme-clean-light {
  --bio-bg: #f5f5f7;
  --bio-text: #111827;
  --bio-text-muted: #6b7280;
  --bio-card-bg: rgba(255, 255, 255, 0.9);
  --bio-card-border: rgba(0, 0, 0, 0.08);
  --bio-card-hover: #ffffff;
  --bio-accent: #6c5643;
  --bio-accent-glow: rgba(108, 86, 67, 0.2);
}

body.theme-midnight-noir {
  --bio-bg: #000000;
  --bio-text: #ffffff;
  --bio-text-muted: #888888;
  --bio-card-bg: rgba(18, 18, 18, 0.85);
  --bio-card-border: rgba(255, 255, 255, 0.15);
  --bio-card-hover: rgba(30, 30, 30, 0.95);
  --bio-accent: #ffffff;
  --bio-accent-glow: rgba(255, 255, 255, 0.25);
}

/* BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-main);
  background-color: var(--bio-bg);
  color: var(--bio-text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 32px 16px 60px;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient glow */
.bio-ambient-glow {
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, var(--bio-accent-glow) 0%, rgba(0,0,0,0) 70%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.bio-container {
  width: 100%;
  max-width: 580px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* TOP ACTIONS */
.bio-top-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.bio-top-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bio-card-bg);
  border: 1px solid var(--bio-card-border);
  color: var(--bio-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  text-decoration: none;
}
.bio-top-btn:hover {
  background: var(--bio-card-hover);
  transform: scale(1.08);
  border-color: var(--bio-accent);
}

/* PROFILE HEADER */
.bio-profile {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
  width: 100%;
}
.bio-avatar-wrapper {
  position: relative;
  margin-bottom: 18px;
}
.bio-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bio-accent);
  box-shadow: 0 8px 24px var(--bio-accent-glow);
  background: #181818;
  display: block;
}
.bio-verified-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bio-bg);
  font-size: 13px;
}
.bio-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bio-description {
  font-size: 14.5px;
  color: var(--bio-text-muted);
  max-width: 440px;
  margin: 0 auto 18px;
  line-height: 1.55;
}

/* SOCIAL ICONS */
.bio-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 10px;
}
.bio-social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bio-card-bg);
  border: 1px solid var(--bio-card-border);
  color: var(--bio-text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}
.bio-social-btn:hover {
  background: var(--bio-accent);
  color: #ffffff;
  border-color: var(--bio-accent);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 16px var(--bio-accent-glow);
}

/* ITEMS LIST */
.bio-items-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* LINK CARD */
.bio-link-card {
  width: 100%;
  min-height: 64px;
  background: var(--bio-card-bg);
  border: 1px solid var(--bio-card-border);
  border-radius: var(--bio-radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--bio-text);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.bio-link-card:hover {
  background: var(--bio-card-hover);
  border-color: var(--bio-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 16px var(--bio-accent-glow);
}
.bio-link-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bio-card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 14px;
  color: var(--bio-accent);
  overflow: hidden;
}
.bio-link-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bio-link-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.bio-link-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bio-link-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
}
.bio-link-subtitle {
  font-size: 12.5px;
  color: var(--bio-text-muted);
  margin-top: 3px;
  line-height: 1.4;
  white-space: normal;
}
.bio-link-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--bio-accent);
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.bio-link-arrow {
  margin-left: 12px;
  color: var(--bio-text-muted);
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.25s ease;
}
.bio-link-card:hover .bio-link-arrow {
  transform: translateX(4px);
  color: var(--bio-accent);
}

/* BUTTON RADIUS VARIANTS */
.radius-sharp .bio-link-card, .radius-sharp .bio-card { border-radius: 4px; }
.radius-rounded .bio-link-card, .radius-rounded .bio-card { border-radius: 16px; }
.radius-pill .bio-link-card { border-radius: 999px; padding-left: 22px; padding-right: 22px; }

/* BUTTON STYLE VARIANTS */
.btn-style-solid .bio-link-card {
  background: var(--bio-accent);
  color: #ffffff;
  border-color: transparent;
}
.btn-style-solid .bio-link-card .bio-link-subtitle { color: rgba(255,255,255,0.85); }
.btn-style-solid .bio-link-card .bio-link-icon-box { background: rgba(0,0,0,0.2); color: #fff; border-color: transparent; }
.btn-style-solid .bio-link-card .bio-link-badge { background: #ffffff; color: var(--bio-accent); }
.btn-style-solid .bio-link-card .bio-link-arrow { color: #ffffff; }

.btn-style-outline .bio-link-card {
  background: transparent;
  border: 1.5px solid var(--bio-card-border);
}
.btn-style-outline .bio-link-card:hover {
  border-color: var(--bio-accent);
  background: rgba(108, 86, 67, 0.1);
}

/* ANIMATIONS */
.anim-pulse {
  animation: bioPulse 2s infinite;
}
@keyframes bioPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 var(--bio-accent-glow); }
  50% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(0,0,0,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

.anim-bounce {
  animation: bioBounce 2s infinite ease-in-out;
}
@keyframes bioBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.anim-glow {
  position: relative;
}
.anim-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(90deg, #6c5643, #d4a373, #6c5643);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderShimmer 3s linear infinite;
  background-size: 200% 100%;
}
@keyframes borderShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* EMBEDDED BLOCKS */
.bio-block-card {
  width: 100%;
  background: var(--bio-card-bg);
  border: 1px solid var(--bio-card-border);
  border-radius: var(--bio-radius);
  padding: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.bio-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.bio-block-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(108, 86, 67, 0.2);
  color: var(--bio-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bio-block-title {
  font-size: 16px;
  font-weight: 700;
}
.bio-block-subtitle {
  font-size: 12.5px;
  color: var(--bio-text-muted);
}

/* LEAD FORM */
.bio-form-group {
  margin-bottom: 12px;
}
.bio-form-input, .bio-form-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--bio-card-border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--bio-text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.25s ease;
}
.bio-form-input:focus, .bio-form-select:focus {
  border-color: var(--bio-accent);
  box-shadow: 0 0 0 3px var(--bio-accent-glow);
  background: rgba(0, 0, 0, 0.4);
}
.bio-form-submit {
  width: 100%;
  background: var(--bio-accent);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px var(--bio-accent-glow);
}
.bio-form-submit:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--bio-accent-glow);
}

/* MAP CARD */
.bio-map-preview {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--bio-card-border);
}
.bio-map-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.bio-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--bio-card-border);
  color: var(--bio-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}
.bio-map-btn:hover {
  background: var(--bio-accent);
  color: #fff;
  border-color: var(--bio-accent);
}

/* FOOTER */
.bio-footer {
  margin-top: 36px;
  text-align: center;
}
.bio-footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bio-text-muted);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}
.bio-footer a:hover {
  color: var(--bio-accent);
}

/* MODAL (SHARE & QR) */
.bio-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.bio-modal-overlay.active {
  display: flex;
  opacity: 1;
}
.bio-modal-card {
  width: 100%;
  max-width: 400px;
  background: #18181c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.bio-modal-overlay.active .bio-modal-card {
  transform: translateY(0) scale(1);
}
.bio-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.bio-modal-title {
  font-size: 18px;
  font-weight: 700;
}
.bio-modal-close {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 20px;
  padding: 4px;
}
.bio-modal-close:hover { color: #fff; }
.bio-qr-canvas-wrap {
  background: #ffffff;
  padding: 16px;
  border-radius: 14px;
  display: inline-block;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.bio-qr-canvas-wrap canvas, .bio-qr-canvas-wrap img {
  display: block;
  max-width: 100%;
}
.bio-copy-box {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 6px 8px 6px 14px;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.bio-copy-text {
  flex: 1;
  font-size: 13px;
  color: #d1d5db;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.bio-copy-btn {
  background: var(--bio-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.bio-copy-btn:hover { opacity: 0.9; }

/* TOAST */
.bio-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: #10b981;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 700;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
}
.bio-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
