/* Herald · Hue — app tweaks. Base in glass-core.css. */

.hu-connect {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 16px 10px;
}
.hu-h {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text-primary);
}
.hu-p {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 440px;
}
.hu-p.hu-dim { font-size: 12.5px; color: var(--text-muted); }
.hu-url {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 14px rgba(122, 184, 255, 0.4);
  word-break: break-all;
}
.hu-status {
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  font-size: 16px;
  font-weight: 800;
  color: #06121f;
  background: linear-gradient(135deg, #f7d774, #7ab8ff);
  border: 0;
  border-radius: 980px;
  box-shadow: 0 10px 26px rgba(122, 184, 255, 0.3);
}
.hu-btn.ghost {
  color: var(--text-secondary);
  background: var(--frost-1);
  border: 1px solid var(--frost-border);
  box-shadow: none;
  min-height: 46px;
  font-size: 14px;
}
.hu-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--focus-ring), 0 12px 28px rgba(122, 184, 255, 0.42);
  transform: translateY(-1px);
}
.hu-btn.ghost:focus { border-color: var(--focus-ring); color: var(--text-primary); }
.row-icon.hu-on { color: #f7d774; }

/* ─── Capsule pill list ───
   Each light is a horizontal pill: bulb glyph left, name + state
   center, on/off chip right. Fully rounded ends. */
.hu-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 2px 8px;
}
.hu-tile {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 10px 20px 10px 12px;
  border-radius: 999px;            /* true capsule */
  background: rgba(8, 12, 22, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease,
              transform 120ms ease, box-shadow 180ms ease;
  min-height: 64px;
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.28),
              inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
/* Inner layout for the pill — name spans the middle. */
.hu-tile .hu-name {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
  font-weight: 700;
}
.hu-tile .hu-state {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 10px;
}
.hu-tile.on .hu-state {
  background: rgba(247, 215, 116, 0.18);
  border-color: rgba(247, 215, 116, 0.45);
}
.hu-tile.on {
  background: linear-gradient(180deg, rgba(255,228,140,0.18), rgba(255,180,84,0.08));
  border-color: rgba(247,215,116,0.55);
  box-shadow: 0 0 18px rgba(247,215,116,0.28);
  color: #fff7d8;
}
.hu-tile:focus {
  outline: none;
  border-color: var(--focus-ring, #5fe6f7);
  box-shadow: 0 0 0 2px var(--focus-ring, #5fe6f7),
              0 0 18px rgba(95,230,247,0.25);
  transform: translateY(-1px);
}
.hu-tile.on:focus {
  box-shadow: 0 0 0 2px var(--focus-ring, #5fe6f7),
              0 0 22px rgba(247,215,116,0.5);
}
.hu-bulb {
  width: 44px;
  height: 44px;
  display: block;
  flex-shrink: 0;
}
.hu-bulb-body {
  fill: rgba(255,255,255,0.18);
  stroke: rgba(255,255,255,0.5);
  stroke-width: 1.8;
  transition: fill 200ms ease, stroke 200ms ease;
}
.hu-tile.on .hu-bulb-body {
  fill: #fff5b8;
  stroke: #fff5b8;
}
.hu-bulb-base { fill: rgba(255,255,255,0.55); }
.hu-tile.on .hu-bulb-base { fill: #e9c160; }
.hu-glow { animation: hu-pulse 2.4s ease-in-out infinite; }
@keyframes hu-pulse {
  50% { opacity: 0.95; }
}
.hu-name {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hu-state {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(255,255,255,0.5));
}
.hu-tile.on .hu-state {
  color: #f7d774;
  text-shadow: 0 0 10px rgba(247,215,116,0.5);
}

.hu-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 16px;
  color: var(--text-muted);
}
