:root {
    --bg-color: #1e1e1e;
    --text-color: #f0f0f0;
    --primary-color: #569cd6;
    --secondary-color: #4ec9b0;
    --accent-color: #ce9178;
    --terminal-green: #4ec9b0;
    --terminal-prompt: #569cd6;
    --terminal-command: #ce9178;
    --terminal-output: #dcdcaa;
    --header-height: 60px;
    --sidebar-width: 300px;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Consolas', 'Courier New', monospace;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

#nav-menu-toggle {
    display: none;
}

@media screen and (max-width: 768px) {
    #nav-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        font-size: 18px;
        background: transparent;
        color: var(--terminal-green);
        border: none;
        cursor: pointer;
        transition: transform 0.2s ease;
        padding: 0;
        margin: 0;
        flex-shrink: 0;
    }
}


/* Add better touch interaction */
@media (hover: none) {
    .file-tree span:active,
    .static-links a:active,
    .contributor:active {
        background: #2d2d2d;
        color: var(--terminal-green);
    }
}

#sidebar {
    width: var(--sidebar-width);
    background: var(--bg-color);
    border-right: 1px solid #333;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.static-links {
    padding: 10px 20px;
    border-top: 1px solid #333;
}

.static-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.static-links a:hover {
    background: #2d2d2d;
    color: var(--terminal-green);
    padding-left: 12px;
}

.static-links a::before {
    content: "$";
    color: var(--terminal-prompt);
    width: 15px;
    display: inline-block;
    text-align: center;
}

.static-links a.active {
    background: #2d2d2d;
    color: var(--terminal-green);
    font-weight: normal;
    border-left: 2px solid var(--terminal-green);
    padding-left: 14px;
}

.contributors-section {
    padding: 15px 20px;
    border-top: 1px solid #333;
}

.contributors-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #252526;
    border: 1px solid #333;
    border-radius: 4px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.9rem;
}

.contributors-toggle:hover {
    background: #2d2d2d;
    border-color: var(--terminal-green);
    color: var(--terminal-green);
}

.contributors-toggle .toggle-icon {
    color: var(--terminal-green);
    transition: transform 0.2s ease;
}

.contributors-content {
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.contributors-content.collapsed {
    display: none;
}

.contributors-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contributor {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.contributor:hover {
    background: #2d2d2d;
    color: var(--terminal-green);
    transform: translateX(4px);
}

.contributor-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.contributor-name {
    font-size: 0.9rem;
}

#main {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: var(--bg-color);
    scrollbar-width: thin;
    scrollbar-color: #333 var(--bg-color);
}

#main::-webkit-scrollbar {
    width: 8px;
}

#main::-webkit-scrollbar-track {
    background: var(--bg-color);
}

#main::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

#main::-webkit-scrollbar-thumb:hover {
    background: #444;
}

#content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Style markdown elements */
h1, h2, h3 { 
    color: var(--primary-color);
    margin: 1em 0 0.5em 0;
}

h1::before { content: "# "; color: var(--terminal-green); }
h2::before { content: "## "; color: var(--terminal-green); }
h3::before { content: "### "; color: var(--terminal-green); }

a { 
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

code {
    font-family: 'Consolas', 'Courier New', monospace;
    background: #2d2d2d;
    padding: 2px 4px;
    border-radius: 3px;
    color: var(--terminal-output);
}

pre code {
    display: block;
    padding: 35px 15px 15px;
    overflow-x: auto;
    line-height: 1.5;
    background-color: #1a1a1a;
    position: relative;
    font-size: 14px;
}

pre {
    position: relative;
    margin: 1.5em 0;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    border: 1px solid #333;
}

pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: #252526;
    border-radius: 6px 6px 0 0;
    border-bottom: 1px solid #333;
}

pre::after {
    content: '• • •';
    position: absolute;
    top: 8px;
    left: 12px;
    color: #666;
    font-size: 14px;
    letter-spacing: 2px;
}

