/* Quick Nav - quick card (menu panel), terminal command bar, mobile fixes */

:root {
    --qn-accent: #a4ff91;
    --qn-bg: #0b1115;
    --qn-card: #1d252c;
    --qn-line: rgba(255, 255, 255, 0.08);
    --qn-text: rgba(255, 255, 255, 0.85);
    --qn-dim: rgba(255, 255, 255, 0.5);
    --qn-mono: "JetBrains Mono", Consolas, "Courier New", monospace;
}

/* ---------- Quick card ---------- */
.content-sidebar .sidebar-wrap { height: 100%; }

.quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 34px 26px 30px;
    color: var(--qn-text);
}

.qc-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid rgba(164, 255, 145, 0.35);
    border-radius: 999px;
    font-size: 12px;
    color: var(--qn-accent);
    background: rgba(164, 255, 145, 0.06);
}

.qc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--qn-accent);
    box-shadow: 0 0 0 0 rgba(164, 255, 145, 0.6);
    animation: qn-pulse 2s infinite;
}

@keyframes qn-pulse {
    0% { box-shadow: 0 0 0 0 rgba(164, 255, 145, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(164, 255, 145, 0); }
    100% { box-shadow: 0 0 0 0 rgba(164, 255, 145, 0); }
}

.qc-open {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--qn-text);
    margin-top: -6px;
    max-width: 260px;
}

.qc-avatar {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    object-fit: cover;
    border: 2px solid rgba(164, 255, 145, 0.4);
    margin-top: 4px;
}

.qc-name { font-size: 20px; font-weight: 600; color: #fff; line-height: 1.2; }
.qc-role { font-size: 13px; color: var(--qn-accent); margin-top: -8px; }

.qc-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12.5px;
    color: var(--qn-dim);
}
.qc-meta i { margin-right: 6px; color: var(--qn-accent); width: 14px; }

.qc-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.qc-badges span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--qn-line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--qn-text);
}

.qc-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

.quick-card .qc-btn {
    height: auto;
    margin: 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--qn-line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--qn-text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.qc-btn:hover,
.qc-btn:focus-visible { border-color: var(--qn-accent); color: var(--qn-accent); outline: none; }
.qc-btn i { font-size: 13px; }
.qc-primary { background: var(--qn-accent); color: var(--qn-bg); border-color: var(--qn-accent); }
.qc-primary:hover,
.qc-primary:focus-visible { background: transparent; }
.qc-copy.is-done { border-color: var(--qn-accent); color: var(--qn-accent); }

.qc-term { font-family: var(--qn-mono); color: var(--qn-accent); font-weight: 700; }
.qc-btn kbd {
    font-family: var(--qn-mono);
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid var(--qn-line);
    color: var(--qn-dim);
}

.qc-social { display: flex; gap: 16px; margin-top: 4px; }
.qc-social a { color: var(--qn-dim); font-size: 16px; transition: color 0.2s; }
.qc-social a:hover { color: var(--qn-accent); }

/* Projects and articles index at the bottom of the panel */
.qc-index {
    width: 100%;
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--qn-line);
    text-align: left;
}
.qc-index-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--qn-dim);
    margin: 4px 0 6px;
}
.qc-index-title i { color: var(--qn-accent); font-size: 12px; }
.qc-index ul { list-style: none; margin: 0 0 12px; padding: 0; }
.qc-index li { margin: 0; padding: 0; }
.qc-index li::before { display: none; }
.qc-index a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--qn-text);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.qc-index a i { font-size: 12px; color: var(--qn-dim); transition: transform 0.2s, color 0.2s; }
.qc-index a:hover,
.qc-index a:focus-visible { background: rgba(164, 255, 145, 0.07); color: var(--qn-accent); outline: none; }
.qc-index a:hover i,
.qc-index a:focus-visible i { color: var(--qn-accent); transform: translateX(3px); }

/* Panel fits narrow phones (close button stays on screen) */
@media (max-width: 480px) {
    .content-sidebar { width: calc(100% - 68px); left: -110%; }
    .content-sidebar.active { left: 0; }
}

/* ---------- Terminal menu item ---------- */
.cmd-icon {
    font-family: var(--qn-mono) !important;
    font-weight: 700;
    font-size: 15px !important;
    letter-spacing: -1px;
    line-height: 1;
}

/* ---------- Mobile: six menu items share the row ---------- */
@media (max-width: 1120px) {
    .header .top-menu ul li { min-width: 0; flex: 1 1 0; }
}
@media (max-width: 420px) {
    .header .top-menu ul li a .name { font-size: 10px; letter-spacing: 0; }
}

/* ---------- Mobile: keep the chat bubble off the profile buttons ---------- */
@media (max-width: 1120px) {
    #brevo-conversations.brevo-conversations--side-bottom { bottom: 84px !important; right: 14px !important; }
}

/* Chat bubble steps aside while the panel or the terminal is open */
html.sidebar-open #brevo-conversations,
html.cmd-lock #brevo-conversations { visibility: hidden !important; }

/* Keyboard hints mean nothing on touch screens */
@media (hover: none) {
    .qc-btn kbd { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .qc-dot { animation: none; }
}
