/* Post List in Detail View */
.post-list-container {
    max-width: 800px;
    margin: 4rem auto 2rem;
    padding-top: 3rem;
    border-top: 1px solid var(--gray-2);
}

.post-list-container h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.post-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.post-list-table th,
.post-list-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-2);
    color: var(--gray-7);
}

.post-list-table th {
    background-color: var(--gray-0);
    font-weight: 600;
    color: var(--gray-9);
    white-space: nowrap;
}

.post-list-table tr {
    cursor: pointer;
    transition: background-color 0.2s;
}

.post-list-table tr:hover {
    background-color: var(--gray-1);
}

.post-list-table tr.current-post {
    background-color: var(--primary-light);
}

.post-list-table tr.current-post td {
    color: var(--primary-dark);
    font-weight: 500;
}

.badge-sm {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--gray-2);
    color: var(--gray-7);
    font-weight: 600;
    display: inline-block;
}

/* Re-using badge colors logic simply */
.badge-sm[data-category="Design"] {
    color: #e03131;
    background: #fff5f5;
}

.badge-sm[data-category="Tech"] {
    color: #1971c2;
    background: #e7f5ff;
}

.badge-sm[data-category="Lifestyle"] {
    color: #2f9e44;
    background: #ebfbee;
}

.badge-sm[data-category="Inspiration"] {
    color: #fcc419;
    background: #fff9db;
}

.badge-sm[data-category="Backend"] {
    color: #862e9c;
    background: #f3f0ff;
}

/* Responsive Post List */
@media (max-width: 768px) {

    .post-list-table th:nth-child(3),
    .post-list-table td:nth-child(3),
    .post-list-table th:nth-child(4),
    .post-list-table td:nth-child(4) {
        display: none;
    }

    .post-list-table th,
    .post-list-table td {
        padding: 0.5rem;
    }
}