/* Post Styles */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.post-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.post-item h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.post-item h2 a {
    color: #181c32;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-item h2 a:hover {
    color: #3e97ff;
}

.post-thumbnail {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
}

.post-thumbnail img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-thumbnail:hover img {
    transform: scale(1.05);
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.post-tags .tag {
    background: #f5f8fa;
    color: #3e97ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags .tag:hover {
    background: #3e97ff;
    color: #ffffff;
}

.post-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    color: #a1a5b7;
    font-size: 0.875rem;
}

.post-meta .created-by {
    font-weight: 500;
    color: #5e6278;
}

/* Post Item Sidebar */
.post-item-sidebar {
    padding: 10px 0;
    border-bottom: 1px solid #eff2f5;
}

.post-item-sidebar:last-child {
    border-bottom: none;
}

.post-item-sidebar a {
    text-decoration: none;
}

.post-item-sidebar a:hover {
    color: #3e97ff !important;
}

/* Post Content */
#post_content {
    line-height: 1.8;
    font-size: 1.1rem;
}

#post_content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

#post_content h1,
#post_content h2,
#post_content h3,
#post_content h4,
#post_content h5,
#post_content h6 {
    margin: 25px 0 15px 0;
    font-weight: 700;
}

#post_content p {
    margin-bottom: 15px;
}

#post_content ul,
#post_content ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

#post_content blockquote {
    border-left: 4px solid #3e97ff;
    padding: 15px 20px;
    margin: 20px 0;
    background: #f5f8fa;
    border-radius: 0 8px 8px 0;
}

#post_content pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 15px 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

#post_content code {
    background: #f5f8fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

#post_content pre code {
    background: transparent;
    padding: 0;
}

#post_content a {
    color: #3e97ff;
    text-decoration: none;
}

#post_content a:hover {
    text-decoration: underline;
}

#post_content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

#post_content th,
#post_content td {
    border: 1px solid #eff2f5;
    padding: 12px 15px;
    text-align: left;
}

#post_content th {
    background: #f5f8fa;
    font-weight: 600;
}

#post_content tr:hover {
    background: #f5f8fa;
}

/* Responsive */
@media (max-width: 768px) {
    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-meta {
        align-items: flex-start;
        margin-top: 10px;
    }
    
    .post-item h2 {
        font-size: 1.25rem;
    }
}