/* Retro Terminal Blog Styles */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

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

body {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: #000;
    color: #fff;
    overflow: hidden;
    height: 100vh;
}

/* CRT Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 50%, rgba(255, 255, 255, 0.01) 50%);
    background-size: 100% 8px;
    pointer-events: none;
    z-index: 1000;
    animation: scanlines 2s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(8px); }
}

/* CRT Phosphor Flicker Effect - Removed for eye comfort */

/* Terminal Window */
.terminal-window {
    width: 100vw;
    height: 100vh;
    background: #000;
    border: 1px solid #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.1),
        0 0 40px rgba(255, 255, 255, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    animation: crtGlow 4s ease-in-out infinite alternate;
}

/* Subtle text flicker - Removed for eye comfort */

@keyframes crtGlow {
    0% { 
        box-shadow: 
            0 0 20px rgba(255, 255, 255, 0.1),
            0 0 40px rgba(255, 255, 255, 0.05),
            inset 0 0 20px rgba(255, 255, 255, 0.05);
    }
    100% { 
        box-shadow: 
            0 0 25px rgba(255, 255, 255, 0.15),
            0 0 50px rgba(255, 255, 255, 0.08),
            inset 0 0 25px rgba(255, 255, 255, 0.08);
    }
}

/* Tab Container */
.tab-container {
    background: #1e1e1e;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    padding: 0;
    height: 35px;
    border-top: 1px solid #fff;
    position: relative;
}

.tabs {
    display: flex;
    flex: 1;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding-right: 80px; /* Space for tab-actions */
    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
    scroll-behavior: smooth;
}

.tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.tab {
    background: #2d2d2d;
    border: 1px solid #333;
    border-bottom: none;
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #ccc;
    transition: all 0.2s;
    position: relative;
    min-width: 80px;
    max-width: 150px;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.tab.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    z-index: 1000;
}

.tab.drag-over {
    border-left: 3px solid #00bfff;
    background: #3d3d3d;
}

.tab:hover {
    background: #3d3d3d;
    color: #fff;
}

.tab.active {
    background: #0c0c0c;
    color: #fff;
    border-bottom: 1px solid #0c0c0c;
    margin-bottom: -1px;
}

.tab-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-close {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    border-radius: 2px;
    transition: all 0.2s;
}

.tab-close:hover {
    background: #ff4444;
    color: #fff;
}

.tab-actions {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 8px;
    display: flex;
    align-items: center;
    background: #1e1e1e;
    border-left: 1px solid #333;
    z-index: 10;
}

.tab-new-btn {
    background: transparent;
    border: 1px solid #333;
    color: #ccc;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 2px;
    transition: all 0.2s;
}

.tab-new-btn:hover {
    background: #3d3d3d;
    color: #fff;
    border-color: #555;
}

.settings-btn {
    background: transparent;
    border: 1px solid #333;
    color: #ccc;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 2px;
    transition: all 0.2s;
    margin-right: 8px;
}

.settings-btn:hover {
    background: #3d3d3d;
    color: #fff;
    border-color: #555;
}

/* Content Area */
.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #0c0c0c;
}

.tab-content {
    display: none;
    height: 100%;
}

.tab-content.active {
    display: block;
}

/* Directory Header */
.directory-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.prompt-line {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.prompt-path {
    color: #00bfff;
    font-weight: bold;
    white-space: nowrap;
}


#home-search-input::placeholder {
    color: #666;
    position: relative;
    top: -1px;
    left: 2px;
}

/* Search input wrapper */
.search-input-wrapper {
    position: relative;
    display: inline-block;
    flex: 1;
    min-width: 200px;
    margin-left: 5px;
}

/* Custom cursor for search input */
#home-search-input {
    caret-color: transparent; /* Hide default cursor */
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

/* Custom blinking cursor */
.search-cursor {
    color: #00ff00;
    animation: blink 1s infinite;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    pointer-events: none;
}

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

/* Theme-specific cursor colors */
.theme-powershell .search-cursor {
    color: #0078d4; /* PowerShell blue */
}

.theme-crt .search-cursor {
    color: #00ff00; /* CRT green */
}

.theme-paper .search-cursor {
    color: #000000; /* Paper black */
}


.scanline {
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation: pulse 2s ease-in-out infinite;
}

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

/* File List */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.file-item:hover {
    background: #1e1e1e;
    border-left-color: #00bfff;
}

.file-icon {
    margin-right: 10px;
    font-size: 16px;
}

.file-name {
    font-weight: bold;
    flex: 1;
}

.file-date {
    margin: 0 20px;
    color: #888;
    font-size: 12px;
}

.file-size {
    color: #888;
    font-size: 12px;
}

