/* rhit.cz – Portál (Terminal theme v6) */

:root{
  --radius: 18px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --bg: #02050a;
  --fg: rgba(215,255,224,.92);
  --muted: rgba(215,255,224,.72);
  --border: rgba(215,255,224,.18);
  --cardbg: rgba(0,0,0,.18);

  --ok: rgba(34,197,94,.92);
  --warn: rgba(255,199,59,.92);
  --bad: rgba(255,99,99,.92);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: var(--mono);
  color: var(--fg);
  background: var(--bg);
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
}

a{ color: inherit; }

.scan{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background:
    repeating-linear-gradient(to bottom, rgba(215,255,224,.06), rgba(215,255,224,.06) 1px, transparent 1px, transparent 4px);
  opacity:.35;
}

.glow{
  position:fixed;
  inset:0;
  z-index:-2;
  background:
    radial-gradient(circle at 35% 30%, rgba(16,185,129,.25), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(34,211,238,.18), transparent 55%);
}

.terminal{
  width:min(1080px, 94vw);
  border-radius:18px;
  border:1px solid var(--border);
  background: rgba(2,10,16,.72);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  overflow:hidden;
}

.bar{
  padding:10px 14px;
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:space-between;
  border-bottom:1px solid rgba(215,255,224,.15);
}

.dots{ display:flex; gap:8px; }
.dot{ width:10px; height:10px; border-radius:999px; background: rgba(215,255,224,.25); }

.title{
  color: rgba(215,255,224,.82);
  font-size:13px;
  display:flex;
  align-items:center;
  gap:8px;
}

.center{ justify-content:center; flex: 1; text-align:center; }

.led{
  width:8px;
  height:8px;
  border-radius:999px;
  display:inline-block;
  background: rgba(215,255,224,.28);
  box-shadow: 0 0 0 0 rgba(215,255,224,.2);
}

.led.online{ background: var(--ok); }
.led.degraded{ background: var(--warn); }
.led.offline{ background: var(--bad); }

.body{ padding:16px 16px 20px; }

pre{
  margin:0;
  white-space:pre-wrap;
  color: rgba(215,255,224,.78);
  font-size:13px;
  line-height:1.55;
}

.grid{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap:12px;
}

.card{
  text-decoration:none;
  color:inherit;
  padding:14px;
  border-radius:16px;
  border:1px solid var(--border);
  background: var(--cardbg);
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
  position:relative;
}

.card:hover{
  transform: translateY(-2px);
  background: rgba(0,0,0,.26);
  border-color: rgba(215,255,224,.24);
}

.card-top{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:space-between;
}

.left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex:1;
}

.icon{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  border:1px solid var(--border);
  background: rgba(0,0,0,.15);
  flex: 0 0 auto;
}

.icon svg{ width:20px; height:20px; }

.meta{ min-width:0; }
.name{ font-weight:800; font-family: var(--font); }
.tag{ margin-top:4px; font-size:12px; color: rgba(215,255,224,.70); font-family: var(--mono); }

.status{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(215,255,224,.18);
  font-size:12px;
  color: rgba(215,255,224,.78);
  white-space:nowrap;
}

.status b{ font-weight:800; letter-spacing:.2px; }
.status .led{ width:7px; height:7px; }

.status.online{ border-color: rgba(215,255,224,.24); color: rgba(215,255,224,.86); }
.status.degraded{ border-color: rgba(255,199,59,.35); color: rgba(255,229,150,.92); }
.status.offline{ border-color: rgba(255,99,99,.35); color: rgba(255,160,160,.95); }

.desc{
  margin:10px 0 0;
  color: rgba(215,255,224,.78);
  font-family: var(--font);
  line-height:1.45;
}

.host{ margin-top:8px; font-size:12px; color: rgba(215,255,224,.70); }

.footer{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(215,255,224,.15);
  display:flex;
  gap:12px;
  justify-content:space-between;
  flex-wrap:wrap;
  align-items:center;
  color: rgba(215,255,224,.70);
  font-size:13px;
  font-family: var(--font);
}

.footer-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.btn{
  padding:10px 12px;
  border-radius:14px;
  text-decoration:none;
  border:1px solid rgba(215,255,224,.18);
  background: rgba(0,0,0,.18);
  font-family: var(--mono);
  color: rgba(215,255,224,.86);
  cursor:pointer;
}

.btn:hover{ background: rgba(0,0,0,.24); }
.small{ opacity:.85; }


/* State-specific accents (aby OFFLINE nebyl zeleně) */
.card.state-online .host{ color: rgba(34,197,94,.82); }
.card.state-degraded .host{ color: rgba(255,199,59,.92); }
.card.state-offline .host{ color: rgba(255,99,99,.92); }

.card.state-online:hover{ border-color: rgba(34,197,94,.35); }
.card.state-degraded:hover{ border-color: rgba(255,199,59,.35); }
.card.state-offline:hover{ border-color: rgba(255,99,99,.35); }