/* Language-specific syntax highlighting */
.hljs-keyword { color: #569cd6; }
.hljs-built_in { color: #4ec9b0; }
.hljs-type { color: #4ec9b0; }
.hljs-literal { color: #569cd6; }
.hljs-number { color: #b5cea8; }
.hljs-regexp { color: #d16969; }
.hljs-string { color: #ce9178; }
.hljs-function { color: #dcdcaa; }
.hljs-title { color: #dcdcaa; }
.hljs-params { color: #9cdcfe; }
.hljs-comment { color: #6a9955; }

blockquote {
    border-left: 4px solid var(--terminal-green);
    margin: 1em 0;
    padding-left: 20px;
    color: var(--text-color);
    background-color: #2d2d2d;
    padding: 10px 20px;
    border-radius: 0 5px 5px 0;
}

/* Main header styling */
.main-header {
    background: #252526;
    border-bottom: 1px solid #333;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 60px;
    gap: 1rem;
    background: #252526;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-header h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--terminal-green);
    white-space: nowrap;
    font-family: 'Consolas', 'Courier New', monospace;
}

.header-subtitle {
    font-size: 0.75rem;
    opacity: 0.8;
    color: var(--text-color);
    display: block;
}

@media (min-width: 768px) {
    .header-subtitle {
        display: block;
    }
}

.header-subtitle a {
    text-decoration: underline;
    color: inherit;
    transition: color 0.2s ease;
}

.header-subtitle a:hover {
    color: var(--terminal-green);
}

.header-status {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #333;
    font-size: 0.625rem;
    padding: 0.25em 0;
    text-align: center;
    border-bottom: 1px solid #444;
    color: #ddd;
    font-family: 'Consolas', 'Courier New', monospace;
    height: 18px;
    line-height: 18px;
    z-index: 51;
}

/* Adjust layout for fixed header */
.main-header {
    top: 18px; /* status bar height */
}

#main {
    margin-top: 78px; /* header height (60px) + status bar (18px) */
    padding-top: 1rem;
}

#sidebar {
    margin-top: 78px; /* header height (60px) + status bar (18px) */
}

.select-wrapper {
    position: relative;
    display: inline-block;
    min-width: 160px;
}

.version-select {
    width: 100%;
    padding: 6px 30px 6px 12px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #1e1e1e;
    color: var(--text-color);
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s ease;
}

.version-select:hover {
    border-color: var(--terminal-green);
    background: #252525;
}

.version-select:focus {
    outline: none;
    border-color: var(--terminal-green);
    box-shadow: 0 0 0 1px var(--terminal-green);
}

.select-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--terminal-green);
    pointer-events: none;
    font-weight: bold;
    font-size: 0.8em;
    opacity: 0.8;
}

.select-wrapper:hover .select-arrow {
    opacity: 1;
}

.version-info {
    font-size: 13px;
    color: var(--terminal-output);
    padding: 6px 0;
    border-top: 1px solid #333;
    margin-top: 5px;
    transition: all 0.2s ease;
    cursor: default;
}

.version-info:hover {
    color: var(--terminal-green);
    background: #2d2d2d;
    padding-left: 10px;
}

/* File tree styling */
.file-tree {
    list-style: none;
    padding: 10px;
    margin: 0;
    font-size: 14px;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: 'Consolas', 'Courier New', monospace;
    border-top: 1px solid #333;
    height: calc(100vh - var(--header-height));
    scrollbar-width: thin;
    scrollbar-color: #333 var(--bg-color);
    box-sizing: border-box;
}

.file-tree::-webkit-scrollbar {
    width: 8px;
}

.file-tree::-webkit-scrollbar-track {
    background: var(--bg-color);
}

.file-tree::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.file-tree::-webkit-scrollbar-thumb:hover {
    background: #444;
}

.file-tree ul {
    list-style: none;
    padding-left: 20px;
    margin: 0;
    border-left: 1px solid #333;
    width: 100%;
    box-sizing: border-box;
}

.file-tree li {
    position: relative;
    padding: 2px 0;
    width: 100%;
    box-sizing: border-box;
}

.file-tree span {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    width: 100%;
    margin: 2px 0;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    position: relative;
    padding-right: 20px;
}

.file-tree span:hover {
    background: #2d2d2d;
    color: var(--terminal-green);
    padding-left: 12px;
}

.file-tree span.truncated {
    mask-image: linear-gradient(to right, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
}

.file-tree li[data-path]:hover::after {
    content: attr(data-path);
    position: fixed;
    left: calc(var(--sidebar-width) + 10px);
    top: var(--tooltip-y);
    transform: translateY(-50%);
    background: #2d2d2d;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #333;
    color: var(--text-color);
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    pointer-events: none;
    animation: tooltip-fade-in 0.15s ease;
    max-width: none;
}

@keyframes tooltip-fade-in {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.file-tree .active {
    background: #2d2d2d;
    color: var(--terminal-green);
    font-weight: normal;
    border-left: 2px solid var(--terminal-green);
    padding-left: 14px;
    position: relative;
}

.file-tree .active::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--terminal-green);
    border-radius: 50%;
}

.file-tree .folder::before {
    content: ">";
    color: var(--terminal-green);
    font-weight: bold;
    width: 15px;
    display: inline-block;
    text-align: center;
    transition: transform 0.2s ease;
}

.file-tree .folder.has-overview {
    color: var(--terminal-output);
    position: relative;
}

.file-tree .folder.has-overview:hover {
    color: var(--terminal-green);
}

.file-tree .folder.has-overview::after {
    content: "📄";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.7;
    z-index: 1;
}

.file-tree .folder.has-overview:hover::after {
    opacity: 1;
}

/* Remove duplicate padding-right rule */

.file-tree .folder.expanded::before {
    transform: rotate(90deg);
}

.file-tree ul.collapsed {
    display: none;
}

.file-tree .file::before {
    content: "$";
    color: var(--terminal-prompt);
    width: 15px;
    display: inline-block;
    text-align: center;
}

/* Loading state */
#loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--terminal-output);
    font-family: 'Consolas', 'Courier New', monospace;
}

#loading p {
    margin-top: 20px;
}

#loading p::before {
    content: "$ ";
    color: var(--terminal-green);
}

.spinner {
    width: 20px;
    height: 20px;
    display: inline-block;
    position: relative;
    animation: pulse 1s infinite;
    color: var(--terminal-green);
}

.spinner::after {
    content: ">";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* Terminal styles */
.terminal {
    background-color: #1e1e1e;
    border-radius: 4px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    color: var(--terminal-green);
    margin: 20px;
    line-height: 1.6;
    position: relative;
    border: 1px solid #333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.terminal-line {
    margin: 10px 0;
    opacity: 0;
    animation: fade-in 0.5s forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.2s; }
.terminal-line:nth-child(2) { animation-delay: 0.4s; }
.terminal-line:nth-child(3) { animation-delay: 0.6s; }
.terminal-line:nth-child(4) { animation-delay: 0.8s; }
.terminal-line:nth-child(5) { animation-delay: 1.0s; }
.terminal-line:nth-child(6) { animation-delay: 1.2s; }

.terminal-cursor::after {
    content: "_";
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Markdown content styles */
.markdown-content {
    margin-top: 2rem;
    padding: 20px;
    background: var(--bg-color);
    border: 1px solid #333;
    border-radius: 4px;
}

/* Mermaid diagram styles - ASCII-like theme */
.mermaid {
    background: #1a1a1a;
    padding: 30px 20px;
    border-radius: 0; /* Remove rounded corners for terminal look */
    margin: 2em 0;
    border: 1px solid var(--terminal-green);
    font-family: 'Consolas', 'Courier New', monospace;
    text-align: center;
    overflow-x: auto;
    line-height: 1.2;
}

.mermaid svg {
    max-width: 100%;
    height: auto;
    min-width: 400px;
}

/* Style edges to look like ASCII lines */
.mermaid .flowchart-link {
    stroke: var(--terminal-green) !important;
    stroke-width: 1px !important;
    stroke-dasharray: 0 !important; /* Solid lines */
}

/* Style nodes to look like ASCII boxes */
.mermaid .node rect,
.mermaid .node circle,
.mermaid .node ellipse,
.mermaid .node polygon,
.mermaid .node path {
    fill: transparent !important;
    stroke: var(--terminal-green) !important;
    stroke-width: 1px !important;
}

/* Style text to look like terminal output */
.mermaid .node .label {
    font-family: 'Consolas', 'Courier New', monospace !important;
    font-size: 14px !important;
    fill: var(--terminal-green) !important;
}

.mermaid .edgeLabel {
    font-family: 'Consolas', 'Courier New', monospace !important;
    font-size: 14px !important;
    color: var(--terminal-green) !important;
    background-color: transparent !important;
}

/* Style sequence diagram specific elements */
.mermaid .actor {
    fill: transparent !important;
    stroke: var(--terminal-green) !important;
    stroke-width: 1px !important;
}

.mermaid .messageText {
    font-family: 'Consolas', 'Courier New', monospace !important;
    fill: var(--terminal-green) !important;
    font-size: 14px !important;
}

.mermaid .messageLine0,
.mermaid .messageLine1 {
    stroke: var(--terminal-green) !important;
    stroke-width: 1px !important;
}

/* Add ASCII-like borders */
.mermaid::before {
    content: '+' attr(data-processed) '+';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    line-height: 20px;
    color: var(--terminal-green);
    border-bottom: 1px solid var(--terminal-green);
    font-family: 'Consolas', 'Courier New', monospace;
    padding: 0 10px;
    text-align: left;
}

.mermaid-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
    color: var(--text-color);
}

.mermaid-error p {
    color: #dc3545;
    margin: 0 0 0.5rem 0;
    font-weight: bold;
}

.mermaid-error pre {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 3px;
    margin: 0;
    white-space: pre-wrap;
    font-family: 'Consolas', 'Courier New', monospace;
    color: var(--terminal-output);
}

#blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: calc(60px + 18px); /* header height + status bar */
}

.pagination {
    margin: 2rem 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    background: #252526;
    border: 1px solid #333;
    border-radius: 4px;
    color: var(--terminal-green);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination button:not(:disabled):hover {
    background: #2d2d2d;
    border-color: var(--terminal-green);
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    display: inline-flex; /* Show even when disabled */
}

.pagination::after {
    content: "Page " attr(data-current-page) " of " attr(data-total-pages);
    color: var(--terminal-output);
    font-size: 0.9em;
    margin: 0 1rem;
}

.feed-section {
    margin-top: 2rem;
    border-top: 1px solid #333;
    padding-top: 2rem;
}

.feed-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #252526;
    border: 1px solid #333;
    border-radius: 4px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.feed-toggle:hover {
    background: #2d2d2d;
    border-color: var(--terminal-green);
}

.toggle-icon {
    color: var(--terminal-green);
    transition: transform 0.2s ease;
}

.feed-content {
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.feed-content.collapsed {
    display: none;
}

.feed-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    background: #252526;
    padding: 1rem;
    border: 1px solid #333;
    border-radius: 4px;
}

.feed-selector, .feed-search {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.feed-selector select,
.feed-search input {
    width: 100%;
    padding: 8px 12px;
    padding-right: 30px;
    border: 1px solid #333;
    border-radius: 4px;
    background: #1e1e1e;
    color: var(--text-color);
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    transition: all 0.2s ease;
}

.feed-selector select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.feed-selector select:focus {
    outline: none;
    border-color: var(--terminal-green);
    box-shadow: 0 0 0 1px var(--terminal-green);
}

.feed-selector .select-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--terminal-green);
    pointer-events: none;
    font-weight: bold;
    opacity: 0.8;
}

.feed-selector:hover .select-arrow {
    opacity: 1;
}

.feed-search input:hover {
    border-color: var(--terminal-green);
    background: #252525;
}

.feed-search input:focus {
    outline: none;
    border-color: var(--terminal-green);
    box-shadow: 0 0 0 1px var(--terminal-green);
}

.feed-search .search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--terminal-green);
    opacity: 0.7;
    pointer-events: none;
}

.feed-info {
    padding: 1rem;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 0.9em;
    margin-top: 1rem;
    position: relative;
}

.feed-info::before {
    content: "Available RSS Feeds";
    display: block;
    color: var(--terminal-green);
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.feed-count {
    color: var(--terminal-output);
    margin-bottom: 1rem;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.feed-count .count {
    color: var(--terminal-green);
    font-weight: bold;
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feed-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.feed-item:hover {
    background: #252525;
    border-color: #333;
}

.feed-item.active {
    background: #252525;
    border-color: var(--terminal-green);
}

.feed-item.active .feed-name {
    color: var(--terminal-green);
}

.feed-name {
    color: var(--primary-color);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.feed-name::before {
    content: "📢";
    opacity: 0.7;
    font-size: 0.9em;
}

.feed-description {
    color: var(--terminal-output);
    font-size: 0.9em;
    opacity: 0.8;
    line-height: 1.4;
    padding-left: 1.5em;
}

.feed-item:not(:last-child) {
    border-bottom: 1px solid #333;
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
}

.blog-post {
    margin-bottom: 3rem;
    padding: 1.5rem;
    border: 1px solid #333;
    border-radius: 8px;
    background: #1e1e1e;
    position: relative;
    overflow: hidden;
}

.blog-post::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--terminal-green);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.blog-post:hover {
    border-color: var(--terminal-green);
    transform: translateX(4px);
    transition: all 0.2s ease;
}

.blog-post:hover::before {
    opacity: 1;
}

.post-meta {
    font-size: 0.9em;
    color: var(--terminal-output);
    margin-bottom: 0.5em;
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.post-date::before {
    content: "📅";
    opacity: 0.7;
}

.post-author::before {
    content: "👤";
    opacity: 0.7;
}

.post-feed {
    color: var(--terminal-green);
    font-weight: bold;
}

.post-feed::before {
    content: "📢";
    opacity: 0.7;
}

.post-title {
    margin: 0 0 1em 0;
    font-size: 1.8em;
    line-height: 1.3;
    font-family: 'Consolas', 'Courier New', monospace;
}

.post-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.post-title a:hover {
    color: var(--terminal-green);
}

.post-description {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5em;
    opacity: 0.9;
}

.post-description img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1em 0;
}

.no-results {
    text-align: center;
    padding: 1rem;
    color: var(--terminal-output);
    border-top: 1px solid #333;
    margin-top: 1rem;
}

.no-results p {
    margin-bottom: 0.5rem;
}

.clear-search {
    background: #252525;
    border: 1px solid #333;
    color: var(--terminal-green);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.clear-search:hover {
    background: #2d2d2d;
    border-color: var(--terminal-green);
}

.search-term {
    color: var(--terminal-green);
    font-style: italic;
    opacity: 0.8;
}

@media (max-width: 768px) {
    #blog-content {
        padding: 1rem;
    }

    .feed-controls {
        flex-direction: column;
        gap: 0.75rem;
    }

    .feed-selector,
    .feed-search {
        max-width: none;
    }

    .blog-post {
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .post-title {
        font-size: 1.5em;
    }
}

/* Force mobile styles */
@media screen and (max-width: 768px) {
    :root {
        --header-height: 84px; /* Increased to accommodate status bar */
        --status-height: 24px;
    }

    body {
        flex-direction: column;
        font-size: 14px;
        line-height: 1.4;
        padding-top: var(--header-height); /* Add padding for fixed header */
    }

    /* Override desktop styles */
    body {
        flex-direction: column !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    /* Status bar at very top */
    .header-status {
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
        text-align: center !important;
        background: #252526 !important;
        border-bottom: 1px solid #333 !important;
        color: var(--terminal-output) !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        line-height: 1.3 !important;
        height: var(--status-height) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Clean mobile header */
    .main-header {
        height: calc(var(--header-height) - var(--status-height)) !important;
        background: var(--bg-color) !important;
        border-bottom: 1px solid #333 !important;
        position: fixed !important;
        top: var(--status-height) !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .header-content {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 15px !important;
        position: relative !important;
        background: transparent !important;
        height: 100% !important;
    }

    /* Main navigation */
    .main-nav {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        flex: 1 !important;
    }

    #nav-menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 18px !important;
        background: transparent !important;
        color: var(--terminal-green) !important;
        border: none !important;
        cursor: pointer !important;
        transition: transform 0.2s ease !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    #nav-menu-toggle:active {
        transform: scale(0.95) !important;
    }

    .main-header h1 {
        font-size: 1.1rem !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        padding: 0 !important;
        color: var(--terminal-green) !important;
        white-space: normal !important;
        text-align: left !important;
    }

    /* Hide desktop elements */
    .header-content .header-subtitle,
    .header-content .select-wrapper {
        display: none !important;
    }

    /* Mobile sidebar overlay */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Mobile sidebar */
    #sidebar {
        position: fixed !important;
        left: -100% !important;
        top: 0 !important;
        width: 85% !important;
        height: 100vh !important;
        z-index: 1000 !important;
        transition: left 0.3s ease !important;
        padding-top: var(--header-height) !important;
        background: var(--bg-color) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2) !important;
    }

    #sidebar.active {
        left: 0 !important;
    }

    /* Version selector in sidebar */
    #sidebar .select-wrapper {
        display: block !important;
        width: 100% !important;
        padding: 15px !important;
        background: #252526 !important;
        border-bottom: 1px solid #333 !important;
    }

    #sidebar .version-select {
        width: 100% !important;
        padding: 10px !important;
        font-size: 0.9rem !important;
        background: var(--bg-color) !important;
        border: 1px solid #444 !important;
        color: var(--text-color) !important;
        border-radius: 4px !important;
    }

    #sidebar .version-info {
        margin-top: 8px !important;
        padding: 8px !important;
        font-size: 0.8rem !important;
        color: var(--terminal-output) !important;
    }

    /* Fix version selector loading state */
    #sidebar .version-select option {
        color: var(--text-color) !important;
        background: var(--bg-color) !important;
    }

    /* Mobile file tree */
    .file-tree {
        flex: 1;
        overflow-y: auto;
        padding: 15px;
        border-top: none;
    }

    /* Mobile static links */
    .static-links {
        padding: 15px;
        background: #252526;
        border-top: 1px solid #333;
    }

    .static-links a {
        padding: 10px 15px;
        margin: 2px 0;
        border-radius: 4px;
        font-size: 0.9rem;
        display: block;
        color: var(--text-color);
        text-decoration: none;
    }

    /* Enhanced contributors section */
    .contributors-section {
        padding: 15px !important;
        background: #252526 !important;
        border-top: 1px solid #333 !important;
        margin-top: auto !important;
        position: relative !important;
    }

    .contributors-toggle {
        width: 100% !important;
        padding: 10px 15px !important;
        background: var(--bg-color) !important;
        border: 1px solid #444 !important;
        border-radius: 4px !important;
        color: var(--text-color) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        font-size: 0.9rem !important;
        cursor: pointer !important;
        user-select: none !important;
        margin-bottom: 0 !important;
    }

    .contributors-content {
        margin-top: 10px !important;
        background: var(--bg-color) !important;
        border-radius: 4px !important;
        border: 1px solid #444 !important;
        transition: all 0.3s ease !important;
        display: block !important;
        overflow: hidden !important;
        max-height: 500px !important;
    }

    .contributors-content.collapsed {
        max-height: 0 !important;
        margin-top: 0 !important;
        border: none !important;
        opacity: 0 !important;
    }

    .contributor {
        padding: 12px 15px !important;
        border-bottom: 1px solid #333 !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        text-decoration: none !important;
        color: var(--text-color) !important;
        background: var(--bg-color) !important;
    }

    .contributor:last-child {
        border-bottom: none !important;
    }

    .contributor-logo {
        width: 28px !important;
        height: 28px !important;
        border-radius: 50% !important;
        border: 2px solid var(--terminal-green) !important;
        flex-shrink: 0 !important;
    }

    .contributor-name {
        font-size: 0.9rem !important;
        color: var(--text-color) !important;
        flex-grow: 1 !important;
    }

    /* Fix contributors toggle icon */
    .contributors-toggle .toggle-icon {
        font-size: 0.8rem !important;
        transition: transform 0.3s ease !important;
        display: inline-block !important;
    }

    .contributors-toggle .toggle-text {
        color: var(--text-color) !important;
    }

    .contributors-content:not(.collapsed) ~ .contributors-toggle .toggle-icon {
        transform: rotate(180deg) !important;
    }

    /* Mobile main content */
    #main {
        margin-left: 0;
        width: 100%;
        padding: 5px;
    }

    #content {
        padding: 10px;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Mobile mermaid diagram styles */
    .mermaid {
        padding: 15px 10px !important;
        margin: 1em 0 !important;
        font-size: 12px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        max-width: calc(100vw - 20px) !important;
        position: relative !important;
    }

    .mermaid svg {
        min-width: 300px !important;
        max-width: none !important;
        width: auto !important;
        height: auto !important;
    }

    /* Ensure diagram text is readable on mobile */
    .mermaid .node .label,
    .mermaid .messageText,
    .mermaid .edgeLabel {
        font-size: 12px !important;
        font-family: 'Consolas', 'Courier New', monospace !important;
        fill: var(--terminal-green) !important;
    }

    /* Make edges more visible on mobile */
    .mermaid .flowchart-link,
    .mermaid .messageLine0,
    .mermaid .messageLine1 {
        stroke-width: 1.5px !important;
        stroke: var(--terminal-green) !important;
    }

    /* Adjust node spacing for mobile */
    .mermaid .node {
        margin: 8px !important;
    }

    /* Style node shapes */
    .mermaid .node rect,
    .mermaid .node circle,
    .mermaid .node ellipse,
    .mermaid .node polygon,
    .mermaid .node path {
        fill: transparent !important;
        stroke: var(--terminal-green) !important;
        stroke-width: 1px !important;
    }

    /* Add ASCII-like border */
    .mermaid::before {
        content: '+---[diagram]---+' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 4px 8px !important;
        color: var(--terminal-green) !important;
        font-family: 'Consolas', 'Courier New', monospace !important;
        font-size: 12px !important;
        border-bottom: 1px solid var(--terminal-green) !important;
    }

    /* Close button */
    .sidebar-close {
        position: absolute !important;
        top: calc(var(--header-height) + 8px) !important;
        right: 15px !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        background: var(--terminal-green) !important;
        color: var(--bg-color) !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 20px !important;
        cursor: pointer !important;
        z-index: 1002 !important;
        transition: transform 0.2s ease !important;
    }

    .sidebar-close:active {
        transform: scale(0.95) !important;
    }
}

