/* Copie générée par fractal-travel-io/extraire-maquettes.mjs depuis tsp.html (commit 0ba9c2c), noms réels remplacés. */
/* ============================================================
   FRACTALITE — Mockups
   Hi-fi product mockups for feature visuals
   ============================================================ */

.mk {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  --mk-ink: #0a0a12;
  --mk-ink-2: #3a3a4a;
  --mk-ink-3: #6a6a7a;
  --mk-line: rgba(0,0,0,0.08);
  --mk-bg: #fbfbfd;
  --mk-card: #ffffff;
  --mk-pink: #d946a0;
  --mk-violet: #8b5cbf;
  --mk-blue: #4a8fd9;
  --mk-green: #2fb870;
  --mk-amber: #f0a14a;
  --mk-coral: #ff8c5a;
}

.mk-bg-coral {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,140,90,0.25), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(217,70,160,0.18), transparent 55%),
    linear-gradient(160deg, #2a1518, #0a0a12);
}
.mk-bg-blue {
  background:
    radial-gradient(circle at 25% 15%, rgba(74,143,217,0.28), transparent 55%),
    radial-gradient(circle at 75% 85%, rgba(139,92,191,0.2), transparent 55%),
    linear-gradient(160deg, #0d1628, #0a0a12);
}
.mk-bg-pink {
  background:
    radial-gradient(circle at 30% 20%, rgba(217,70,160,0.28), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(139,92,191,0.2), transparent 55%),
    linear-gradient(160deg, #1f1224, #0a0a12);
}
.mk-bg-ink {
  background: linear-gradient(160deg, #141420, #0a0a12);
}

/* ---- iPhone frame ---- */
.mk-iphone {
  height: 88%;
  aspect-ratio: 0.486;
  background: #0a0a0f;
  border-radius: 28px;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.08),
    0 30px 60px -20px rgba(0,0,0,0.6),
    0 10px 30px -10px rgba(217,70,160,0.25);
  padding: 8px;
  position: relative;
  flex-shrink: 0;
  transform: perspective(1400px) rotateY(-8deg) rotateX(4deg);
  transform-origin: center;
}
.mk-iphone::before {
  content: "";
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 14px;
  background: #000;
  border-radius: 10px;
  z-index: 3;
}
.mk-iphone-screen {
  width: 100%;
  height: 100%;
  background: var(--mk-bg);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.mk-iphone-status {
  height: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 14px 3px;
  font-size: 9px;
  font-weight: 600;
  color: var(--mk-ink);
  flex-shrink: 0;
}
.mk-iphone-status .mk-status-right {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* ---- iPad / Tablet frame ---- */
.mk-ipad {
  width: 78%;
  aspect-ratio: 1.4;
  background: #0a0a0f;
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.08),
    0 30px 60px -20px rgba(0,0,0,0.6);
  padding: 10px;
  position: relative;
  transform: perspective(1600px) rotateY(-6deg) rotateX(3deg);
}
.mk-ipad-screen {
  width: 100%;
  height: 100%;
  background: var(--mk-bg);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

/* ---- Android frame ---- */
.mk-android {
  width: 60%;
  max-width: 250px;
  aspect-ratio: 0.48;
  background: #0a0a0f;
  border-radius: 28px;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.08),
    0 30px 60px -20px rgba(0,0,0,0.6);
  padding: 7px;
  position: relative;
}
.mk-android-screen {
  width: 100%;
  height: 100%;
  background: var(--mk-bg);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.mk-android::before {
  content: "";
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  background: #1a1a22;
  border: 1px solid #2a2a35;
  border-radius: 50%;
  z-index: 3;
}

/* ---- Laptop/Desktop frame (for RoomEase/TSP dashboards) ---- */
.mk-laptop {
  width: 90%;
  aspect-ratio: 1.5;
  background: #0a0a0f;
  border-radius: 12px 12px 4px 4px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 30px 60px -20px rgba(0,0,0,0.5);
  padding: 22px 6px 6px;
  position: relative;
}
.mk-laptop::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 4px;
  background: #1a1a22;
  border-radius: 2px;
}
.mk-laptop-screen {
  width: 100%;
  height: 100%;
  background: var(--mk-bg);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ---- Browser chrome ---- */
.mk-browser {
  width: 92%;
  aspect-ratio: 1.45;
  background: #ffffff;
  border-radius: 10px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05),
    0 30px 60px -20px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mk-browser-chrome {
  height: 28px;
  background: #f3f3f6;
  border-bottom: 1px solid var(--mk-line);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
  flex-shrink: 0;
}
.mk-browser-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #d2d2d8;
}
.mk-browser-dot.red { background: #fc5a5a; }
.mk-browser-dot.yellow { background: #fdbc40; }
.mk-browser-dot.green { background: #34c749; }
.mk-browser-url {
  margin-left: 14px;
  flex: 1;
  height: 18px;
  background: #e8e8ec;
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 9px;
  color: #6a6a72;
  font-family: "JetBrains Mono", monospace;
}
.mk-browser-body {
  flex: 1;
  display: flex;
  min-height: 0;
  background: #ffffff;
}

/* ---- Common widgets inside screens ---- */
.mk-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}
.mk-chip-pink { background: rgba(217,70,160,0.12); color: #b2327f; }
.mk-chip-violet { background: rgba(139,92,191,0.12); color: #6e3ea3; }
.mk-chip-blue { background: rgba(74,143,217,0.14); color: #2f6fb4; }
.mk-chip-green { background: rgba(47,184,112,0.14); color: #1d8851; }
.mk-chip-amber { background: rgba(240,161,74,0.16); color: #b67a2b; }
.mk-chip-ghost { background: rgba(10,10,18,0.06); color: var(--mk-ink-2); }

.mk-bar {
  height: 6px; border-radius: 3px; background: #eef0f4;
  overflow: hidden; position: relative;
}
.mk-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--mk-pink), var(--mk-violet));
  border-radius: 3px;
}

.mk-label-row {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--mk-ink-2);
  margin-bottom: 4px;
}

/* Floating card behind phone */
.mk-floating-card {
  position: absolute;
  background: var(--mk-card);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
  font-size: 10px;
  color: var(--mk-ink);
  min-width: 140px;
  backdrop-filter: blur(6px);
  z-index: 4;
}
.mk-floating-card .lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mk-ink-3);
  margin-bottom: 4px;
}

/* ---- Subtle grid overlay ---- */
.mk-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
