/* MonsterLink — public page + phone preview styles.
   Every colour comes from --pg-* variables set by themes.js applyTheme(). */

.ml-page {
  font-family: var(--pg-font, system-ui);
  background: var(--pg-bg, #FAF7F0);
  color: var(--pg-text, #191621);
  min-height: 100%;
  padding: 34px 18px 40px;
}
.ml-page > * { max-width: 640px; margin-left: auto; margin-right: auto; }

/* Header */
.ml-header { text-align: center; }
.ml-avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 14px; box-shadow: 0 0 0 4px var(--pg-card), 0 10px 30px rgba(0,0,0,.14);
}
.ml-avatar-mono {
  display: grid; place-items: center; font-size: 40px; font-weight: 800;
  background: var(--pg-card); color: var(--pg-card-text);
}
.ml-name {
  font-size: 26px; font-weight: 800; letter-spacing: -0.01em;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.ml-verified { color: var(--pg-accent); flex: none; }
.ml-bio { margin: 8px auto 0; color: var(--pg-muted); max-width: 44ch; font-size: 15px; }

/* Socials (a block since 2026-07: sits wherever it is dragged in the column) */
.ml-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.ml-socials a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; color: var(--pg-text); transition: background .15s, transform .15s;
}
.ml-socials a:hover { background: var(--pg-card); transform: translateY(-2px); }

/* Blocks column */
.ml-blocks { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }

/* Simple + tall buttons */
.ml-btn {
  display: block; text-align: center; text-decoration: none;
  padding: 16px 20px; font-weight: 700; font-size: 15.5px;
  background: var(--pg-btn-bg); color: var(--pg-btn-text);
  border: var(--pg-border-w) solid var(--pg-btn-border);
  border-radius: var(--pg-radius); box-shadow: var(--pg-btn-shadow);
  transition: transform .16s ease, box-shadow .16s ease;
}
.ml-btn:hover { transform: translateY(-2px); }
.ml-btn:active { transform: translateY(0) scale(.99); }
.ml-btn-tall { display: flex; flex-direction: column; gap: 3px; }
.ml-btn-desc { font-weight: 500; font-size: 13px; opacity: .72; }

/* Rich link card */
.ml-card {
  display: flex; align-items: stretch; overflow: hidden; text-decoration: none;
  background: var(--pg-card); color: var(--pg-card-text);
  border: var(--pg-border-w) solid var(--pg-card-border);
  border-radius: var(--pg-radius-card); box-shadow: var(--pg-btn-shadow);
  transition: transform .16s ease;
}
.ml-card:hover { transform: translateY(-2px); }
.ml-card-img { width: 96px; min-height: 88px; object-fit: cover; flex: none; }
.ml-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.ml-card-title { font-weight: 700; font-size: 15.5px; }
.ml-card-desc { font-size: 13px; color: var(--pg-muted); }
.ml-page .ml-card-desc { color: inherit; opacity: .68; }

/* Heading */
.ml-h2 { text-align: center; font-size: 17px; font-weight: 800; margin-top: 14px; letter-spacing: .01em; }
.ml-h2:first-child { margin-top: 0; }

/* Panels (about, faq, forms, spotlight, grid…) */
.ml-panel {
  background: var(--pg-card); color: var(--pg-card-text);
  border: var(--pg-border-w) solid var(--pg-card-border);
  border-radius: var(--pg-radius-card); padding: 18px;
  box-shadow: var(--pg-btn-shadow);
}
.ml-panel-title { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.ml-panel-text { font-size: 14.5px; opacity: .85; white-space: pre-line; }

/* Video */
.ml-video {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--pg-radius-card);
}
.ml-video img { width: 100%; height: 100%; object-fit: cover; }
.ml-video iframe { width: 100%; height: 100%; border: 0; }
.ml-video-playing { background: #000; }
.ml-play {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px;
  border-radius: 50%; background: rgba(255,255,255,.94); color: #111;
  display: grid; place-items: center; padding-left: 4px;
  transition: transform .15s; box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.ml-play:hover { transform: scale(1.08); }
.ml-video-title {
  position: absolute; left: 12px; bottom: 10px; right: 12px;
  color: #fff; font-weight: 700; font-size: 14px; text-shadow: 0 1px 8px rgba(0,0,0,.7);
}
.ml-video-empty { display: grid; place-items: center; background: var(--pg-card); }

/* Photo grid */
.ml-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ml-grid-cell { padding: 0; border-radius: 10px; overflow: hidden; }
.ml-grid-cell img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .2s; }
.ml-grid-cell:hover img { transform: scale(1.05); }
.ml-grid-mock { display: block; aspect-ratio: 1; }

/* Carousel */
.ml-carousel-title { margin-bottom: 10px; color: var(--pg-text); }
.ml-carousel {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px; scrollbar-width: none;
}
.ml-carousel::-webkit-scrollbar { display: none; }
.ml-carousel-item {
  flex: 0 0 76%; scroll-snap-align: center; text-decoration: none;
  background: var(--pg-card); color: var(--pg-card-text);
  border: var(--pg-border-w) solid var(--pg-card-border);
  border-radius: var(--pg-radius-card); overflow: hidden;
}
.ml-carousel-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ml-carousel-ph { display: block; aspect-ratio: 4 / 3; background: linear-gradient(135deg, rgba(0,0,0,.05), rgba(0,0,0,.14)); }
.ml-carousel-label { display: block; padding: 11px 14px; font-weight: 700; font-size: 14px; }

/* Spotlight */
.ml-spot { padding: 0; overflow: hidden; }
.ml-spot-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ml-spot-body { padding: 18px; text-align: center; }
.ml-spot-title { font-size: 18px; font-weight: 800; }
.ml-spot-text { margin-top: 6px; font-size: 14.5px; opacity: .8; }
.ml-spot-btn { margin-top: 14px; }

/* Music embed */
.ml-music { border-radius: var(--pg-radius-card); overflow: hidden; }
.ml-music iframe { display: block; width: 100%; border: 0; }
.ml-music-ph { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14.5px; }
.ml-music-ico {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--pg-accent) 16%, transparent);
  color: var(--pg-accent);
}

