/* Panel izquierdo de Project Hangar: resumen de cada proyecto de GitHub, con capturas, en carrusel. */
.hangar-side {
  --hg-surface: #1a1b22;
  --hg-line: #2a3440;
  --hg-text: #e3e1ec;
  --hg-muted: #b9cacb;
  --hg-cyan: #00f3ff;
  --hg-amber: #ffbd58;
  position: fixed;
  top: 0;
  bottom: 0;
  left: max(0px, calc(100% - var(--panel-w) - 600px));
  right: var(--panel-w);
  width: auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: #12131a;
  color: var(--hg-text);
  border-right: 1px solid var(--hg-cyan);
  box-shadow: -18px 0 60px rgba(0,0,0,.5);
  font-family: 'Inter', system-ui, sans-serif;
  animation: hgIn .35s ease;
}
.hangar-side[hidden] { display: none; }
.hangar-side * { box-sizing: border-box; }
@keyframes hgIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: none; }
}
.hg-slide {
  flex: 1;
  overflow-y: auto;
  padding: 22px 24px 18px;
  animation: hgSlide .45s ease;
}
@keyframes hgSlide {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.hg-hero {
  background: #0b0c12;
  border: 1px solid var(--hg-line);
  border-radius: 6px;
  height: 250px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hg-hero img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.hg-thumbs { display: flex; gap: 8px; margin: 10px 0 4px; }
.hg-thumb {
  width: 64px; height: 48px;
  padding: 0;
  border: 1px solid var(--hg-line);
  border-radius: 4px;
  background: #0b0c12;
  overflow: hidden;
  cursor: pointer;
  opacity: .6;
}
.hg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hg-thumb.on, .hg-thumb:hover, .hg-thumb:focus-visible { opacity: 1; border-color: var(--hg-cyan); }
.hg-status {
  display: inline-block;
  margin-top: 14px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--hg-amber);
  border: 1px solid var(--hg-amber);
  padding: 4px 8px;
  border-radius: 3px;
}
.hg-slide h3 {
  margin: 12px 0 8px;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.hg-sum { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--hg-muted); }
.hg-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hg-stats span {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--hg-cyan);
  border: 1px solid rgba(0,243,255,.35);
  padding: 5px 10px;
  border-radius: 3px;
}
.hg-points { margin: 0 0 16px; padding: 0; list-style: none; }
.hg-points li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--hg-muted);
  border-bottom: 1px solid #1f2a36;
}
.hg-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 13px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--hg-cyan);
}
.hg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hg-chips span {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--hg-text);
  background: var(--hg-surface);
  border: 1px solid var(--hg-line);
  padding: 5px 9px;
  border-radius: 3px;
}
.hg-links { display: flex; flex-wrap: wrap; gap: 10px; }
.hg-btn {
  display: inline-block;
  padding: 11px 16px;
  border: 1px solid var(--hg-cyan);
  color: var(--hg-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
}
.hg-btn-alt { background: var(--hg-cyan); color: #00373a; border-color: var(--hg-cyan); }
.hg-btn:hover, .hg-btn:focus-visible { filter: brightness(1.15); }
.hangar-controls {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid var(--hg-line);
  background: #12131a;
}
.hangar-nav {
  background: var(--hg-surface);
  color: var(--hg-text);
  border: 1px solid var(--hg-line);
  width: 38px; height: 38px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
}
.hangar-nav:hover, .hangar-nav:focus-visible { border-color: var(--hg-cyan); color: var(--hg-cyan); }
.hangar-dots { display: flex; gap: 8px; }
.hangar-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid var(--hg-cyan);
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.hangar-dot.on { background: var(--hg-cyan); }
.hangar-count {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--hg-muted);
}
.repo-card { cursor: pointer; }
.repo-card:focus-visible { outline: 2px solid #00f3ff; outline-offset: 3px; }


/* Efecto de hover: tarjetas seleccionables y enlaces (Project Hangar y Data Forge) */
.repo-card, .forge-block { cursor: pointer; transition: border-color .2s, background .2s; }
.repo-card:hover, .forge-block:hover, .repo-card:focus-visible, .forge-block:focus-visible {
  border-color: #00f3ff;
  background: rgba(0,243,255,.05);
  outline: none;
}
.repo-card:hover h3, .forge-block:hover h3 { color: #00f3ff; }
.content-card a { transition: color .2s, text-decoration-color .2s; }
.content-card a:hover, .content-card a:focus-visible,
.hg-btn:hover, .hg-btn:focus-visible, .hangar-link:hover, .hangar-link:focus-visible {
  color: #00f3ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1180px) {
  .news-side, .hangar-side, .forge-side {
    right: auto; left: 0; top: 0; bottom: 0;
    width: 100%; max-width: 100vw;
    border-right: 0; box-shadow: none;
    z-index: 5; overflow: hidden;
  }
  .news-side-body, .hg-slide, .fg-slide { padding-bottom: 96px; }
}
.side-close {
  position: absolute; top: 12px; right: 12px; z-index: 6;
  width: 40px; height: 40px; border-radius: 4px; cursor: pointer;
  background: #1a1b22; color: #e3e1ec; border: 1px solid #2a3440; font-size: 16px;
}
.side-close:hover, .side-close:focus-visible { border-color: #00f3ff; color: #00f3ff; }