/* Post Window */
.post-window {
    background: #0c0c0c;
    border: 1px solid #333;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.post-header {
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.post-header h2 {
    color: #00bfff;
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: bold;
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #888;
    align-items: center;
}

.share-btn {
    background: rgba(0, 123, 255, 0.2);
    border: 1px solid rgba(0, 123, 255, 0.5);
    color: #007bff;
    padding: 4px 12px;
    font-size: 11px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 2px;
}

.share-btn:hover {
    background: rgba(0, 123, 255, 0.3);
    border-color: #007bff;
    transform: translateY(-1px);
}

.share-btn:active {
    transform: translateY(0);
    background: rgba(0, 123, 255, 0.4);
}

.post-body {
    line-height: 1.6;
    font-size: 14px;
}

.post-body p {
    margin-bottom: 15px;
}

.post-body h3 {
    color: #00bfff;
    margin: 20px 0 10px 0;
    font-size: 16px;
    font-weight: bold;
}

.post-body ul {
    margin: 10px 0 10px 20px;
}

.post-body li {
    margin-bottom: 5px;
}

/* Markdown styling */
.post-body h1, .post-body h2, .post-body h3, .post-body h4, .post-body h5, .post-body h6 {
    color: #00bfff;
    margin: 20px 0 10px 0;
    font-weight: bold;
}

.post-body h1 {
    font-size: 24px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.post-body h2 {
    font-size: 20px;
}

.post-body h3 {
    font-size: 18px;
}

.post-body h4 {
    font-size: 16px;
}

.post-body p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.post-body ul, .post-body ol {
    margin: 10px 0 10px 20px;
}

.post-body li {
    margin-bottom: 8px;
}

.post-body strong {
    color: #fff;
    font-weight: bold;
}

.post-body em {
    color: #ccc;
    font-style: italic;
}

.post-body code {
    background: #1e1e1e;
    color: #00bfff;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 13px;
}

.post-body pre {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
    overflow-x: auto;
}

.post-body pre code {
    background: transparent;
    padding: 0;
    color: #fff;
}

.post-body blockquote {
    border-left: 4px solid #00bfff;
    margin: 15px 0;
    padding-left: 15px;
    color: #ccc;
    font-style: italic;
}

.post-body a {
    color: #00bfff;
    text-decoration: none;
}

.post-body a:hover {
    text-decoration: underline;
}

.post-body hr {
    border: none;
    border-top: 1px solid #333;
    margin: 20px 0;
}

/* Command Palette */
.command-palette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.command-palette-content {
    background: #0c0c0c;
    border: 1px solid #333;
    border-radius: 4px;
    width: 600px;
    max-width: 90vw;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.command-input-container {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #333;
}

.command-prompt {
    color: #00bfff;
    font-weight: bold;
    margin-right: 10px;
    white-space: nowrap;
}

#command-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 14px;
    outline: none;
    flex: 1;
}

#command-input::placeholder {
    color: #666;
}

.command-results {
    max-height: 300px;
    overflow-y: auto;
}

.command-result-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
    gap: 10px;
}

.command-result-item:hover,
.command-result-item.selected {
    background: #1e1e1e;
}

.command-result-icon {
    font-size: 16px;
}

.command-result-title {
    flex: 1;
    color: #fff;
    font-weight: bold;
}

.command-result-meta {
    color: #888;
    font-size: 12px;
}

/* Settings Modal */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-content {
    background: #0c0c0c;
    border: 1px solid #333;
    border-radius: 4px;
    width: 400px;
    max-width: 90vw;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
}

.settings-header h3 {
    color: #fff;
    margin: 0;
    font-size: 18px;
}

.settings-close {
    background: transparent;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-close:hover {
    color: #fff;
}

.settings-body {
    padding: 20px;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-weight: bold;
}

.setting-group select {
    background: #1e1e1e;
    border: 1px solid #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 3px;
    font-family: inherit;
    width: 100%;
}

.setting-group input[type="checkbox"] {
    margin-right: 8px;
}

/* Boot Screen */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00bfff;
}

.boot-content {
    text-align: center;
}

.boot-logo {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #00bfff;
}

