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

body {
    background: #2b2b2b;
    color: #f0f0f0;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.6;
}

a {
    color: #bbb;
    text-decoration: none;
    border-bottom: 1px solid #444;
}

a:hover {
    color: #fff;
    border-bottom-color: #bbb;
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
}

.sidebar {
    width: 300px;
    padding: 60px 40px;
    border-right: 1px solid #444;
    position: sticky;
    top: 0;
    height: 100vh;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid #555;
    margin-bottom: 20px;
}

.sidebar h1 {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 10px;
}

.description {
    color: #bbb;
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-info a {
    border: none;
    color: #bbb;
}

.contact-info a:hover {
    color: #fff;
}

.contact-info > p {
    color: #999;
    font-size: 13px;
}

.onion-address,
.monero-address {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.onion-address .label,
.monero-address .label {
    color: #bbb;
    font-size: 13px;
}

.onion-address .address,
.monero-address .address {
    color: #999;
    font-size: 11px;
    word-break: break-all;
}

.content {
    flex: 1;
    padding: 60px 40px;
    max-width: 800px;
}

.search-bar {
    margin-bottom: 40px;
    display: flex;
    gap: 10px;
}

.search-bar input {
    flex: 1;
    background: #333;
    border: 1px solid #555;
    color: #f0f0f0;
    padding: 10px 15px;
    font-family: monospace;
    font-size: 14px;
}

.search-bar input:focus {
    outline: none;
    border-color: #777;
}

.search-bar button {
    background: #333;
    border: 1px solid #555;
    color: #bbb;
    padding: 10px 20px;
    cursor: pointer;
    font-family: monospace;
    font-size: 14px;
}

.search-bar button:hover {
    color: #fff;
    border-color: #777;
}

.search-info {
    color: #999;
    margin-bottom: 20px;
    font-style: italic;
}

.articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 15px 0;
    border-bottom: 1px solid #3a3a3a;
}

.article-item a {
    flex: 1;
    border: none;
}

.article-item time {
    color: #999;
    font-size: 12px;
    margin-left: 20px;
}

.no-articles {
    color: #999;
    font-style: italic;
}

.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination span {
    color: #999;
}

.article-view {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #999;
    border: none;
}

.back-link:hover {
    color: #fff;
}

.article-header h1 {
    font-size: 32px;
    font-weight: normal;
    margin-bottom: 10px;
}

.article-header time {
    color: #999;
    font-size: 12px;
}

.article-content {
    color: #e8e8e8;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    font-weight: normal;
    margin: 30px 0 15px;
}

.article-content h1 { font-size: 28px; }
.article-content h2 { font-size: 24px; }
.article-content h3 { font-size: 20px; }

.article-content p {
    margin-bottom: 15px;
}

.article-content pre {
    background: #1f1f1f;
    border: 1px solid #444;
    padding: 15px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-content code {
    background: #1f1f1f;
    padding: 2px 6px;
    font-family: monospace;
}

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

.article-content ul,
.article-content ol {
    margin: 15px 0 15px 30px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 3px solid #555;
    padding-left: 20px;
    margin: 20px 0;
    color: #bbb;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-content th,
.article-content td {
    border: 1px solid #444;
    padding: 10px;
    text-align: left;
}

.article-content th {
    background: #1f1f1f;
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #444;
        padding: 30px 20px;
    }

    .content {
        padding: 30px 20px;
    }

    .article-view {
        padding: 30px 20px;
    }
}
