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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    color: #fafafa;
    line-height: 1.6;
}

.container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    min-height: 100vh;
}

.left-side, .right-side {
    padding: 20px;
}

.left-side {
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 15vh;
    min-height: 220px;
}

.right-side {
    background-color: #fafafa;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    color: #1a1a1a;
    flex: 1;
    min-height: 85vh;
}

.left-content {
    padding: 1rem;
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.right-content {
    max-width: 1200px;
    width: 100%;
    padding: 2rem;
}

/* Navigation */
.back-nav {
    margin-bottom: 1rem;
    align-self: flex-start;
    width: 100%;
}

.back-link {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

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

/* Page Header */
.page-header {
    margin-bottom: 1.5rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 1rem;
    color: #888;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Tags */
.filter-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-tag {
    background-color: transparent;
    color: #666;
    border: 1px solid #e5e5e5;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.filter-tag:hover {
    border-color: #999;
    color: #333;
}

.filter-tag.active {
    background-color: #1a1a1a;
    color: #fafafa;
    border-color: #1a1a1a;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.post-card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #d5d5d5;
}

.post-card-header {
    margin-bottom: 1rem;
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-category {
    font-size: 0.7rem;
    letter-spacing: 0.15rem;
    color: #999;
    text-transform: uppercase;
}

.post-date {
    font-size: 0.85rem;
    color: #999;
}

.post-card-title {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-card-title a:hover {
    color: #333;
}

.post-card-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* Tag Pills */
.post-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.tag-pill {
    background-color: #f5f5f5;
    color: #666;
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid #e5e5e5;
}

.tag-pill.more {
    background-color: transparent;
    border-style: dashed;
    color: #999;
}

/* Post Footer */
.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #000;
}

.post-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.reading-time,
.comment-count {
    color: #999;
    font-size: 0.85rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
    grid-column: 1 / -1;
}

.empty-state p {
    font-size: 1rem;
    color: #999;
}

/* Load More */
.load-more {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.load-more-btn {
    background-color: #1a1a1a;
    color: #fafafa;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.load-more-btn:hover {
    background-color: #2a2a2a;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .left-side {
        height: auto;
        min-height: 180px;
        padding: 15px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .left-content, .right-content {
        padding: 1.5rem;
    }

    .post-card {
        padding: 1.5rem;
    }

    .post-card-title {
        font-size: 1.1rem;
    }

    .filter-tags {
        gap: 0.4rem;
    }

    .filter-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .post-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .left-side {
        min-height: 160px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .post-stats {
        font-size: 0.8rem;
    }
}