/* Posts content styling */
.user-posts-container {
    padding: 10px;
}

/* Mobile-first grid layout */
.user-posts-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Tablet: 2 columns */
@media (min-width: 600px) {
    .user-posts-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Desktop: 3 columns */
@media (min-width: 900px) {
    .user-posts-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Large desktop: 4 columns */
@media (min-width: 1200px) {
    .user-posts-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

.user-post-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.user-post-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.user-post-item .post-thumbnail {
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: #f5f5f5;
}

.user-post-item .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.user-post-item .post-details {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.user-post-item h3 {
    margin: 0 0 8px;
    font-size: 1.1em;
    line-height: 1.3;
}

.user-post-item h3 a {
    color: #333;
    text-decoration: none;
}

.user-post-item h3 a:hover {
    color: #007bff;
}

.user-post-item .post-meta {
    color: #777;
    font-size: 0.85em;
    margin-bottom: 10px;
    order: 2;
}

.user-post-item .post-excerpt {
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
    order: 3;
    flex: 1;
}

.user-post-item .post-thumbnail .no-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    padding: 20px;
    text-align: center;
    line-height: 1.3;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 3px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
}

.pagination a:hover {
    background: #e5e5e5;
}

.pagination .current {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}