/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f7fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.author-name {
    font-size: 18px;
    font-weight: bold;
    color: #48bb78;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-name:hover {
    color: #38a169;
}

.nav-right {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #f7fafc;
    color: #2d3748;
}

.nav-link.active {
    background-color: #ed8936;
    color: white;
}

/* Main Container */
.main-container {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    gap: 40px;
    padding: 0 20px;
}

/* Blog Post Content */
.blog-post-content {
    flex: 3;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Post Header */
.post-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
}

.post-category {
    display: inline-block;
    background: #4299e1;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.post-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2d3748;
    line-height: 1.2;
    margin-bottom: 16px;
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 0.875rem;
    color: #718096;
}

/* Post Body */
.post-body h2 {
    font-size: 1.75rem;
    font-weight: bold;
    color: #2d3748;
    margin: 40px 0 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.post-body p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.post-body ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.post-body li {
    margin-bottom: 10px;
}

.post-body blockquote {
    border-left: 4px solid #4299e1;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #4a5568;
}

.post-body blockquote footer {
    margin-top: 10px;
    font-style: normal;
    font-weight: bold;
    color: #718096;
}

/* Code Blocks */
/* pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
}

code {
    font-family: 'Fira Code', 'Courier New', monospace;
} */

/* Tables */
.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    border: 1px solid #e2e8f0;
    padding: 12px;
    text-align: left;
}

table th {
    background: #edf2f7;
    font-weight: bold;
}

/* Conclusion */
.conclusion {
    margin-top: 40px;
    padding: 20px;
    background: #edf2f7;
    border-left: 4px solid #48bb78;
    border-radius: 4px;
}

.conclusion h3 {
    margin-bottom: 10px;
}

/* Sidebar */
.sidebar {
    flex: 1;
}

.sidebar > div {
    position: sticky;
  top: 1rem;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.sidebar h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.table-of-contents ul {
    list-style: none;
}

.table-of-contents li {
    margin-bottom: 10px;
}

.table-of-contents a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: #4299e1;
}

.related-posts-widget ul {
    list-style: none;
}

.related-posts-widget li {
    margin-bottom: 10px;
}

.related-posts-widget a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-posts-widget a:hover {
    color: #4299e1;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    padding: 8px 12px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.share-btn:hover {
    opacity: 0.8;
}

.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.facebook { background: #1877f2; }

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
}

.footer p {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        display: flex;
        gap: 30px;
        overflow-x: auto;
    }
    
    .sidebar > div {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }
    
    .blog-post-content {
        padding: 20px;
    }
}


