/* Server Mono Font */
@font-face {
    font-family: 'Server Mono';
    src: url('../fonts/ServerMono-Regular.woff2') format('woff2'),
         url('../fonts/ServerMono-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Server Mono';
    src: url('../fonts/ServerMono-RegularOblique.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: #e8e8e8;
    font-family: 'Server Mono', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 300;
    letter-spacing: -0.025em;
}

/* Terminal Container */
#terminal {
    display: flex;
    flex-direction: column;
    padding: 70px 20px 20px 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    min-height: 100vh;
    min-height: 100dvh;
}

/* Breadcrumb Navigation */
#breadcrumb {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #000;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 0;
    z-index: 100;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

#breadcrumb.visible {
    opacity: 1;
}

.breadcrumb-segment {
    display: inline-block;
    padding: 2px 20px 2px 20px;
    background: #2a2a2a;
    color: #e8e8e8;
    position: relative;
    margin-right: -8px;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%);
    transition: background 0.2s ease;
}

.breadcrumb-segment:first-child {
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
    padding-left: 12px;
}

.breadcrumb-segment.active {
    background: #0009FF;
    color: #fff;
    z-index: 2;
}

.breadcrumb-segment.clickable {
    cursor: pointer;
}

.breadcrumb-segment.clickable:hover {
    background: #3a3a3a;
}

.breadcrumb-segment.clickable.active:hover {
    background: #0009FF;
}

/* Output Area */
#output {
    margin-bottom: 20px;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 900px;
    line-height: 1.8;
}

/* Section Label */
.section-label {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-size: 0.8em;
}

#output .line {
    margin: 0;
    padding: 0;
}

#output .section-header {
    color: #fff;
    font-weight: 400;
    margin-top: 20px;
    margin-bottom: 10px;
}

#output .separator {
    color: #666;
    margin: 10px 0;
}

#output .muted {
    color: #999;
}

#output .dim {
    color: #666;
}

#output .command-echo {
    color: #fff;
    margin-bottom: 10px;
}

#output .command-echo .prompt {
    color: #999;
}

#output a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: #666;
    transition: all 0.2s ease;
    display: inline-block;
    vertical-align: bottom;
    position: relative;
    overflow: hidden;
}

#output a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 20%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.15) 80%,
        transparent 100%
    );
    pointer-events: none;
}

#output a:hover {
    text-decoration-color: #fff;
}

#output a:hover::after {
    animation: linkShimmer 0.5s ease-out forwards;
}

@keyframes linkShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

#output .ascii-art {
    color: #999;
    line-height: 0.9;
    margin: 20px 0;
    font-family: inherit;
    white-space: pre;
    letter-spacing: 0;
}

#output .error {
    color: #fff;
}

#output .photo-link {
    display: inline-block;
    vertical-align: bottom;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

#output .photo-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 20%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.15) 80%,
        transparent 100%
    );
    pointer-events: none;
}

#output .photo-link:hover::after {
    animation: linkShimmer 0.5s ease-out forwards;
}

/* Command Suggestions */
#command-suggestions {
    position: fixed;
    bottom: 60px;
    left: 20px;
    width: fit-content;
    max-width: 500px;
    background: #000;
    border: 1px solid #333;
    z-index: 200;
    max-height: 300px;
    overflow-y: auto;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

#command-suggestions.hidden {
    display: none;
}

.command-suggestion-item {
    padding: 4px 12px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid #1a1a1a;
    white-space: nowrap;
}

.command-suggestion-item:last-child {
    border-bottom: none;
}

.command-suggestion-item:hover {
    background: #0009FF;
}

.command-suggestion-item.selected {
    background: #0009FF;
}

.command-suggestion-name {
    color: #fff;
    display: inline;
    margin-right: 8px;
}

.command-suggestion-description {
    color: #999;
    display: inline;
}

.command-suggestion-item.selected .command-suggestion-description {
    color: rgba(255, 255, 255, 0.7);
}

/* Work Loader */
.terminal-loader {
    position: fixed;
    bottom: 52px;
    left: 20px;
    width: 25vw;
}

.terminal-loader.hidden {
    display: none;
}

.terminal-loader-text {
    color: #333;
    margin-bottom: 6px;
    font-size: 13px;
}

.terminal-loader-bar {
    height: 14px;
    background: #111;
    position: relative;
    overflow: hidden;
}

.terminal-loader-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 60px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 9, 255, 0.15) 20%,
        rgba(0, 9, 255, 0.4) 50%,
        rgba(0, 9, 255, 0.8) 80%,
        #0009FF 100%
    );
    animation: bounceLoader 0.8s ease-in-out infinite;
}

