/* GLaDOS – dodatki do wspólnego /style.css (ten sam styl TUI co reszta serwisu).
   CSP strony nie pozwala na <style> w HTML, dlatego klasy ze strony głównej są tu przepisane 1:1. */

/* Ze strony głównej (/index.html) */
.sys-log { background-color: #020305; border: 1px solid #1f242c; padding: 10px; font-size: 0.8em; color: #8b949e; line-height: 1.5; margin-bottom: 15px; border-radius: 2px; }
.sys-log .ok { color: #3fb950; font-weight: bold; }
.sys-log .prompt { color: #58a6ff; font-weight: bold; }
.menu-tag { color: #58a6ff; font-weight: bold; font-size: 0.8em; background: rgba(88,166,255,0.08); padding: 1px 4px; border-radius: 2px; border: 1px solid rgba(88,166,255,0.2); }
.hardware-footer { border-top: 1px solid #1f242c; padding-top: 10px; font-size: 0.75em; color: #484f58; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hardware-footer span { color: #8b949e; }

/* style.css: width 100% + padding bez border-box – na telefonie kontener wystawał poza ekran */
.container { box-sizing: border-box; }

.lead { margin-bottom: 10px; }

/* Terminal z animacją wpisywania */
.terminal pre { margin: 0; min-height: 15.5em; font-family: inherit; white-space: pre-wrap; word-break: break-word; }
.terminal .cmd { color: #c9d1d9; }
.terminal .info { color: #58a6ff; }
.cursor { color: #3fb950; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Moduły */
.modules { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.modules .module { margin-bottom: 0; }
.module-head { display: flex; align-items: center; gap: 6px; }
.more { margin: 8px 0 15px; }

/* Status: wykres pingu */
.ping { color: #58a6ff; font-variant-numeric: tabular-nums; }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 32px; margin-top: 10px; }
.spark span { flex: 1; min-height: 2px; background: #1f6feb; opacity: 0.8; transition: height 0.4s; }

@media (max-width: 480px) {
    body { padding: 8px; }
    .container { padding: 14px; }
    .modules { grid-template-columns: 1fr; }
    .terminal pre { min-height: 17em; }
}

@media (prefers-reduced-motion: reduce) {
    .cursor { animation: none; }
    .spark span { transition: none; }
}
