
:root {
    --primary-color: #5356EC;
    --primary-gradient: linear-gradient(65.68deg, #5356EC -11.59%, #8453ED 72.49%);
    --rich-black: #030303;
    --ghost-white: #fcfcfc;
    --border-color: #e5e5e5;
    --text-muted: #666666;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --hover-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

@media (prefers-color-scheme: dark) {
    :root {
        --rich-black: #fcfcfc;
        --ghost-white: #181a1b;
        --border-color: #383838;
        --text-muted: #a0a0a0;
        --card-shadow: 0 2px 8px rgba(255,255,255,0.08);
        --hover-shadow: 0 4px 16px rgba(255,255,255,0.12);
    }
}

body {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: var(--rich-black);
    background-color: var(--ghost-white);
    line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
    body {
        color: #fff;
        background-color: #181a1b;
    }
}

.css-logo {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.css-logo i {
    display: block;
    width: 25px;
    height: 7px;
    margin-top: 3px;
    background: #201600
}

@media (prefers-color-scheme: dark) {
    .css-logo i {
        background: #fff;
    }
}

.css-logo i.t {
    margin-top: 0;
    border-radius: 0 4px 4px 4px
}

.css-logo i.m {
    border-radius: 4px 0 4px 4px
}

.css-logo i.b {
    width: 11px;
    border-radius: 0 4px 4px 4px
}

@media (max-width: 500px) {
    .css-logo i.t {
        border-radius: 0 3px 3px 3px
    }

    .css-logo i.m {
        border-radius: 3px 0 3px 3px
    }

    .css-logo i.b {
        border-radius: 0 3px 3px 3px
    }
}

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

.header {
    font-size: 18px;
    font-weight: 700;
    padding: 10px 10px 1px 10px;
}

.header .header-inner {
    max-width: 1024px;
    margin: 0 auto;
}

.header .header-inner > a, .header .header-inner > div {
    display: inline-block;
    vertical-align: top;
}

.header .header-inner .buttons {
    float: right;
}

.header a {
    text-decoration: none;
    color: #201600;
}

@media (prefers-color-scheme: dark) {
    .header a {
        color: #fff;
    }
}

.header .nav {
    float: right;
}

.header .nav-item {
    padding: 0 5px;
}

@media (max-width: 1024px) {
    .header .nav {
        display: block;
        margin-top: 10px;
        text-align: center;
        float: none;
        font-size: 14px;
    }
}

.content {
    max-width: 1024px;
    margin: 5% auto;
    padding: 10px;
    box-sizing: border-box;
    background: #fff;
    z-index: 1;
    line-height: 1.5em;
}

@media (prefers-color-scheme: dark) {
    .content {
        background-color: #181a1b;
    }
}

.content .post img, .content .post video {
    max-width: 97%;
    margin: 0 auto;
    height: auto;
}

@media (max-width: 1024px) {
    .content {
        box-shadow: none;
    }
}

.posts {
    padding-left: 10px;
    border-left: 1px solid #eee;
}

.post-page .posts {
    border-left: 1px solid transparent;
    border-image: linear-gradient(to bottom, #eee, #fff) 1 50%;
}

@media (prefers-color-scheme: dark) {
    .post-page .posts {
        border-image: linear-gradient(to bottom, #012f46, #181a1b) 1 50%;
    }
}

.circle {
    display: inline-block;
    text-align: center;
    background: #201600;
    color: #fff;
    width: 30px;
    height: 30px;
    line-height: 30px;
    vertical-align: middle;
    border-radius: 30px;
}

.columns {
    margin-bottom: 50px;
}

.columns > * {
    display: inline-block;
    vertical-align: top;
    width: calc(49% - 10px);
    padding: 5px;
}

.post-link-icon {
    text-decoration: none;
}

.content.post-page .post-link-icon {
    display: none;
}

.content .code {
    position: relative;
    margin: 5px 0;
    white-space: pre;
    background: #201600;
    color: #fff;
    padding: 5px 0;
    overflow-y: auto;
    text-shadow: 1px 1px 1px rgb(0 0 0 / 25%);
    box-shadow: 0 0 30px rgba(32, 22, 0, 0.25);
    border-radius: 3px;
}

.code .title {
    padding: 0 10px;
    font-weight: 500;
}

.code .line {
    padding: 0 10px;
    font-family: monospace;
}

.code .line.highlight {
    background: #383830;
}

.code .line .line-number {
    display: inline-block;
    width: 14px;
    padding-right: 10px;
    user-select: none;
}

.content .footer {
    margin-top: 10em;
    font-size: 12px;
    text-align: center;
}

.content .posts .post .post-description h1 {
    font-size: 2em;
    line-height: 1.5;
}

.content .posts .post .post-description h1 a {
    font-size: 0.9em;
    color: #201600;
    text-decoration: none;
}

@media (prefers-color-scheme: dark) {
    .content .posts .post .post-description h1 a {
        color: #fff;
    }
}

.content.post-page .posts .post .post-description h1 a {
    text-decoration: none
}

.content .posts .post h6 {
    position: relative;
    left: -11px;
    padding-left: 10px;
    border-left: 1px solid #201600;
}

@media (prefers-color-scheme: dark) {
    .content .posts .post h6 {
        border-color: #012f46;
    }
}

.content .posts .post .btn {
    display: inline-block;
    margin-bottom: 10px;
    padding: 7px 10px;
    border-radius: 5px;
    font-size: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    background: #201600;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.content .posts .post .btn-big {
    padding: 15px 20px;
    font-size: 20px;
}

.content .posts .post .sm {
    font-size: 10px;
}

.content .posts .post .post-comment-count {
    display: inline;
}

.post-comment-widget {
    margin-left: -10px
}

@media (prefers-color-scheme: dark) {
    a {
        color: #fff;
    }
}

/* Modern Blog Layout */
.blog-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-main {
    flex: 1;
    min-width: 0;
}

.blog-sidebar {
    width: 300px;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .blog-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .blog-sidebar {
        width: 100%;
    }
}

/* Post Cards */
.post-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

@media (prefers-color-scheme: dark) {
    .post-card {
        background: #242628;
        border-color: var(--border-color);
    }
}

.post-card:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-2px);
}

.post-content h1 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.8em;
    line-height: 1.3;
}

.post-content h1 a {
    color: var(--rich-black);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-content h1 a:hover {
    color: var(--primary-color);
}

/* Categories */
.post-categories {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 20px;
    font-size: 0.85em;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(83, 86, 236, 0.3);
}

/* Sidebar */
.sidebar-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

@media (prefers-color-scheme: dark) {
    .sidebar-section {
        background: #242628;
        border-color: var(--border-color);
    }
}

.sidebar-title {
    margin: 0 0 20px 0;
    font-size: 1.2em;
    color: var(--rich-black);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--rich-black);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.category-item:hover {
    background: rgba(83, 86, 236, 0.08);
    border-color: rgba(83, 86, 236, 0.2);
}

.category-item.active {
    background: var(--primary-gradient);
    color: white;
}

.category-count {
    font-size: 0.9em;
    opacity: 0.7;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 50px 0;
    padding: 20px;
}

.pagination-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.pagination-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(83, 86, 236, 0.3);
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.95em;
}

/* Header improvements */
.header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 10px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

@media (prefers-color-scheme: dark) {
    .header {
        background: #242628;
        border-bottom-color: var(--border-color);
    }
}

.content {
    padding-top: 30px;
}

/* Post metadata styling */
.post h6, .post-content h6 {
    font-size: 0.9em;
    color: var(--text-muted);
    font-weight: 400;
    margin: 10px 0;
    line-height: 1.4;
}

.post-comment-count {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.85em;
}