@keyframes bounceLoader {
    0% {
        left: 0%;
        transform: scaleX(1);
    }
    49.9% {
        transform: scaleX(1);
    }
    50% {
        left: calc(100% - 60px);
        transform: scaleX(-1);
    }
    99.9% {
        transform: scaleX(-1);
    }
    100% {
        left: 0%;
        transform: scaleX(1);
    }
}

/* Input Line */
#input-line {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    margin-top: auto;
}

#input-line .prompt {
    color: #999;
    flex-shrink: 0;
}

#input-line .input-wrapper {
    flex: 1;
    position: relative;
}

#command-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-size: inherit;
    caret-color: transparent;
    position: relative;
    z-index: 2;
}

#custom-cursor {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.6em;
    height: 1.2em;
    background: #0009FF;
    pointer-events: none;
    z-index: 1;
    animation: cursorBlink 1s ease-in-out infinite;
}

#command-input::placeholder {
    color: #333;
    opacity: 1;
}

#command-input::selection {
    background: #333;
}

/* Cursor Animation */
.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #0009FF;
    animation: blink 1s ease-in-out infinite;
    margin-left: 2px;
}

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

@keyframes cursorBlink {
    0%, 45% {
        opacity: 1;
    }
    50%, 95% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Typing Animation */
.typing {
    overflow: hidden;
    white-space: nowrap;
}

/* Simple Lightbox */
.dos-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.dos-lightbox.hidden {
    display: none;
}

.dos-lightbox:not(.active) {
    opacity: 0;
    pointer-events: none;
}

.dos-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

/* Simple Window */
.dos-window {
    position: relative;
    background: #000;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.2s ease;
    max-width: calc(100vw - 80px);
    max-height: calc(100vh - 80px);
}

.dos-lightbox.active .dos-window {
    transform: scale(1);
    opacity: 1;
}

/* Hide all the DOS chrome elements */
.dos-titlebar,
.dos-menubar,
.dos-statusbar {
    display: none;
}

/* Title Bar */
.dos-title-bar {
    background: #000;
    color: #e8e8e8;
    padding: 8px 12px;
    font-size: 11px;
    border-bottom: 1px solid #333;
    font-family: 'Server Mono', 'Courier New', monospace;
}

/* Close Button */
.dos-btn-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.dos-btn-close:hover {
    color: #fff;
}

.dos-btn-close span {
    line-height: 1;
}

/* Content Area */
.dos-content {
    background: #000;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.dos-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dos-image-container img {
    max-width: calc(100vw - 160px);
    max-height: calc(100vh - 240px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease;
}

.dos-image-container video {
    max-width: calc(100vw - 160px);
    max-height: calc(100vh - 240px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease;
}

.dos-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    width: 120px;
    height: 6px;
    background: #111;
    overflow: hidden;
}

.dos-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 9, 255, 0.15) 20%,
        rgba(0, 9, 255, 0.4) 50%,
        rgba(0, 9, 255, 0.8) 80%,
        #0009FF 100%
    );
    animation: bounceLoaderSmall 0.8s ease-in-out infinite;
}

@keyframes bounceLoaderSmall {
    0% {
        left: 0%;
        transform: scaleX(1);
    }
    49.9% {
        transform: scaleX(1);
    }
    50% {
        left: calc(100% - 40px);
        transform: scaleX(-1);
    }
    99.9% {
        transform: scaleX(-1);
    }
    100% {
        left: 0%;
        transform: scaleX(1);
    }
}

/* Caption */
#dos-image-info {
    color: #999;
    font-size: 12px;
    text-align: center;
    padding: 8px 20px 6px 20px;
    width: 100%;
}

/* Navigation - keyboard only, no visible buttons */
.dos-nav-btn {
    display: none;
}

/* Image Counter - hide text version */
#dos-image-counter {
    display: none;
}

/* Pagination Dots */
.dos-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 10px 0 0 0;
}

.dos-pagination-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #333;
    transition: background 0.2s ease;
}

