:root {
    --background-primary: #1a1a2e;
    --background-secondary: #16213e;
    --text-primary: #e2e2e2;
    --text-secondary: #b4b4b4;
    --accent-color: #4a90e2;
    --border-color: #2c3e50;
    --hover-color: #34495e;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

body {
    background: linear-gradient(135deg, var(--background-primary), var(--background-secondary));
    color: var(--text-primary);
    font-family: 'Lora', Georgia, serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
}

.blog-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
}

.blog-main {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.blog-post {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.post-header {
    margin-bottom: 1.5rem;
}

.post-title {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.post-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-sidebar {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-title {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.category-list, .recent-posts {
    list-style: none;
    padding: 0;
}

.category-list li, .recent-posts li {
    margin-bottom: 0.8rem;
}

.category-list a, .recent-posts a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-list a:hover, .recent-posts a:hover {
    color: var(--accent-color);
}

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

::-webkit-scrollbar-track {
    background: var(--background-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-container {
        grid-template-columns: 1fr;
        margin: 1rem;
        padding: 1rem;
    }
    
    .blog-main {
        padding: 1rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
}
