:root {
    --bg-color: #1a1a1a;
    --bg-secondary: #252525;
    --text-primary: #ededed;
    --text-secondary: #b0b0b0;
    --accent-color: #3f51b5; /* Indigo */
    --accent-hover: #5c6bc0;
    --border-color: #333;
    --shadow: 0 2px 4px rgba(0,0,0,0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px; /* Slightly smaller base font for traditional dense layout */
}

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

a:hover {
    color: var(--accent-hover);
}

.container {
    max-width: 1100px; /* Traditional fixed width feel */
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links li a {
    font-size: 14px;
    color: var(--text-secondary);
}

.nav-links li a:hover {
    color: #fff;
}

/* Common Layout - Changed to Single Column for Minimalist/Personal Blog Feel */
.main-wrapper {
    display: block;
    max-width: 900px; /* More focused reading width */
    margin: 40px auto;
}

.content-area {
    background-color: transparent; /* Remove boxy look */
    border: none;
    padding: 0;
}

/* Sidebar hidden by default or moved to bottom if needed. Here we hide it for cleaner look */
.sidebar {
    display: none;
}

/* Article List - Big Cards */
.article-item {
    display: flex;
    flex-direction: column; /* Stack image and text */
    margin-bottom: 60px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}

.article-item:hover {
    transform: translateY(-5px);
}

.article-thumb {
    width: 100%;
    height: 400px; /* Big immersive image */
    object-fit: cover;
    border-radius: 0;
}

.article-info {
    padding: 30px;
}

.article-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-info p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.article-meta {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 20px;
}


.sidebar-title {
    font-size: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

/* Feed Layout */
.article-feed .article-entry {
    display: flex;
    align-items: center;
    gap: 60px;
}

.article-feed .article-entry:nth-child(even) {
    flex-direction: row-reverse;
}

.article-feed .article-entry .entry-image-link {
    flex: 1;
    display: block;
    overflow: hidden;
}

.article-feed .article-entry .entry-thumb {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 0;
    transition: transform 0.5s ease;
}

.article-feed .article-entry .entry-image-link:hover .entry-thumb {
    transform: scale(1.05);
}

.article-feed .article-entry .entry-content-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.entry-title {
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.3;
}
.entry-title a { color: var(--text-primary); }

.entry-summary {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.entry-more, .read-more-btn {
    text-transform: uppercase;
    font-size: 12px;
    border-bottom: 1px solid #666;
    padding-bottom: 2px;
    color: #fff;
    display: inline-block;
    width: fit-content;
}

/* Make list page use similar layout */
.article-list .article-item {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 60px 0;
    border-bottom: 1px solid #333;
}

.article-list .article-item:nth-child(even) {
    flex-direction: row-reverse;
}

.article-list .article-item .entry-image-link {
    flex: 1;
    display: block;
    overflow: hidden;
}

.article-list .article-item .article-thumb {
    width: 100%;
    height: 350px;
    object-fit: cover;
    margin-bottom: 0;
    border-radius: 0;
}

.article-list .article-item .article-info {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Override old styles */
.article-item {
    display: flex;
    flex-direction: row;
    margin-bottom: 0;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
}

.article-item:hover {
    transform: none;
}

.article-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Article Detail */
.article-detail h1 {
    font-size: 24px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.article-content {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.8;
}

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

.article-content img {
    max-width: 100%;
    margin: 10px 0;
    border: 1px solid var(--border-color);
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    margin-top: auto;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Utility */
.btn {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 2px;
    font-size: 13px;
}

.btn:hover {
    background-color: var(--accent-hover);
    color: #fff;
}

/* Breadcrumb */
.breadcrumb {
    padding: 10px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb span {
    margin: 0 5px;
}