.dos-pagination-dot.active {
    background: #999;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dos-window {
        max-width: calc(100vw - 30px);
        max-height: calc(100vh - 30px);
    }

    .dos-content {
        padding: 20px;
    }

    .dos-image-container img,
    .dos-image-container video {
        max-width: calc(100vw - 80px);
        max-height: calc(100vh - 160px);
    }

    .dos-btn-close {
        top: 5px;
        right: 5px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    #dos-image-info {
        font-size: 12px;
        padding: 6px 15px 4px 15px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        font-size: 12px;
    }

    #terminal {
        padding: 60px 15px 15px 15px;
        padding-bottom: calc(55px + env(safe-area-inset-bottom, 0px));
    }

    #breadcrumb {
        padding: 15px;
        font-size: 10px;
    }

    .breadcrumb-segment {
        padding: 2px 18px 2px 18px;
    }

    .breadcrumb-segment:first-child {
        padding-left: 10px;
    }

    #output .ascii-art {
        margin: 6px 0;
    }

    #input-line {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        gap: 5px;
        padding: 10px 15px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        background: #000;
        z-index: 50;
        margin-top: 0;
    }

    .terminal-loader {
        left: 15px;
        right: 15px;
        width: auto;
        bottom: calc(50px + env(safe-area-inset-bottom, 0px));
    }

    #command-suggestions {
        left: 15px;
        bottom: calc(50px + env(safe-area-inset-bottom, 0px));
    }

    .lightbox .close {
        right: 20px;
        font-size: 30px;
    }

    /* Highlight mobile overrides */
    .highlight-toolbar {
        left: 50% !important;
        transform: translateX(-50%);
    }

    .highlight-popover {
        left: 10px !important;
        right: 10px;
        width: auto;
    }

    .identity-box {
        width: calc(100vw - 30px);
    }
}

/* Home Tree */
.home-tree {
    white-space: pre;
}

.home-tree .tree-branch {
    color: #444;
}

.home-tree .tree-cmd,
.home-tree .tree-article,
.writing-entry .article-link {
    cursor: pointer;
    display: inline-block;
    vertical-align: bottom;
    position: relative;
    overflow: hidden;
}

.home-tree .tree-cmd {
    color: #fff;
}

.home-tree .tree-article {
    color: #999;
}

.home-tree .tree-desc {
    color: #666;
}

.home-tree .tree-cmd::after,
.home-tree .tree-article::after,
.writing-entry .article-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 20%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.15) 80%,
        transparent 100%
    );
    pointer-events: none;
}

.home-tree .tree-cmd:hover::after,
.home-tree .tree-article:hover::after,
.writing-entry .article-link:hover::after {
    animation: linkShimmer 0.5s ease-out forwards;
}

/* Writing List */
.writing-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.writing-entry {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.writing-entry .article-link {
    color: #fff;
    align-self: flex-start;
}

.writing-date {
    color: #666;
    font-size: 0.9em;
}

.writing-likes {
    color: #0009FF;
}

.writing-comments {
    color: #999;
}

.writing-desc {
    color: #999;
}

/* Article Content */
.article-content {
    white-space: normal;
    max-width: 700px;
}

.article-content h1 {
    font-size: 1.4em;
    font-weight: 400;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 1.1em;
    font-weight: 400;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 28px;
    margin-bottom: 12px;
}

.article-content h3 {
    font-size: 1em;
    font-weight: 400;
    color: #ccc;
    margin-top: 20px;
    margin-bottom: 8px;
}

.article-content p {
    color: #ccc;
    margin-bottom: 14px;
    line-height: 1.7;
}

.article-content strong {
    color: #fff;
    font-weight: 400;
}

.article-content em {
    font-style: italic;
    color: #bbb;
}


.article-content blockquote {
    border-left: 2px solid #333;
    padding-left: 16px;
    color: #999;
    margin: 16px 0;
}

.article-content code {
    background: #111;
    padding: 2px 5px;
    font-size: 0.95em;
    color: #ccc;
}

.article-content pre.article-code {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    padding: 14px 16px;
    margin: 16px 0;
    overflow-x: auto;
    line-height: 1.5;
}

.article-content pre.article-code code {
    background: none;
    padding: 0;
    color: #bbb;
}

.article-content ul,
.article-content ol {
    margin: 12px 0;
    padding-left: 24px;
    color: #ccc;
}

.article-content li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.article-content hr {
    border: none;
    border-top: 1px solid #222;
    margin: 24px 0;
}

/* Article Highlights */
mark.article-highlight {
    background: rgba(80, 90, 255, 0.45);
    color: #fff;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.15s ease;
}

mark.article-highlight:hover {
    background: rgba(80, 90, 255, 0.55);
}

/* Highlight Toolbar */
.highlight-toolbar {
    position: absolute;
    z-index: 500;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 4px;
    display: flex;
    align-items: center;
    animation: toolbarFadeIn 0.15s ease;
}

@keyframes toolbarFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.highlight-toolbar-error {
    color: #999;
    font-size: 11px;
    padding: 8px 12px;
    white-space: nowrap;
}

.highlight-toolbar-btn {
    background: none;
    border: none;
    color: #e8e8e8;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 10px;
    position: relative;
    overflow: hidden;
    display: inline-block;
    transition: color 0.15s ease;
}

.highlight-toolbar-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 20%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.15) 80%,
        transparent 100%
    );
    pointer-events: none;
}

