/*
 * Parix.ai | Hash Generator (MD5/SHA) - page styles.
 * Loads after tool-ds.css, scoped to .pxhg. The .hgn-* rules restyle the live
 * generator in place; its markup, ids and script are untouched.
 */

/* ---------- hero ---------- */
.pxhg .hgn-head{text-align:center;max-width:720px;margin:0 auto}
.pxhg .hgn-badge{display:inline-block;font-size:14px;font-weight:700;color:#eb600e;margin:14px 0 0}
.pxhg .hgn-head h1{font:800 clamp(2.3rem,5vw,3.6rem)/1.05 var(--font-head);letter-spacing:-.02em;
  color:var(--ink);margin:.25em 0 .3em}
.pxhg .hgn-head p{font-size:1.15rem;color:var(--muted);max-width:640px;margin:0 auto}

/* ---------- the generator, restyled in place ---------- */
.pxhg .hgn-card{max-width:1040px;margin:28px auto 0;background:#fff;border:1px solid var(--line);
  border-radius:22px;padding:20px;text-align:left;display:grid;gap:14px;
  box-shadow:0 1px 2px rgba(58,42,33,.04),0 24px 48px -30px rgba(58,42,33,.28)}
.pxhg .hgn-ta{width:100%;padding:12px;border:1px solid var(--line-2);border-radius:12px;
  font:15px/1.5 ui-monospace,Menlo,Consolas,monospace;color:var(--ink);resize:vertical;min-height:120px;
  background:#fff}
.pxhg .hgn-ta:focus{outline:2px solid #eb600e;outline-offset:0;border-color:#eb600e}
.pxhg .hgn-out{display:grid;gap:10px}

/* the live tool prints its rows into .hgn-out; give whatever it prints the
   design-system card treatment without depending on its inner class names */
.pxhg .hgn-out > *{border:1px solid var(--line);border-radius:14px;padding:10px 12px;background:#fff}
.pxhg .hgn-out code,.pxhg .hgn-out pre{font:13px/1.45 ui-monospace,Menlo,Consolas,monospace;
  word-break:break-all;color:var(--ink)}
.pxhg .hgn-out strong,.pxhg .hgn-out b{font:800 13px/1 var(--font-head);background:#fde9dc;
  color:#b8520f;border-radius:8px;padding:6px 8px;display:inline-block;margin-bottom:6px}
.pxhg .hgn-out button{border:1.5px solid var(--line-2);background:#fff;border-radius:10px;
  padding:6px 10px;font:700 12.5px/1 var(--font-body);cursor:pointer;color:var(--ink)}
.pxhg .hgn-out button:hover{border-color:#eb600e}

/* ---------- the hashing machine ---------- */
.pxhg .mach{display:grid;gap:10px}
.pxhg .mach small{display:block;font-size:12px;font-weight:700;color:var(--muted);margin-bottom:4px}
.pxhg .mach-in span{display:block;min-height:40px;padding:10px 12px;border-radius:10px;
  background:var(--mist);font:600 15px/1.3 ui-monospace,Menlo,Consolas,monospace}
.pxhg .mach-in span::after{content:"";display:inline-block;width:2px;height:1em;background:#eb600e;
  margin-left:2px;vertical-align:-2px;animation:dblink 1s steps(1) infinite}
.pxhg .mach-box{position:relative;height:64px;border-radius:14px;background:#2b211b;display:flex;
  align-items:center;justify-content:center;gap:8px;overflow:hidden}
.pxhg .mach-box b{position:relative;color:#fff;font:800 14px/1 var(--font-head);letter-spacing:.04em}
.pxhg .mach-box i{position:absolute;width:26px;height:26px;border-radius:50%;border:3px dashed #eb600e;
  opacity:.6;animation:hgspin 2.4s linear infinite}
.pxhg .mach-box i:nth-child(1){left:18%}
.pxhg .mach-box i:nth-child(2){right:18%;animation-direction:reverse}
.pxhg .mach-box i:nth-child(3){left:6%;width:14px;height:14px;top:10px}
@keyframes hgspin{to{transform:rotate(360deg)}}
.pxhg .mach-out code{display:block;padding:10px 12px;border-radius:10px;background:#fef1e8;
  font:12.5px/1.5 ui-monospace,Menlo,Consolas,monospace;word-break:break-all;min-height:62px;color:#9a430b}

/* ---------- avalanche ---------- */
.pxhg .av{display:grid;gap:6px}
.pxhg .av label{font-size:13px;font-weight:700}
.pxhg .av input,.pxhg .cmp input{width:100%;padding:9px 11px;border:1px solid var(--line-2);
  border-radius:10px;font:15px/1.3 ui-monospace,Menlo,Consolas,monospace;color:var(--ink);background:#fff}
.pxhg .av input:focus,.pxhg .cmp input:focus{outline:2px solid #eb600e;outline-offset:0;border-color:#eb600e}
.pxhg .av-h{display:block;font:12px/1.5 ui-monospace,Menlo,Consolas,monospace;word-break:break-all;
  background:var(--mist);border-radius:10px;padding:8px 10px;margin-bottom:6px}
.pxhg .av-h s{text-decoration:none;background:#eb600e;color:#fff;border-radius:3px}
.pxhg .av-meter{display:grid;gap:6px}
.pxhg .av-meter > div:first-child{display:flex;justify-content:space-between;align-items:baseline}
.pxhg .av-meter small{font-size:12.5px;font-weight:700;color:var(--muted)}
.pxhg .av-meter b{font:800 1.6rem/1 var(--font-head);color:#eb600e;font-variant-numeric:tabular-nums}
.pxhg .av-bar{height:10px;border-radius:99px;background:#f3e3d8;overflow:hidden}
.pxhg .av-bar i{display:block;height:100%;width:0;background:#eb600e;transition:width .5s ease}

/* ---------- algorithm ladder ---------- */
.pxhg .alg{max-width:900px;margin:0 auto;display:grid;gap:10px}
.pxhg .alg-row{display:grid;grid-template-columns:90px 1fr 190px 130px;gap:14px;align-items:center;
  background:#fff;border:1px solid #f8e6da;border-radius:16px;padding:14px 18px}
.pxhg .alg-row b{font:800 1.05rem/1 var(--font-head)}
.pxhg .alg-bar{height:14px;border-radius:99px;background:#f6ebe3;overflow:hidden}
.pxhg .alg-bar i{display:block;height:100%;width:0;border-radius:99px;background:#f4b58c;
  transition:width 1.1s cubic-bezier(.2,.8,.2,1)}
.pxhg .alg.go .alg-bar i{width:var(--w)}
.pxhg .alg-row:nth-child(n+3) .alg-bar i{background:#eb600e}
.pxhg .alg-row span{font-size:14px;color:var(--ink-2)}
.pxhg .alg-row em{font-style:normal;font-size:12.5px;font-weight:800;border-radius:999px;
  padding:4px 10px;text-align:center}
.pxhg .alg-row em.warn{background:#f3ebe6;color:var(--muted)}
.pxhg .alg-row em.ok{background:#eb600e;color:#fff}

/* ---------- compare two hashes ---------- */
.pxhg .cmp{display:grid;gap:6px}
.pxhg .cmp label{font-size:13px;font-weight:700}
.pxhg .cmp-res{margin-top:8px;border-radius:12px;padding:14px;font-weight:700;font-size:15px;
  background:var(--mist);color:var(--ink-2);text-align:center;transition:background .3s,color .3s}
.pxhg .cmp-res.yes{background:#eb600e;color:#fff}
.pxhg .cmp-res.no{background:#f3ebe6;color:var(--ink)}

/* ---------- hashing vs encryption ---------- */
.pxhg .ne{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:980px;margin:0 auto}
.pxhg .ne-card{background:#fff;border:1px solid #f8e6da;border-radius:22px;padding:22px;display:grid;gap:12px}
.pxhg .ne-card.on{border-color:#eb600e;background:#fef3ec}
.pxhg .ne-k{justify-self:start;font:800 13px/1 var(--font-head);border-radius:999px;padding:6px 12px;
  background:#eb600e;color:#fff}
.pxhg .ne-flow{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:14px}
.pxhg .ne-flow span,.pxhg .ne-flow code{background:#fff;border:1px solid var(--line);border-radius:8px;
  padding:5px 9px;font-family:ui-monospace,Menlo,Consolas,monospace;opacity:0;transform:translateY(6px);
  transition:opacity .35s,transform .35s}
.pxhg .ne-flow i{font-style:normal;font-weight:700;color:var(--muted);opacity:0;transition:opacity .35s}
.pxhg .ne-flow i.x{color:#c2410c;font-size:18px}
.pxhg .ne-flow .gone{text-decoration:line-through;color:var(--muted)}
.pxhg .ne-flow .in{opacity:1;transform:none}
.pxhg .ne-card p{margin:0;color:var(--ink-2)}
.pxhg .nw{white-space:nowrap}

@media (max-width:900px){
  .pxhg .ne{grid-template-columns:1fr}
  .pxhg .alg-row{grid-template-columns:80px 1fr;row-gap:6px}
}
@media (prefers-reduced-motion:reduce){
  .pxhg .mach-box i,.pxhg .mach-in span::after{animation:none}
  .pxhg .ne-flow span,.pxhg .ne-flow code,.pxhg .ne-flow i{opacity:1;transform:none}
  .pxhg .alg-bar i,.pxhg .av-bar i{transition:none}
}
