/* omni.css — header search bar (#omnibox) + results dropdown (.omnibox-results),
   shared by base.html and home.html. Sits UNDER the crt.js veil (z < 9998) so it
   inherits the scanline/vignette look for free. The '/' console styles will live
   here too (stage 2). */

#omnibox{
  font-family:var(--mono); font-size:12.5px; letter-spacing:.5px; color:var(--cyan);
  background:color-mix(in srgb, var(--bg) 70%, transparent);
  border:1px solid color-mix(in srgb, var(--cyan) 42%, transparent); border-radius:0;
  padding:7px 11px; width:150px; caret-color:var(--cyan); -webkit-appearance:none; appearance:none;
  transition:width .18s ease, border-color .18s ease, box-shadow .18s ease;
}
#omnibox::placeholder{color:var(--dim); letter-spacing:1px; text-transform:lowercase;}
#omnibox::-webkit-search-cancel-button{-webkit-appearance:none;}
#omnibox:focus{outline:none; width:210px; border-color:var(--cyan);
  box-shadow:0 0 12px rgba(53,224,208,.35), inset 0 0 10px rgba(53,224,208,.06);}

.omnibox-results{
  position:fixed; z-index:60; max-height:min(60vh,420px); overflow-y:auto;
  background:color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  border:1px solid color-mix(in srgb, var(--cyan) 40%, transparent);
  box-shadow:0 10px 40px rgba(0,0,0,.5), 0 0 20px rgba(53,224,208,.12);
  font-family:var(--mono);
}
.omnibox-results .ob-hit{display:flex; flex-direction:column; gap:2px; padding:9px 13px; text-decoration:none;
  border-bottom:1px solid color-mix(in srgb, var(--line) 60%, transparent);}
.omnibox-results .ob-hit:last-child{border-bottom:0;}
.omnibox-results .ob-t{color:#eafcff; font-size:13px; font-weight:600;}
.omnibox-results .ob-m{color:var(--dim); font-size:11px;}
.omnibox-results .ob-hit:hover,.omnibox-results .ob-hit.on{background:color-mix(in srgb, var(--cyan) 14%, transparent);}
.omnibox-results .ob-hit:hover .ob-t,.omnibox-results .ob-hit.on .ob-t{color:#fff; text-shadow:0 0 10px rgba(53,224,208,.6);}
.omnibox-results .ob-empty{padding:11px 13px; color:var(--dim); font-size:12px;}

@media (max-width:600px){ #omnibox{width:120px;} #omnibox:focus{width:160px;} }

/* '/' command console — DOM terminal sliding up from the bottom, UNDER the crt.js veil
   (z < 9998) so it inherits the scanline/phosphor look without a shader. */
.cmdline{
  position:fixed; left:0; right:0; bottom:0; z-index:70; height:min(42vh,360px);
  display:flex; flex-direction:column; color:#d6fff8;
  font-family:"VT323", var(--mono), monospace;
  background:color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter:blur(7px); -webkit-backdrop-filter:blur(7px);
  border-top:1px solid color-mix(in srgb, var(--cyan) 55%, transparent);
  box-shadow:0 -14px 50px rgba(0,0,0,.55), 0 0 26px rgba(53,224,208,.12);
  transform:translateY(100%); transition:transform .22s cubic-bezier(.3,.7,.2,1); will-change:transform;
}
.cmdline.on{transform:translateY(0);}
.cmd-scroll{flex:1; overflow-y:auto; padding:14px 18px 6px; font-size:17px; line-height:1.3; white-space:pre-wrap; word-break:break-word;}
.cmd-ln{color:#bfeee6; text-shadow:0 0 6px rgba(53,224,208,.28);}
.cmd-ln.cmd-echo{color:var(--cyan);}
.cmd-hit{display:block; text-decoration:none; color:#eafcff;}
.cmd-hit:hover{color:#fff; background:color-mix(in srgb, var(--cyan) 14%, transparent); text-shadow:0 0 10px rgba(53,224,208,.6);}
.cmd-row{display:flex; align-items:center; padding:8px 18px 14px; border-top:1px solid color-mix(in srgb, var(--cyan) 20%, transparent);}
.cmd-prompt{font-size:18px; white-space:pre; text-shadow:0 0 7px rgba(53,224,208,.3);}
.cmd-prompt .p-u{color:var(--cyan); font-weight:700;}           /* visitor */
.cmd-prompt .p-h{color:var(--hot);}                              /* codyingram.org */
.cmd-prompt .p-s{color:var(--dim);}                              /* @ : separators */
.cmd-prompt .p-p{color:#7fe0d0;}                                 /* ~ path */
.cmd-prompt .p-d{color:#eafcff; text-shadow:0 0 11px rgba(53,224,208,.85);} /* $ */
#cmd-in{flex:1; background:transparent; border:0; outline:0; color:#eafcff; font-family:inherit; font-size:18px;
  caret-color:var(--cyan); caret-shape:block; text-shadow:0 0 6px rgba(53,224,208,.35);} /* caret-shape: progressive — block where supported, thin elsewhere */
@media (max-width:600px){ .cmdline{height:min(55vh,420px);} .cmd-scroll,.cmd-prompt,#cmd-in{font-size:16px;} }
@media (prefers-reduced-motion: reduce){ .cmdline{transition:none;} }
