/* ============================================================
   HOMELAB.HTML PAGE-SPECIFIC STYLES
   Moved from inline <style> block in homelab.html for CSP compliance
   ============================================================ */

.hw-update-popup {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: hw-fade-in 0.3s ease-out;
}
@keyframes hw-fade-in { from { opacity: 0; } to { opacity: 1; } }
.hw-update-card {
  position: relative;
  max-width: 520px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  background: linear-gradient(135deg, #071830, #0a1f3d);
  border: 1px solid rgba(131,166,206,0.3);
  border-radius: 14px;
  padding: 28px 32px 24px;
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(131,166,206,0.15);
}
@media (max-height: 600px) {
  .hw-update-img { max-height: 140px; margin-bottom: 12px; }
  .hw-update-card { padding: 22px 24px 18px; }
}
@media (max-width: 480px) {
  .hw-update-card { padding: 22px 20px 18px; }
  .hw-update-card p { font-size: 0.85rem; }
  .hw-update-img { max-height: 160px; }
}

/* ── Homelab page responsive (phone + narrow safety) ── */
@media (max-width: 640px) {
  #homelab .homelab-meta { flex-wrap: wrap; gap: 10px; }
  #homelab .lab-github { font-size: 0.78rem; padding: 6px 10px; }
  #homelab .hw-list { gap: 8px; }
  #homelab .hw-item { padding: 12px 14px; }
  #homelab .hw-k { font-size: var(--fs-mono-xs); }
  #homelab .hw-v { font-size: var(--fs-md); }
  #homelab .lab-section-title { font-size: 0.78rem; letter-spacing: 0.12em; }
  #homelab .tl-desc { font-size: var(--fs-md); }
  #homelab .tl-desc ul { padding-left: 18px; }
  #homelab .tl-desc li { margin-bottom: 6px; line-height: 1.5; word-break: break-word; }
  body, html { overflow-x: hidden; }
}
@media (max-width: 360px) {
  #homelab .hw-v { font-size: 0.78rem; }
  #homelab .vtag { font-size: 0.7rem; padding: 5px 8px; }
}
.hw-update-img {
  display: block;
  width: 100%; max-height: 220px;
  object-fit: contain;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  margin-bottom: 16px;
}
.hw-update-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.hw-update-card p {
  font-size: var(--fs-md); line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.hw-update-close {
  position: absolute; top: 10px; right: 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 1.2rem; font-weight: 400; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.hw-update-close:hover {
  background: rgba(255,255,255,0.08);
  color: var(--ink-strong);
  border-color: rgba(255,255,255,0.35);
}
/* VLAN 50 "WAN Escape" is the longest tag: keep it on one line on phones (spacing only, same font size) */
@media (min-width: 361px) and (max-width: 640px) {
  #homelab .vlan-tags-row .vtag.v5 { letter-spacing: 0.01em; gap: 6px; padding-left: 10px; padding-right: 10px; white-space: nowrap; }
}