.highlight-toolbar-btn:hover::after {
    animation: linkShimmer 0.5s ease-out forwards;
}

/* Highlight Popover */
.highlight-popover {
    position: absolute;
    z-index: 500;
    background: #111;
    border: 1px solid #333;
    padding: 12px 14px;
    width: 260px;
    font-size: 12px;
    animation: toolbarFadeIn 0.15s ease;
}

.popover-author {
    color: #fff;
    font-weight: 400;
    margin-bottom: 4px;
}

.popover-comment {
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 8px;
    word-wrap: break-word;
    max-height: 120px;
    overflow-y: auto;
}

.popover-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #222;
    padding-top: 8px;
}

.popover-time {
    color: #666;
    font-size: 11px;
}

.popover-like-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 2px 4px;
    position: relative;
    overflow: hidden;
    transition: color 0.15s ease;
}

.popover-like-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 20%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.15) 80%,
        transparent 100%
    );
    pointer-events: none;
}

.popover-like-btn:hover::after {
    animation: linkShimmer 0.5s ease-out forwards;
}

.popover-like-icon {
    color: transparent;
    -webkit-text-stroke: 1px #999;
    transition: all 0.15s ease;
}

.popover-like-icon.liked {
    color: #0009FF;
    -webkit-text-stroke: 1px #0009FF;
}

.popover-like-count {
    font-size: 11px;
}

/* Identity Modal */
.identity-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: toolbarFadeIn 0.15s ease;
}

.identity-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.identity-box {
    position: relative;
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 20px;
    width: 340px;
    max-width: calc(100vw - 40px);
}

.identity-title {
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.identity-field {
    margin-bottom: 12px;
}

.identity-label {
    display: block;
    color: #999;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.identity-optional {
    color: #555;
    text-transform: none;
}

.identity-name,
.identity-comment {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    color: #e8e8e8;
    font-family: 'Server Mono', 'Courier New', monospace;
    font-size: 12px;
    padding: 8px 10px;
    outline: none;
    transition: border-color 0.15s ease;
}

.identity-name:focus,
.identity-comment:focus {
    border-color: #0009FF;
}

.identity-comment {
    resize: vertical;
    min-height: 60px;
}

.identity-error {
    color: #ff4444;
    font-size: 11px;
    margin-bottom: 8px;
}

.identity-error.hidden {
    display: none;
}

.identity-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.identity-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #e8e8e8;
    font-family: 'Server Mono', 'Courier New', monospace;
    font-size: 12px;
    padding: 6px 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.identity-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%
    );
    pointer-events: none;
}

.identity-btn:hover::after {
    animation: linkShimmer 0.5s ease-out forwards;
}

.identity-submit {
    background: #0009FF;
    border-color: #0009FF;
    color: #fff;
}

/* Article Like Section */
.article-like-section {
    text-align: center;
    padding: 8px 0 20px;
}

.article-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.article-comment-count {
    color: #999;
    font-size: 13px;
}

.article-like-section hr {
    border: none;
    border-top: 1px solid #222;
    margin-bottom: 20px;
}

.article-like-btn {
    background: none;
    border: 1px solid #333;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.15s ease, color 0.15s ease;
    font-family: 'Server Mono', 'Courier New', monospace;
}

.article-like-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%
    );
    pointer-events: none;
}

.article-like-btn:hover::after {
    animation: linkShimmer 0.5s ease-out forwards;
}

.article-like-btn.liked {
    border-color: #0009FF;
}

.article-like-icon {
    color: transparent;
    -webkit-text-stroke: 1px #999;
    transition: all 0.15s ease;
}

.article-like-btn.liked .article-like-icon,
.article-like-icon.liked {
    color: #0009FF;
    -webkit-text-stroke: 1px #0009FF;
}

.article-like-count {
    font-size: 13px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Selection */
::selection {
    background: #333;
    color: #fff;
}

/* Focus visible for accessibility */
#command-input:focus-visible {
    outline: none;
}
