/* Custom styles for the blog */

.content-wrapper {
    position: relative;
    width: 80%;
    max-width: 1000px;
    margin: 4rem auto;
    display: flex;
    gap: 40px;
}

.sidebar {
    flex: 0 0 200px;
}

.content {
    flex: 1;
    max-width: 700px;
}

.tags-list {
    background: #F7FAFB;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #EBF2F6;
    position: sticky;
    top: 20px;
    text-align: center;
}

.tags-list h4 {
    margin: 0 0 20px 0;
    color: #50585D;
    font-size: 1.6rem;
    font-family: 'Open Sans', sans-serif;
    border-bottom: 1px solid #EBF2F6;
    padding-bottom: 10px;
}

.tag-item {
    display: block;
    color: #9EABB3;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.4rem;
    text-decoration: none;
    margin: 0 0 15px 0;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.tag-item:last-child {
    margin-bottom: 0;
}

.tag-item:hover {
    color: #57A3E8;
    text-decoration: none;
}

.tag-count {
    color: #BBC7CC;
    font-size: 1.2rem;
}

/* Fix post width */
.post {
    width: 100%;
    max-width: 700px;
    margin: 0;
    padding: 0;
}

/* Post content styles */
.post-content {
    width: 100%;
    max-width: 700px;
    padding: 0;
    margin: 0;
}

.post-content h1, 
.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #50585D;
}

.post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.post-content pre {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #F7FAFB;
    border-radius: 3px;
    overflow-x: auto;
}

.post-content pre code {
    padding: 0;
    background: transparent;
}

.post-title {
    margin: 1rem 0 2rem 0;
    color: #50585D;
}

.post-meta {
    display: block;
    margin: 1rem 0;
    color: #9EABB3;
}

/* Override original theme's post styles */
.content .post {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Responsive adjustments */
@media only screen and (max-width: 900px) {
    .content-wrapper {
        flex-direction: column;
        width: 90%;
        margin: 2rem auto;
    }
    
    .sidebar {
        flex: none;
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .tags-list {
        position: static;
    }
    
    .content .post {
        margin: 0;
    }
    
    .post,
    .post-content {
        width: 100%;
        padding: 0;
    }
}

@media only screen and (max-width: 500px) {
    .content-wrapper {
        width: auto;
        margin: 1rem 16px;
    }
    
    .sidebar {
        padding: 0;
    }
}