/* Social stats */
.ml-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; margin-top: 4px; }
.ml-stats-cell {
  text-align: center; padding: 14px 6px;
  border: var(--pg-border-w) solid var(--pg-card-border);
  border-radius: calc(var(--pg-radius-card) - 10px);
}
.ml-stats-ico { display: flex; justify-content: center; margin-bottom: 6px; opacity: .85; }
.ml-stats-val { display: block; font-weight: 800; font-size: 20px; }
.ml-stats-lab { display: block; font-size: 11.5px; font-weight: 600; opacity: .6; margin-top: 2px; }

/* Resume timeline */
.ml-rz { margin-top: 6px; }
.ml-rz-item { position: relative; padding: 0 0 16px 26px; }
.ml-rz-item:last-child { padding-bottom: 2px; }
.ml-rz-item::before { content: ''; position: absolute; left: 5.5px; top: 16px; bottom: 0; width: 1.5px; background: var(--pg-card-border); }
.ml-rz-item:last-child::before { display: none; }
.ml-rz-dot { position: absolute; left: 0; top: 3px; width: 13px; height: 13px; border-radius: 50%; background: var(--pg-accent); }
.ml-rz-period { display: block; font-size: 12.5px; font-weight: 600; opacity: .6; }
.ml-rz-role { display: block; font-weight: 800; font-size: 15px; margin-top: 2px; }
.ml-rz-place { display: block; font-size: 14px; opacity: .8; }

/* Countdown */
.ml-count-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.ml-count-cell { text-align: center; }
.ml-count-num {
  display: block; padding: 13px 4px; font-weight: 800; font-size: 22px;
  font-variant-numeric: tabular-nums;
  border: var(--pg-border-w) solid var(--pg-card-border);
  border-radius: calc(var(--pg-radius-card) - 10px);
}
.ml-count-lab { display: block; margin-top: 6px; font-size: 10.5px; letter-spacing: .08em; font-weight: 700; opacity: .55; text-transform: uppercase; }
.ml-count-btn { margin-top: 14px; }

/* Donate */
.ml-donate-head { display: flex; gap: 12px; align-items: center; }
.ml-donate-heart {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--pg-accent) 16%, transparent);
  color: var(--pg-accent);
}
.ml-donate-title { display: block; font-weight: 800; font-size: 16px; }
.ml-donate-text { display: block; font-size: 13.5px; opacity: .7; margin-top: 2px; }
.ml-donate-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ml-btn-sm { display: inline-flex; padding: 10px 18px; font-size: 14px; }

