/* =====================================================================
   Wireframe Studio — additions on top of the OXYNTIO theme.
   Loaded AFTER site.css or admin.css. Contains only the few patterns
   neither base stylesheet ships: the public auth stage and the project
   grid. Every colour here is an OXYNTIO token, so light mode follows
   automatically.
   ===================================================================== */

/* ------------------------------------------- centred hero + preview */
.hero.center{text-align:center}
.hero.center .hero-inner{max-width:820px;margin:0 auto}
/* no eyebrow above the headline, so reclaim its 20px of bottom margin */
.hero.center .hero-inner h1{margin-top:8px}
.hero.center .hero-actions{justify-content:center;margin-bottom:0}
.hero.center p.sub{margin-left:auto;margin-right:auto}

/* browser frame wrapping a miniature of the editor */
.hero-preview{
  max-width:940px;margin:64px auto 0;border-radius:18px;overflow:hidden;
  border:1px solid var(--line);background:var(--panel);
  box-shadow:0 40px 90px -40px rgba(0,0,0,.9);text-align:left;
}
.hp-bar{
  display:flex;align-items:center;gap:8px;padding:13px 16px;
  border-bottom:1px solid var(--line);background:var(--panel-2);
}
.hp-bar i{width:11px;height:11px;border-radius:50%;background:#39405f;display:block;flex-shrink:0}
.hp-bar i:nth-child(1){background:#ff5f57}
.hp-bar i:nth-child(2){background:#febc2e}
.hp-bar i:nth-child(3){background:#28c840}
.hp-bar span{
  margin-left:10px;font-size:13px;color:var(--txt-3);
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
}
.hp-body{display:grid;grid-template-columns:118px 1fr 128px;min-height:250px}
.hp-pane{padding:16px 14px;display:flex;flex-direction:column;gap:9px}
.hp-pane:first-child{border-right:1px solid var(--line)}
.hp-pane:last-child{border-left:1px solid var(--line)}
.hp-stub{height:9px;border-radius:4px;background:var(--tint-3,rgba(255,255,255,.07));display:block}
.hp-stub.w40{width:40%}.hp-stub.w60{width:60%}.hp-stub.w80{width:80%}

.hp-canvas{
  padding:22px;display:flex;flex-direction:column;gap:14px;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size:22px 22px;
}
.hp-box{
  border:1.5px dashed rgba(139,92,246,.55);border-radius:8px;
  background:rgba(34,211,238,.05);flex-shrink:0;
}
.hp-box.h34{height:34px}
.hp-box.h84{height:84px}
.hp-row{display:flex;gap:14px}
.hp-row .hp-box{flex:1;height:44px}

@media(max-width:820px){
  .hero-preview{margin-top:44px}
  .hp-body{grid-template-columns:1fr}
  .hp-pane{display:none}
}

/* the light theme needs its own grid and stub tints */
:root[data-theme="light"] .hp-stub{background:rgba(15,23,42,.08)}
:root[data-theme="light"] .hp-canvas{
  background-image:
    linear-gradient(rgba(15,23,42,.05) 1px,transparent 1px),
    linear-gradient(90deg,rgba(15,23,42,.05) 1px,transparent 1px);
}
:root[data-theme="light"] .hp-box{border-color:rgba(124,58,237,.45);background:rgba(6,182,212,.06)}
:root[data-theme="light"] .hero-preview{box-shadow:0 30px 70px -40px rgba(15,23,42,.45)}

/* ------------------------------------------------- public auth stage */
.auth-stage{
  min-height:100vh;display:grid;place-items:center;padding:40px 20px;position:relative;
}
.auth-card{
  position:relative;width:100%;max-width:432px;background:var(--card-bg);
  border:1px solid var(--line);border-radius:20px;padding:38px;
}
.auth-card .auth-mark{
  width:52px;height:52px;border-radius:15px;background:var(--grad);margin:0 auto 20px;
  display:grid;place-items:center;color:var(--on-grad);font-weight:900;font-size:22px;
}
.auth-card h1{font-size:22px;text-align:center;margin-bottom:6px}
.auth-card .sb{text-align:center;color:var(--txt-3);font-size:14px;margin-bottom:28px}
.auth-foot{text-align:center;margin-top:22px;font-size:13.5px;color:var(--txt-3)}
.auth-foot a{color:var(--cy);font-weight:600}
.auth-foot + .auth-foot{margin-top:8px;font-size:12.5px}
.auth-back{
  position:absolute;top:26px;left:26px;font-size:13px;color:var(--txt-3);
  display:inline-flex;align-items:center;gap:7px;
}
.auth-back:hover{color:var(--cy)}
.remember{display:flex;align-items:center;gap:10px;font-size:13.5px;color:var(--txt-2);cursor:pointer}
.remember input{width:auto}

/* ------------------------------------------------------ project grid */
.proj-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(252px,1fr));gap:18px}
.proj{
  background:var(--surface);border:1px solid var(--line);border-radius:14px;
  overflow:hidden;transition:.25s var(--ease);display:flex;flex-direction:column;
}
.proj:hover{transform:translateY(-3px);border-color:rgba(34,211,238,.34)}
.proj .thumb{
  height:150px;display:grid;place-items:center;color:var(--txt-3);font-size:12.5px;
  overflow:hidden;position:relative;background:var(--field-bg);
  background-image:
    linear-gradient(var(--tint-3) 1px,transparent 1px),
    linear-gradient(90deg,var(--tint-3) 1px,transparent 1px);
  background-size:18px 18px,18px 18px;
}
.proj .thumb img{width:100%;height:100%;object-fit:cover;object-position:top}
.proj .meta{padding:14px 15px;flex:1}
.proj .meta h3{font-size:14.5px;margin:0 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.proj .meta p{font-size:11.5px;color:var(--txt-3);margin:0;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.proj .acts{display:flex;gap:6px;padding:0 15px 14px}
.proj .acts .a-btn{flex:1;padding:6.5px 8px;font-size:12.5px}
.proj .acts .a-btn.ic{flex:0 0 30px;padding:6.5px 0}

/* project thumbnail placeholder mark */
.proj .thumb .ph{
  display:flex;flex-direction:column;gap:6px;width:64%;opacity:.55;pointer-events:none;
}
.proj .thumb .ph i{display:block;border:1.5px dashed var(--line-2);border-radius:5px}
.proj .thumb .ph i:nth-child(1){height:12px}
.proj .thumb .ph i:nth-child(2){height:34px}
.proj .thumb .ph i:nth-child(3){height:12px;width:56%}

/* ----------------------------------------------------- small helpers */
.stack{display:flex;flex-direction:column;gap:3px}
.stack small{color:var(--txt-3);font-size:12px}
.u-av{
  width:32px;height:32px;border-radius:50%;display:grid;place-items:center;
  color:var(--on-grad);font-weight:800;font-size:13px;flex-shrink:0;background:var(--grad);
}
.inline-form{display:inline}
.env-table{width:100%;border-collapse:collapse;font-size:13px}
.env-table td{padding:9px 0;border-bottom:1px solid var(--line)}
.env-table td:last-child{text-align:right;color:var(--txt-3)}
.env-table tr:last-child td{border-bottom:0}
