/* ============================================================
   CodebyCarter — lab-power.css
   Style Lab full-potential upgrades: editable headlines,
   device preview toggle, scrollable multi-section mocks.
   ============================================================ */

/* ---------- Editable headlines ---------- */
.lab-mock-h{
  outline:1px dashed transparent;outline-offset:6px;
  border-radius:6px;
  transition:outline-color .25s ease,background .25s ease;
  cursor:text;
}
.lab-mock-h:hover{outline-color:var(--lab-muted,#5A5A66)}
.lab-mock-h:focus{
  outline:2px dashed var(--lab-c1,#A855F7);
  outline-offset:6px;
  background:rgba(168,85,247,.05);
}

/* "click to edit" affordance shown when hovering lab-preview */
.lab-edit-hint{
  position:absolute;bottom:14px;right:14px;
  font-family:'JetBrains Mono',monospace;font-size:10px;letter-spacing:.06em;
  text-transform:uppercase;color:#9090A0;
  opacity:0;pointer-events:none;
  transition:opacity .35s ease;
  padding:5px 10px;border-radius:999px;
  background:rgba(15,15,20,.7);backdrop-filter:blur(6px);
  z-index:3;
}
.lab-preview:hover .lab-edit-hint{opacity:1}

/* ---------- Device preview toggle ---------- */
.lab-device-toggle{
  position:absolute;top:14px;left:50%;transform:translateX(-50%);
  display:inline-flex;gap:2px;padding:4px;
  background:rgba(15,15,20,.65);
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  z-index:3;
}
.lab-device-toggle button{
  width:32px;height:32px;border-radius:999px;
  display:grid;place-items:center;
  color:#9090A0;
  transition:background .25s ease,color .25s ease,transform .25s ease;
  cursor:none;
}
.lab-device-toggle button:hover{background:rgba(255,255,255,.06);color:#F5F5F7;transform:translateY(-1px)}
.lab-device-toggle button.is-active{background:#F5F5F7;color:#0A0A0F}

/* Push preview content down so the device toggle has room */
.lab-preview{padding-top:64px}

/* Constrain the mock width per device choice */
.lab-mock{transition:max-width .5s cubic-bezier(.16,1,.3,1)}
.lab-preview[data-device="desktop"] .lab-mock{max-width:560px}
.lab-preview[data-device="tablet"] .lab-mock{max-width:420px}
.lab-preview[data-device="mobile"] .lab-mock{max-width:280px}

/* Reflow content on narrower devices */
.lab-preview[data-device="mobile"] .lab-features,
.lab-preview[data-device="mobile"] .lab-products,
.lab-preview[data-device="mobile"] .lab-gallery,
.lab-preview[data-device="mobile"] .lab-logos,
.lab-preview[data-device="mobile"] .lab-prices{grid-template-columns:1fr !important;gap:8px !important}
.lab-preview[data-device="mobile"] .lab-mock-h{font-size:22px !important;line-height:1.05 !important}
.lab-preview[data-device="mobile"] .lab-mock-body{padding:18px !important}
.lab-preview[data-device="mobile"] .lab-section-2{padding:14px 18px 22px !important}
.lab-preview[data-device="mobile"] .lab-mock{max-height:420px}

.lab-preview[data-device="tablet"] .lab-features,
.lab-preview[data-device="tablet"] .lab-products,
.lab-preview[data-device="tablet"] .lab-gallery,
.lab-preview[data-device="tablet"] .lab-prices{grid-template-columns:repeat(2,1fr) !important}
.lab-preview[data-device="tablet"] .lab-logos{grid-template-columns:repeat(2,1fr) !important}
.lab-preview[data-device="tablet"] .lab-mock-h{font-size:30px !important}

/* ---------- Scrollable mock (full-page demo) ---------- */
.lab-mock{
  max-height:520px;
  overflow:hidden;
  display:flex;flex-direction:column;
}
.lab-tmpl.is-active{
  flex:1;overflow-y:auto;overflow-x:hidden;
  scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.2) transparent;
}
.lab-tmpl.is-active::-webkit-scrollbar{width:6px}
.lab-tmpl.is-active::-webkit-scrollbar-thumb{background:rgba(0,0,0,.18);border-radius:99px}
.lab-tmpl.is-active::-webkit-scrollbar-track{background:transparent}
.lab-mock[data-theme="cyber"] .lab-tmpl.is-active::-webkit-scrollbar-thumb,
.lab-mock[data-theme="mono"] .lab-tmpl.is-active::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18)}

/* Scroll hint indicator inside the mock */
.lab-mock::after{
  content:"";position:absolute;bottom:0;left:0;right:0;height:32px;
  background:linear-gradient(to bottom,transparent,var(--lab-bg,#FAFAF7));
  pointer-events:none;opacity:.85;z-index:1;
}
.lab-preview{position:relative}

/* ---------- Section 2 (industry-specific extra block) ---------- */
.lab-section-2{
  padding:22px 32px 30px;
  border-top:1px solid var(--lab-border,rgba(10,10,15,.08));
  color:var(--lab-text,#0A0A0F);
}
.lab-mock[data-density="tight"] .lab-section-2{padding:14px 20px 22px}
.lab-mock[data-density="airy"] .lab-section-2{padding:32px 48px 42px}

/* Restaurant: hours + address */
.lab-hours{display:flex;flex-direction:column;gap:7px;font-size:12px}
.lab-hours > div{display:flex;justify-content:space-between;align-items:center}
.lab-hours > div span:first-child{font-weight:600;letter-spacing:-.005em}
.lab-hours > div span:last-child{font-family:'JetBrains Mono',monospace;color:var(--lab-muted,#5A5A66);font-size:11px}
.lab-address{
  margin-top:14px;font-size:10.5px;color:var(--lab-muted,#5A5A66);
  font-family:'JetBrains Mono',monospace;letter-spacing:.04em;text-align:center;
  padding-top:12px;border-top:1px solid var(--lab-border,rgba(10,10,15,.08));
}

/* SaaS: pricing teaser cards */
.lab-prices{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.lab-price-card{
  padding:10px 8px;border-radius:8px;
  background:rgba(0,0,0,.05);
  display:flex;flex-direction:column;gap:2px;align-items:center;
}
.lab-mock[data-theme="cyber"] .lab-price-card,
.lab-mock[data-theme="mono"] .lab-price-card{background:rgba(255,255,255,.04)}
.lab-price-name{font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--lab-muted,#5A5A66);font-family:'JetBrains Mono',monospace}
.lab-price-amt{font-size:19px;font-weight:600;color:var(--lab-text,#0A0A0F);letter-spacing:-.02em;margin-top:2px}

/* Portfolio: client mentions */
.lab-clients{
  font-size:12px;line-height:1.55;color:var(--lab-muted,#5A5A66);
  font-family:'Instrument Serif',serif;font-style:italic;text-align:center;
}

/* E-commerce: review snippet */
.lab-reviews{display:flex;flex-direction:column;gap:6px;align-items:center;text-align:center}
.lab-review-stars{font-size:14px;color:var(--lab-c2,#EC4899);letter-spacing:.15em}
.lab-review-quote{
  font-size:12px;color:var(--lab-text,#0A0A0F);
  font-family:'Instrument Serif',serif;font-style:italic;line-height:1.4;
}

/* Agency: services chips */
.lab-services{display:flex;flex-wrap:wrap;gap:5px;justify-content:center}
.lab-services span{
  padding:5px 10px;border-radius:99px;font-size:10.5px;
  background:rgba(0,0,0,.05);
  color:var(--lab-text,#0A0A0F);font-weight:500;
}
.lab-mock[data-theme="cyber"] .lab-services span,
.lab-mock[data-theme="mono"] .lab-services span{background:rgba(255,255,255,.04)}

/* Creator: subscribe row */
.lab-sub-row{
  display:flex;justify-content:space-between;align-items:center;gap:10px;
  padding:11px 14px;border-radius:8px;
  background:linear-gradient(135deg,rgba(168,85,247,.10),rgba(6,182,212,.06));
  font-size:11.5px;color:var(--lab-text,#0A0A0F);
}
.lab-sub-btn{
  font-family:'JetBrains Mono',monospace;font-size:10px;letter-spacing:.06em;
  background:var(--lab-c1,#A855F7);color:#FAFAF7;padding:6px 11px;border-radius:99px;font-weight:600;
}
