/* Posts List Styles */
.posts-list {
    margin-top: 2em;
}

.post-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5em 0.75em;
    margin: 0 -0.75em;
    border-bottom: 1px solid var(--border-color);
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

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

.post-item:hover {
    background-color: var(--footnote-bg-color);
}

.post-title {
    flex: 1;
    margin-right: 1em;
}

.post-title a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.post-title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
    opacity: 0.7;
}

.post-date {
    flex-shrink: 0;
    font-size: 0.9em;
    color: var(--text-color);
    opacity: 0.7;
    font-weight: 400;
    font-family: "Newsreader", serif;
}

.page-content {
    margin-bottom: 1.5em;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25em;
        padding: 0.75em;
        margin: 0 -0.75em;
    }

    .post-title {
        margin-right: 0;
    }

    .post-date {
        font-size: 0.8em;
    }
}

/* Dark mode compatibility */
.dark-mode .post-item:hover {
    background-color: var(--footnote-hover-bg-color);
}
