/**
 * BuddyBoss User Posts Tab Styles
 * 
 * Uses BuddyBoss CSS custom properties for consistent theming.
 */

/* Container */
.bb-user-posts-wrapper {
    padding: 0;
}

/* Post List */
.bb-user-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 20px;
}

.bb-user-post-item {
    margin: 0;
    padding: 0;
}

/* Card Layout */
.bb-post-card {
    display: flex;
    background: var(--bb-content-background-color, #fff);
    border-radius: var(--bb-block-radius, 6px);
    overflow: hidden;
    border: 1px solid var(--bb-content-border-color, #e7e9ec);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.bb-post-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Thumbnail */
.bb-post-card-thumbnail {
    flex: 0 0 200px;
    max-width: 200px;
    overflow: hidden;
}

.bb-post-card-thumbnail a {
    display: block;
    height: 100%;
}

.bb-post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card Content */
.bb-post-card-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.bb-post-card-header {
    margin-bottom: 12px;
}

/* Title */
.bb-post-card-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

.bb-post-card-title a {
    color: var(--bb-headings-color, #122b46);
    text-decoration: none;
}

.bb-post-card-title a:hover {
    color: var(--bb-primary-color, #007CFF);
}

/* Meta */
.bb-post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: var(--bb-alternate-text-color, #6b7280);
}

.bb-post-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bb-post-card-meta i {
    font-size: 14px;
}

/* Excerpt */
.bb-post-card-excerpt {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: var(--bb-body-text-color, #4e5c6e);
    margin-bottom: 15px;
}

/* Footer */
.bb-post-card-footer {
    margin-top: auto;
}

.bb-post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bb-primary-color, #007CFF);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.bb-post-read-more:hover {
    gap: 8px;
}

.bb-post-read-more i {
    font-size: 12px;
}

/* Tab Count Badge */
#user-posts .count {
    background: var(--bb-primary-color, #007CFF);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

/* Pagination */
.bb-user-posts-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.bb-user-posts-pagination ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.bb-user-posts-pagination li {
    margin: 0;
}

.bb-user-posts-pagination a,
.bb-user-posts-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--bb-block-radius, 6px);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bb-user-posts-pagination a {
    background: var(--bb-content-background-color, #fff);
    border: 1px solid var(--bb-content-border-color, #e7e9ec);
    color: var(--bb-body-text-color, #4e5c6e);
}

.bb-user-posts-pagination a:hover {
    background: var(--bb-primary-color, #007CFF);
    border-color: var(--bb-primary-color, #007CFF);
    color: #fff;
}

.bb-user-posts-pagination .current {
    background: var(--bb-primary-color, #007CFF);
    border: 1px solid var(--bb-primary-color, #007CFF);
    color: #fff;
}

/* Empty State */
.bb-user-posts-empty {
    text-align: center;
    padding: 40px 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .bb-post-card {
        flex-direction: column;
    }

    .bb-post-card-thumbnail {
        flex: none;
        max-width: none;
        height: 180px;
    }

    .bb-post-card-content {
        padding: 15px;
    }

    .bb-post-card-title {
        font-size: 16px;
    }
}