/* FAQ */
.ml-faq-item { border-top: 1px solid var(--pg-card-border); }
.ml-faq-item:first-of-type { border-top: 0; }
.ml-faq-item summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 2px; font-weight: 700; font-size: 14.5px; cursor: pointer;
}
.ml-faq-item summary::-webkit-details-marker { display: none; }
.ml-faq-item svg { flex: none; transition: transform .2s; opacity: .6; }
.ml-faq-item[open] svg { transform: rotate(180deg); }
.ml-faq-item p { padding: 0 2px 12px; font-size: 14px; opacity: .8; white-space: pre-line; }

/* Testimonials */
.ml-tst-wrap { display: flex; flex-direction: column; gap: 12px; }
.ml-tst blockquote { font-size: 15px; font-weight: 500; }
.ml-tst blockquote::before { content: '“'; display: block; font-size: 34px; line-height: .6; opacity: .3; margin-bottom: 6px; }
.ml-tst figcaption { margin-top: 10px; font-size: 13px; font-weight: 700; opacity: .65; }

/* Forms */
.ml-form { display: flex; flex-direction: column; gap: 10px; }
.ml-form .ml-panel-title, .ml-form .ml-panel-text { margin-bottom: 0; }
.ml-form-row { display: flex; gap: 8px; }
.ml-form-row .ml-input { flex: 1; min-width: 0; }
.ml-input {
  padding: 12px 14px; border-radius: calc(var(--pg-radius-card) - 8px);
  border: var(--pg-border-w) solid var(--pg-card-border);
  background: transparent; color: inherit; width: 100%;
}
.ml-input::placeholder { color: inherit; opacity: .45; }
.ml-form-btn { flex: none; padding: 12px 18px; }
.ml-form-done { font-weight: 700; font-size: 14.5px; }

/* Lightbox */
.ml-lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 8, 14, .92);
  display: grid; place-items: center; padding: 24px;
}
.ml-lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 12px; object-fit: contain; }
.ml-lightbox-x { position: absolute; top: 14px; right: 16px; color: #fff; font-size: 22px; padding: 8px; }
.ml-lightbox-nav button {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: #fff; font-size: 42px; padding: 10px 16px; line-height: 1;
}
.ml-lightbox-nav button:first-child { left: 6px; }
.ml-lightbox-nav button:last-child { right: 6px; }

/* Made with badge + share chip (live page chrome) */
.ml-made {
  display: inline-flex; align-items: center; gap: 7px; margin: 34px auto 0;
  padding: 8px 15px; border-radius: 999px; text-decoration: none;
  background: var(--pg-card); color: var(--pg-card-text);
  border: var(--pg-border-w) solid var(--pg-card-border);
  font-size: 12.5px; font-weight: 700;
}
.ml-made-wrap { text-align: center; }
.ml-made svg { width: 16px; height: 16px; }
.ml-share {
  position: fixed; top: 14px; right: 14px; z-index: 50;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--pg-card); color: var(--pg-card-text);
  border: var(--pg-border-w) solid var(--pg-card-border);
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

/* Phone frame (editor preview, onboarding, landing) */
.phone {
  width: 330px; height: 660px; flex: none;
  border-radius: 44px; border: 3px solid var(--ink);
  background: var(--ink); padding: 4px;
  box-shadow: 0 30px 70px rgba(25, 22, 33, .28);
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 37px; overflow: hidden auto;
  background: #fff; scrollbar-width: none;
}
.phone-screen.ml-page { background: var(--pg-bg); }
.phone-screen::-webkit-scrollbar { display: none; }
.phone-screen .ml-page { min-height: 100%; padding: 26px 14px 34px; }

/* 404 monster */
.ml-404 { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 24px; background: var(--paper); }
.ml-404 h1 { font-family: var(--font-display); font-size: 30px; letter-spacing: -0.02em; }
.ml-404 p { color: var(--muted); margin-top: 8px; }
.ml-404 .ml-404-cta {
  display: inline-block; margin-top: 18px; padding: 13px 26px; border-radius: 999px;
  background: var(--ink); color: var(--slime); font-weight: 800; text-decoration: none;
}
.ml-404 .logo-mark { width: 74px; height: 74px; margin: 0 auto 18px; animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