.boot-text {
    font-size: 18px;
    margin-bottom: 30px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.boot-progress {
    width: 200px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.boot-progress-bar {
    height: 100%;
    background: #00bfff;
    width: 0%;
    animation: bootProgress 2s ease-in-out forwards;
}

@keyframes bootProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Reading Aids */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #333;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reading-progress.show {
    opacity: 1;
}

.reading-progress-bar {
    height: 100%;
    background: #00bfff;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

.reading-meta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 1000;
    display: none;
    border: 1px solid #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    min-width: 200px;
}

.reading-meta.show {
    display: block;
    animation: slideInUp 0.3s ease;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reading-time::before {
    content: "📖";
    font-size: 14px;
}

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

/* Theme-specific reading aids */
.theme-crt .reading-progress-bar {
    background: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.theme-paper .reading-meta {
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    border-color: #ddd;
}

.theme-paper .reading-progress {
    background: #ddd;
}

.theme-paper .reading-progress-bar {
    background: #000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Theme System */
.theme-crt {
    --primary-color: #00ff00;
    --bg-color: #000;
    --text-color: #00ff00;
    --border-color: #00ff00;
    --accent-color: #00ff00;
}

.theme-crt body {
    color: var(--text-color);
}

.theme-crt .terminal-window {
    border-color: var(--border-color);
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.2),
        0 0 40px rgba(0, 255, 0, 0.1),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
    animation: crtGreenGlow 3s ease-in-out infinite alternate;
}

@keyframes crtGreenGlow {
    0% { 
        box-shadow: 
            0 0 20px rgba(0, 255, 0, 0.2),
            0 0 40px rgba(0, 255, 0, 0.1),
            inset 0 0 20px rgba(0, 255, 0, 0.1);
    }
    100% { 
        box-shadow: 
            0 0 30px rgba(0, 255, 0, 0.3),
            0 0 60px rgba(0, 255, 0, 0.15),
            inset 0 0 30px rgba(0, 255, 0, 0.15);
    }
}

.theme-crt .tab-container {
    border-top-color: var(--border-color);
}

.theme-crt .prompt-path,
.theme-crt .post-header h2,
.theme-crt .post-body h1,
.theme-crt .post-body h2,
.theme-crt .post-body h3,
.theme-crt .post-body h4,
.theme-crt .post-body h5,
.theme-crt .post-body h6 {
    color: var(--primary-color);
}

.theme-crt .file-item:hover {
    border-left-color: var(--primary-color);
}

.theme-crt .tab.active {
    background: var(--bg-color);
    color: var(--text-color);
}

.theme-paper {
    --primary-color: #000;
    --bg-color: #fff;
    --text-color: #000;
    --border-color: #000;
    --accent-color: #000;
}

.theme-paper body {
    background: var(--bg-color);
    color: var(--text-color);
}

.theme-paper .terminal-window {
    background: var(--bg-color);
    border-color: var(--border-color);
}

.theme-paper .tab-container {
    background: #f5f5f5;
    border-bottom-color: var(--border-color);
    border-top-color: var(--border-color);
}

.theme-paper .tab {
    background: #e0e0e0;
    border-color: #ccc;
    color: var(--text-color);
}

.theme-paper .tab.active {
    background: var(--bg-color);
    color: var(--text-color);
}

.theme-paper .content {
    background: var(--bg-color);
}

.theme-paper .file-item {
    background: transparent;
    color: var(--text-color);
}

.theme-paper .file-item:hover {
    background: #f0f0f0;
    border-left-color: var(--primary-color);
}

.theme-paper .post-window {
    background: #f9f9f9;
    border-color: #ddd;
}

.theme-paper .prompt-path,
.theme-paper .post-header h2,
.theme-paper .post-body h1,
.theme-paper .post-body h2,
.theme-paper .post-body h3,
.theme-paper .post-body h4,
.theme-paper .post-body h5,
.theme-paper .post-body h6 {
    color: var(--primary-color);
}

.theme-paper .post-body {
    color: var(--text-color);
}

.theme-paper .post-body p,
.theme-paper .post-body li,
.theme-paper .post-body span {
    color: var(--text-color);
}

.theme-paper .post-body strong {
    color: var(--text-color);
}

.theme-paper .post-body em {
    color: #333;
}

/* About Window */
.about-window {
    background: #0c0c0c;
    border: 1px solid #333;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.about-window h2 {
    color: #00bfff;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

.about-window p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.about-window ul {
    margin: 10px 0 10px 20px;
}

.about-window li {
    margin-bottom: 8px;
    color: #888;
}

/* Status Bar */
.status-bar {
    background: #0c0c0c;
    border-top: 1px solid #333;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.status-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.clickable-version {
    cursor: pointer;
    color: #00bfff;
    transition: color 0.2s ease;
}

.clickable-version:hover {
    color: #fff;
    text-decoration: underline;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    color: #fff;
}

.loading-text {
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #fff;
}

.loading-dots {
    display: flex;
    gap: 5px;
}

.loading-dots span {
    font-size: 24px;
    animation: blink 1s infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

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

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

::-webkit-scrollbar-track {
    background: #001100;
    border: 1px solid #003300;
}

::-webkit-scrollbar-thumb {
    background: #00ff88;
    border: 1px solid #008844;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .file-date, .file-size {
        margin: 0;
    }
    
    .toolbar {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .toolbar-btn {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    /* Mobile Tab Improvements */
    .tab {
        min-width: 70px;
        max-width: 120px;
        padding: 5px 8px;
        font-size: 10px;
    }
    
    .tab-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .tab-actions {
        padding: 0 6px;
    }
    
    .tab-new-btn, .settings-btn {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .tabs {
        padding-right: 70px;
    }
}

@media (max-width: 480px) {
    .tab {
        min-width: 60px;
        max-width: 100px;
        padding: 4px 6px;
        font-size: 9px;
    }
    
    .tab-actions {
        padding: 0 4px;
    }
    
    .tab-new-btn, .settings-btn {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    .tabs {
        padding-right: 60px;
    }
}

/* About Page Styling */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.ascii-art {
    text-align: center;
    margin: 20px 0;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 10px;
    line-height: 1.2;
    color: #00bfff;
    background: #1a1a1a;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #333;
    overflow-x: auto;
}

.ascii-art pre {
    margin: 0;
    white-space: pre;
    font-family: inherit;
}

.about-content h3 {
    color: #00bfff;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 18px;
}

.about-content h4 {
    color: #fff;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 16px;
}

.about-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.about-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.about-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.about-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
}

.about-footer p {
    margin-bottom: 8px;
    color: #888;
    font-style: italic;
}

/* Mobile responsive for about page */
@media (max-width: 768px) {
    .about-content {
        padding: 15px;
    }
    
    .ascii-art {
        font-size: 8px;
        padding: 10px;
    }
    
    .about-content h3 {
        font-size: 16px;
    }
    
    .about-content h4 {
        font-size: 14px;
    }
}

/* Profile Image Styles */
.profile-image-container {
    text-align: center;
    margin: 20px 0;
}

.profile-image {
    max-width: 200px;
    width: 100%;
    height: auto;
    border: 2px solid #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

/* Theme-specific profile image styles */
.theme-crt .profile-image {
    border-color: #00ff00;
    box-shadow: 0 4px 8px rgba(0, 255, 0, 0.3);
}

.theme-paper .profile-image {
    border-color: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive profile image */
@media (max-width: 768px) {
    .profile-image {
        max-width: 150px;
    }
}

/* Attachments Section */
.attachments-section {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #fff;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.attachments-section h4 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.attachment-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 12px;
}

.attachment-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: translateX(5px);
}

.attachment-icon {
    font-size: 20px;
    min-width: 24px;
}

.attachment-name {
    flex: 1;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

.attachment-size {
    color: #ccc;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

/* Theme-specific attachment styles */
.theme-crt .attachments-section {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.05);
}

.theme-crt .attachment-item {
    border-color: rgba(0, 255, 0, 0.3);
    background: rgba(0, 255, 0, 0.1);
}

.theme-crt .attachment-item:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00ff00;
}

.theme-paper .attachments-section {
    border-color: #000;
    background: rgba(0, 0, 0, 0.05);
}

.theme-paper .attachment-item {
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.1);
}

.theme-paper .attachment-item:hover {
    background: rgba(0, 0, 0, 0.2);
    border-color: #000;
}

.theme-paper .attachment-name {
    color: #000;
}

.theme-paper .attachment-size {
    color: #666;
}

/* Mobile responsive attachments */
@media (max-width: 768px) {
    .attachments-section {
        margin-top: 20px;
        padding: 15px;
    }
    
    .attachment-item {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .attachment-name {
        font-size: 13px;
    }
    
    .attachment-size {
        font-size: 11px;
    }
}

/* Media Viewer Modal */
#media-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-content {
    background: #000;
    border: 2px solid #fff;
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
}

.media-content .modal-header {
    background: #333;
    color: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.media-content .modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.media-content .close {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.media-content .close:hover {
    color: #ccc;
}

.media-content .modal-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

#media-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

#media-container img,
#media-container video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* Theme-specific media viewer styles */
.theme-crt #media-viewer {
    background: rgba(0, 0, 0, 0.95);
}

.theme-crt .media-content {
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.theme-paper #media-viewer {
    background: rgba(255, 255, 255, 0.95);
}

.theme-paper .media-content {
    background: #fff;
    border-color: #000;
}

.theme-paper .media-content .modal-header {
    background: #f5f5f5;
    color: #000;
    border-bottom-color: #ddd;
}

.theme-paper .media-content .close {
    color: #000;
}

.theme-paper .media-content .close:hover {
    color: #666;
}

.theme-paper .media-content .modal-body {
    background: #fff;
}

/* Mobile responsive media viewer */
@media (max-width: 768px) {
    .media-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 10px;
    }
    
    .media-content .modal-header {
        padding: 10px 15px;
    }
    
    .media-content .modal-header h3 {
        font-size: 14px;
    }
    
    #media-container {
        min-height: 200px;
    }
}
