/* ===== Tim's Work Hub — dark command center ===== */
:root {
  --bg: #0f172a;
  --bg-2: #131c33;
  --card: #1a2440;
  --card-hover: #223055;
  --line: #263455;
  --ink: #e2e8f0;
  --muted: #8fa3c4;
  --accent: #38bdf8;
  --accent-2: #7dd3fc;
  --gold: #fbbf24;
  --radius: 14px;
  --font: 'Inter', 'Noto Sans SC', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1000px 500px at 90% -10%, rgba(56,189,248,.10), transparent 60%),
    radial-gradient(800px 400px at -10% 0%, rgba(251,191,36,.06), transparent 60%),
    var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ===== Header ===== */
.hub-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,23,42,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 20px 0 14px;
}
.header-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.greeting h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; }
.greeting p { color: var(--muted); font-size: .88rem; }
.clock {
  font-size: 2rem; font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.search-row { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
#search {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg-2);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 18px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
#search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56,189,248,.18); }
#search::placeholder { color: #55688f; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
  font-size: .8rem; font-weight: 600;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  transition: color .15s, border-color .15s;
}
.chips a:hover { color: var(--accent-2); border-color: var(--accent); }

/* ===== Groups & tiles ===== */
#board { padding: 30px 22px 60px; }
.group { margin-bottom: 38px; }
.group[hidden] { display: none; }
.group h2 {
  font-size: 1.08rem; font-weight: 700;
  margin-bottom: 14px;
  display: flex; align-items: baseline; gap: 10px;
}
.group h2 small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 12px;
}
.tile {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.tile:hover {
  transform: translateY(-2px);
  background: var(--card-hover);
  border-color: var(--accent);
}
.tile[hidden] { display: none; }
.tile-icon {
  grid-row: span 2;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.tile-icon img { width: 24px; height: 24px; }
.tile-icon i {
  font-style: normal; font-weight: 800; font-size: 1.1rem; color: var(--accent);
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.tile-name { font-size: .92rem; font-weight: 600; line-height: 1.3; }
.tile-host { font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Footer ===== */
.hub-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}
.hub-footer a { color: var(--accent-2); }
.hub-footer a:hover { text-decoration: underline; }
.fine { font-size: .75rem; margin-top: 6px; color: #55688f; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .clock { font-size: 1.4rem; }
  .greeting h1 { font-size: 1.2rem; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile { grid-template-columns: 34px 1fr; padding: 11px 12px; }
  .tile-icon { width: 34px; height: 34px; }
}
@media (max-width: 420px) {
  .tiles { grid-template-columns: 1fr; }
}
