/* shopAccount/public/assets/css/tag/contentTabForum.css */

.forum-tab-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

.forum-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.forum-main-title {
    font-size: 24px;
    color: #1e293b;
    margin: 0;
}

.forum-total-badge {
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Grid Layout */
.forum-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.forum-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.forum-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.forum-card.is-resolved {
    border-left: 4px solid #22c55e;
}

/* Card Thumbnail */
.card-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    background: #f1f5f9;
}

.card-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.resolved-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #22c55e;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

/* Card Body */
.card-body-wrapper {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-post-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.card-post-title a {
    color: #0f172a;
    text-decoration: none;
}

.card-post-title a:hover {
    color: #2563eb;
}

.card-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
}

.card-post-excerpt {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

/* Card Footer */
.card-footer-wrapper {
    padding: 12px 15px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    text-align: right;
}

.btn-read-more {
    font-size: 13px;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.btn-read-more:hover {
    text-decoration: underline;
}

/* Phân trang */
.forum-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 35px;
}

.pag-btn, .pag-num {
    padding: 8px 14px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
}

.pag-num.is-active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.pag-btn:hover, .pag-num:hover:not(.is-active) {
    background: #f1f5f9;
}

.empty-forum-text {
    grid-column: 1 / -1;
    text-align: center;
    color: #64748b;
    padding: 40px 0;
}