/* doxygen/theme/custom.css — NK custom branding & UX styling */

:root {
    --side-nav-fixed-width: 320px;
    --primary-color: #2563eb;
    --primary-dark-color: #1d4ed8;
    --primary-light-color: #3b82f6;
    --card-bg: var(--page-background-color);
    --card-border: var(--separator-color);
}

/* Remove right panel and allow main content to breathe */
#page-nav, .page-nav-panel {
    display: none !important;
}

#doc-content {
    margin-right: 0 !important;
}

/* Compact Header with sleek logo */
#titlearea {
    padding: 6px 16px !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid var(--separator-color);
}

#projectlogo {
    vertical-align: middle !important;
    padding-right: 12px !important;
}

#projectlogo a {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none !important;
}

#projectlogo img {
    max-height: 34px !important;
    width: auto !important;
    display: inline-block !important;
    vertical-align: middle !important;
    transition: transform 0.15s ease-in-out;
}

#projectlogo a:hover img {
    transform: scale(1.05);
}

#projectalign {
    vertical-align: middle !important;
    padding-left: 0 !important;
}

.brand-home-link {
    text-decoration: none !important;
    color: inherit !important;
    display: inline-block;
    cursor: pointer;
}

.brand-home-link:hover #projectname {
    color: var(--primary-light-color) !important;
}

#projectname {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    line-height: 1.2 !important;
    transition: color 0.15s ease-in-out;
}

#projectnumber {
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    opacity: 0.75;
    margin-left: 6px !important;
}

#projectbrief {
    font-size: 0.78rem !important;
    line-height: 1.2 !important;
    opacity: 0.65;
    margin-top: 2px !important;
}

/* Top bar quick links (GitHub & Web IDE) */
.header-quick-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
}

.quick-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none !important;
    background: var(--button-background);
    color: var(--page-foreground-color) !important;
    border: 1px solid var(--separator-color);
    transition: all 0.15s ease-in-out;
}

.quick-link-btn:hover {
    background: var(--primary-color);
    color: #ffffff !important;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Landing Page Grid & Cards */
.header-tagline {
    margin: 12px 0 20px 0;
}

.tagline-text {
    font-size: 1.15rem;
    line-height: 1.5;
    margin-bottom: 12px;
    color: var(--page-foreground-color);
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.badge {
    display: inline-block;
    padding: 3px 9px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

.badge-blue   { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-green  { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; border: 1px solid rgba(139, 92, 246, 0.3); }
.badge-orange { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 28px 0 16px 0 !important;
    border-bottom: none !important;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.topic-card {
    display: flex;
    align-items: flex-start;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--separator-color);
    background: var(--page-background-color);
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.topic-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.card-icon {
    font-size: 1.6rem;
    margin-right: 12px;
    flex-shrink: 0;
    line-height: 1;
}

.card-body {
    flex-grow: 1;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
    line-height: 1.3;
}

.card-desc {
    font-size: 0.82rem;
    color: var(--page-foreground-color);
    opacity: 0.85;
    line-height: 1.4;
}

.card-desc code {
    font-size: 0.85em;
    padding: 1px 4px;
    border-radius: 4px;
    background: var(--code-background);
}

/* Trademark Footer */
.trademark-footer {
    margin-top: 32px;
    padding: 14px 18px;
    border-radius: 8px;
    background: var(--code-background);
    border: 1px solid var(--separator-color);
    font-size: 0.8rem;
    opacity: 0.85;
}

.trademark-footer h4 {
    margin: 0 0 4px 0;
    font-size: 0.85rem;
}

.trademark-footer p {
    margin: 0;
    line-height: 1.4;
}

/* Modern Typography */
body, input, button, select, textarea {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif !important;
}

code, tt, kbd, samp, pre {
    font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", Consolas, "Courier New", monospace !important;
    font-size: 0.9em !important;
}

/* Polished badges and function titles */
.memtitle {
    font-weight: 600 !important;
    border-radius: 6px 6px 0 0 !important;
}

.memitem {
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px !important;
    border: 1px solid var(--separator-color) !important;
    overflow: hidden;
}

/* Hide redundant raw Files list on topic/group pages */
.contents > table.memberdecls:has(#header-files),
.contents > table.memberdecls:has(a[name="files"]) {
    display: none !important;
}

/* ── C++ Function Prototype Modern Styling & Syntax Highlighting ── */

.memproto {
    background-color: var(--code-background) !important;
    border-bottom: 1px solid var(--separator-color) !important;
    padding: 10px 16px !important;
}

.memproto table.memname {
    font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", Consolas, monospace !important;
    font-size: 0.86rem !important;
    line-height: 1.65 !important;
    border-collapse: separate !important;
    border-spacing: 0 2px !important;
    color: var(--page-foreground-color) !important;
}

.memproto td {
    padding: 1px 4px !important;
    vertical-align: baseline !important;
}

/* Return Type & Type Identifiers (Blue / Cyan) */
.cxx-type,
.cxx-type-link,
.cxx-return-type .cxx-type,
.memproto td.paramtype .el,
.memproto td.memname .el {
    color: #0284c7 !important; /* Sky 600 in light */
    font-weight: 600 !important;
    text-decoration: none !important;
}

html.dark-mode .cxx-type,
html.dark-mode .cxx-type-link,
html.dark-mode .cxx-return-type .cxx-type,
html.dark-mode .memproto td.paramtype .el,
html.dark-mode .memproto td.memname .el {
    color: #38bdf8 !important; /* Sky 400 in dark */
}

/* Keywords (const, noexcept, etc. - Violet / Magenta) */
.cxx-keyword {
    color: #7c3aed !important; /* Violet 600 in light */
    font-weight: 500 !important;
}

html.dark-mode .cxx-keyword {
    color: #c084fc !important; /* Violet 400 in dark */
}

/* Symbols (&, *, -> - Muted Slate) */
.cxx-symbol {
    color: #64748b !important;
    font-weight: 400 !important;
}

html.dark-mode .cxx-symbol {
    color: #94a3b8 !important;
}

/* Function Name (Bold Slate / Crisp White) */
.cxx-func-name {
    color: #0f172a !important;
    font-weight: 700 !important;
}

html.dark-mode .cxx-func-name {
    color: #f8fafc !important;
}

/* Parameter Names (Amber / Golden Orange) */
.cxx-param-name,
.memproto .paramname em {
    color: #b45309 !important;
    font-style: normal !important;
    font-weight: 500 !important;
}

html.dark-mode .cxx-param-name,
html.dark-mode .memproto .paramname em {
    color: #fcd34d !important;
}

/* Default Values & Literals (Emerald Green) */
.cxx-param-defval,
.memproto .paramdefval {
    color: #15803d !important;
    font-weight: 500 !important;
}

html.dark-mode .cxx-param-defval,
html.dark-mode .memproto .paramdefval {
    color: #4ade80 !important;
}

