﻿body {
}
/* ═══════════════════════════════════════
   HUD Overlay — Command Center
   ═══════════════════════════════════════ */

.hud-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.hud-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ── Panel ── */
.hud-panel {
    width: min(900px, 92vw);
    height: min(580px, 88vh);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.96) translateY(8px);
    transition: transform 0.2s ease;
}

.hud-overlay.open .hud-panel {
    transform: scale(1) translateY(0);
}

/* ── Top Bar ── */
.hud-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.hud-top-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--color-light);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.15s ease;
    padding: 4px 8px;
    border-radius: var(--radius-small);
}

.hud-top-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-lighter);
}

.hud-close {
    margin-left: 8px;
}

/* ── Body ── */
.hud-body {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow: hidden;
}

/* ── Left — Repos ── */
.hud-left {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.hud-section-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-light);
    opacity: 0.5;
    flex-shrink: 0;
}

.hud-search {
    padding: 0 12px 8px;
    flex-shrink: 0;
}

.hud-search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-small);
    padding: 5px 10px;
    font-size: 0.8rem;
    color: var(--color-lighter);
    width: 100%;
    outline: none;
    transition: border-color 0.15s ease;
}

.hud-search-input:focus {
    border-color: rgba(255, 255, 255, 0.2);
}

.hud-search-input::placeholder {
    color: var(--color-light);
    opacity: 0.3;
}

.hud-repo-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 8px;
}

.hud-repo-list::-webkit-scrollbar {
    width: 3px;
}

.hud-repo-list::-webkit-scrollbar-track {
    background: transparent;
}

.hud-repo-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.hud-repo-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-small);
    text-decoration: none;
    transition: background 0.15s ease;
    cursor: pointer;
}

.hud-repo-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hud-repo-footer {
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

/* ── Center ── */
.hud-center {
    flex: 1;
    overflow-y: auto;
    padding: 0 4px 16px;
}

.hud-center::-webkit-scrollbar {
    width: 3px;
}

.hud-center::-webkit-scrollbar-track {
    background: transparent;
}

.hud-center::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

/* Stats grid */
.hud-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0 16px;
}

.hud-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border-radius: var(--radius-small);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    gap: 3px;
}

.hud-stat-val {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
}

.hud-stat-lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-light);
    opacity: 0.4;
}

/* Quick actions */
.hud-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 0 16px;
}

.hud-action {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-small);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    font-size: 0.82rem;
    color: var(--color-lighter);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.hud-action:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--color-lightest);
}

/* Shortcuts */
.hud-shortcuts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 16px;
}

.hud-shortcut {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    font-size: 0.72rem;
    font-family: var(--default-font-family);
    color: var(--color-lighter);
    font-weight: 600;
}

/* ── Bottom Nav ── */
.hud-bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.hud-nav-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: var(--radius-small);
    text-decoration: none;
    color: var(--color-light);
    opacity: 0.5;
    font-size: 1rem;
    transition: opacity 0.15s ease, background 0.15s ease;
    min-width: 60px;
}

.hud-nav-icon span {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.hud-nav-icon:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-lightest);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .hud-left {
        display: none;
    }

    .hud-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hud-actions {
        grid-template-columns: 1fr;
    }

    .hud-top-link span {
        display: none;
    }
}