/**
 * SCDEV My Posts List Styles
 * 
 * @package SCDEV_Composer
 * @version 1.0.0
 */

/* ==========================================================================
   My Posts List Styles
   ========================================================================== */

.scdev-my-posts {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.scdev-my-posts-empty {
    padding: 60px 20px;
    text-align: center;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.scdev-my-posts-empty p {
    margin: 0;
    font-size: 16px;
    color: #666;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.post-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}

.post-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.post-item.deleting {
    opacity: 0.5;
    pointer-events: none;
}

/* Post Thumbnail */
.post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f1;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post Content */
.post-content {
    padding: 20px;
}

.post-title {
    margin: 0 0 10px;
    font-size: 18px;
}

.post-title a {
    color: #1e1e1e;
    text-decoration: none;
    transition: color 0.2s;
}

.post-title a:hover {
    color: #2271b1;
}

/* Post Meta */
.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
}

.post-status {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.post-status.status-publish {
    background: #d7f0db;
    color: #1e4620;
}

.post-status.status-draft {
    background: #f0f6fc;
    color: #135e96;
}

.post-status.status-pending {
    background: #fcf9e8;
    color: #614a07;
}

/* Post Excerpt */
.post-excerpt {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Post Actions */
.post-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f1;
}

.post-actions .btn-view,
.post-actions .btn-edit,
.post-actions .btn-delete {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.post-actions .btn-view {
    background: #f0f0f1;
    color: #2c3338;
}

.post-actions .btn-view:hover {
    background: #dcdcde;
}

.post-actions .btn-edit {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.post-actions .btn-edit:hover {
    background: #135e96;
    border-color: #135e96;
}

.post-actions .btn-delete {
    background: #fff;
    color: #d63638;
    border-color: #d63638;
}

.post-actions .btn-delete:hover {
    background: #d63638;
    color: #fff;
}

/* Pagination */
.posts-pagination {
    margin-top: 40px;
    text-align: center;
}

.posts-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #2c3338;
    text-decoration: none;
    transition: all 0.2s;
}

/* No duplicate CSS rules found in this file (first 200 lines). */

.posts-pagination .page-numbers:hover {
    background: #f0f0f1;
}

.posts-pagination .page-numbers.current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

/* Loading State */
.scdev-my-posts.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-actions {
        flex-direction: column;
    }
    
    .post-actions .btn-view,
    .post-actions .btn-edit,
    .post-actions .btn-delete {
        width: 100%;
    }
}
