/* Mockup frame — shared by the live preview and the exported PNG. */
.mf-stage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, system-ui, sans-serif;
}
.mf-frame {
  width: 100%;
  max-width: 940px;
  background: #fff;
  overflow: hidden;
  border: 1px solid rgba(20, 30, 40, 0.06);
}
/* corners */
.mf-frame.corners-rounded { border-radius: 16px; }
.mf-frame.corners-soft { border-radius: 26px; }
.mf-frame.corners-sharp { border-radius: 4px; }
/* shadows */
.mf-frame.shadow-none { box-shadow: none; }
.mf-frame.shadow-soft { box-shadow: 0 22px 60px -20px rgba(40, 54, 74, 0.35); }
.mf-frame.shadow-intense { box-shadow: 0 40px 90px -24px rgba(40, 54, 74, 0.55), 0 8px 20px -8px rgba(40, 54, 74, 0.3); }

/* title bar */
.mf-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  background: linear-gradient(180deg, #ffffff, #f6f7f9);
  border-bottom: 1px solid rgba(20, 30, 40, 0.06);
}
.mf-bar-dark {
  background: linear-gradient(180deg, #2b3138, #22272d);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.mf-controls { display: flex; gap: 8px; flex: none; }
.mf-dot { width: 12px; height: 12px; border-radius: 50%; }
.mf-dot.r { background: #f0a19a; }
.mf-dot.y { background: #f4d6a0; }
.mf-dot.g { background: #aed9b6; }
.mf-bar-dark .mf-dot.r { background: #ff5f57; }
.mf-bar-dark .mf-dot.y { background: #febc2e; }
.mf-bar-dark .mf-dot.g { background: #28c840; }
.mf-line { width: 16px; height: 2.5px; border-radius: 3px; background: #c4ccd4; }
.mf-bar-dark .mf-line { background: #565f68; }

.mf-url, .mf-file {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mf-url {
  color: #8a939c;
  background: #eef1f4;
  border-radius: 999px;
  padding: 6px 16px;
  max-width: 62%;
  margin: 0 auto;
}
.mf-file { color: #aab3bc; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; }

/* content */
.mf-content { display: block; background: #fff; }
.is-code .mf-content { background: #24292e; }
.mf-shot { display: block; width: 100%; height: auto; }
.mf-code {
  margin: 0;
  padding: 22px 24px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.75;
  color: #e6edf3;
  white-space: pre;
  overflow-x: auto;
  tab-size: 2;
}
.mf-code .tk-k { color: #f0a4d0; }
.mf-code .tk-s { color: #a7e0b0; }
.mf-code .tk-n { color: #f2c48b; }
.mf-code .tk-c { color: #8b98a5; font-style: italic; }

.mf-placeholder {
  padding: 90px 30px;
  text-align: center;
  color: #aab3bc;
  font-size: 14.5px;
  letter-spacing: 0.01em;
}
.is-code .mf-placeholder { color: #6b7681; }

/* ============================================================================
   DEVICE FRAMES — laptop / phone / tv
   ========================================================================== */
/* Laptop */
.mf-laptop { width: 100%; max-width: 900px; display: flex; flex-direction: column; align-items: center; }
.mf-laptop-lid {
  width: 84%; background: #fff; overflow: hidden;
  border: 8px solid #1c1f24; border-bottom: none;
}
.mf-laptop-lid.corners-soft { border-radius: 20px 20px 0 0; }
.mf-laptop-lid.corners-rounded { border-radius: 14px 14px 0 0; }
.mf-laptop-lid.corners-sharp { border-radius: 6px 6px 0 0; }
.mf-laptop-deck {
  width: 100%; height: 22px; position: relative;
  background: linear-gradient(180deg, #d6dade 0%, #c0c6cc 55%, #a9b0b7 100%);
  border-radius: 3px 3px 12px 12px;
  box-shadow: inset 0 3px 5px -3px rgba(255,255,255,0.8);
}
.mf-laptop-deck::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 16%; height: 8px; background: #aeb4bb; border-radius: 0 0 9px 9px;
}

/* Phone */
.mf-phone {
  width: 300px; max-width: 82vw; background: #14171b; padding: 11px;
  border-radius: 42px; position: relative; overflow: hidden;
}
.mf-phone-notch {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 44%; height: 26px; background: #14171b; border-radius: 0 0 16px 16px; z-index: 3;
}
.mf-phone-screen { border-radius: 32px; overflow: hidden; background: #fff; }
.mf-phone-screen .mf-content { min-height: 380px; }
.mf-phone-screen .mf-shot { min-height: 380px; object-fit: cover; object-position: top; }

/* TV / monitor */
.mf-tv { width: 100%; max-width: 900px; display: flex; flex-direction: column; align-items: center; }
.mf-tv-screen {
  width: 100%; background: #fff; overflow: hidden;
  border: 14px solid #191c20;
}
.mf-tv-screen.corners-soft { border-radius: 22px; }
.mf-tv-screen.corners-rounded { border-radius: 16px; }
.mf-tv-screen.corners-sharp { border-radius: 8px; }
.mf-tv-neck { width: 46px; height: 34px; background: linear-gradient(180deg, #2a2e34, #20242a); }
.mf-tv-foot { width: 190px; height: 12px; background: #23272d; border-radius: 8px; }

/* the shared shadow classes also apply to device bodies via .js-styled */

/* ============================================================================
   EFFECTS — reflection, 3D tilt, aspect ratios
   ========================================================================== */
.mf-device.reflect { -webkit-box-reflect: below 10px linear-gradient(transparent, transparent 56%, rgba(0, 0, 0, 0.18)); }
.mf-device.tilt-left { transform: perspective(1900px) rotateY(20deg) rotateX(5deg); }
.mf-device.tilt-right { transform: perspective(1900px) rotateY(-20deg) rotateX(5deg); }

.mf-stage.ar-16x9 { width: 1200px; height: 675px; overflow: hidden; }
.mf-stage.ar-1x1 { width: 1080px; height: 1080px; overflow: hidden; }
.mf-stage.ar-9x16 { width: 720px; height: 1280px; overflow: hidden; }
.mf-stage[class*="ar-"] .mf-device { max-width: 100%; max-height: 100%; }
