/* Ads Listing Wrapper */
.ads-listing-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Ads Grid */
.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Post Card */
.post-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

/* Post Card Types - Background colors */
.post-card.super {
    border-top: 3px solid #FFA000;
}

.post-card.vip {
    border-top: 3px solid #D32F2F;
}

.post-card.nra {
    border-top: 3px solid #1976D2;
}

.post-card.normal {
    border-top: 3px solid #6c757d;
}

/* Post Card Header */
.post-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 12px;
    color: #666;
    gap: 8px;
    flex-wrap: wrap;
}

.post-card-type {
    flex: 0 0 auto;
}

.post-card-label span {
    display: inline-block;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1 !important;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

.post-card.super .post-card-label span {
    background: #FFA000;
}

.post-card.vip .post-card-label span {
    background: #D32F2F;
}

.post-card.nra .post-card-label span {
    background: #1976D2;
}

.post-card.normal .post-card-label span {
    background: #6c757d;
}

.post-card-likes {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.post-card-likes i {
    font-size: 14px;
    color: #999;
}

.post-card-time {
    font-size: 12px;
    color: #999;
}

/* Post Card Body */
.post-card-body {
    display: flex;
    flex-wrap: wrap;
    padding: 12px;
}

/* Post Card Image */
.post-card-img {
    position: relative;
    flex: 0 0 130px;
    max-width: 130px;
}

.post-card-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 8px;
}

.post-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

/* Fake Ad Badge */
.post-card-fake {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 6px 12px;
    background: rgba(255, 59, 48, 0.95);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    z-index: 2;
}

/* Post Card Content */
.post-card-content {
    flex: 1;
    padding: 0 0 0 12px;
}

/* Cashback Badge */
.post-card-badge {
    display: flex;
    align-self: flex-start;
    margin-bottom: 4px;
}

.post-card-badge span {
    display: inline-block;
    padding: 4px 8px;
    background: #43A047;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
}

/* Post Card Description */
.post-card-desc h4 {
    transition: color 0.3s ease;
    margin: 0 0 6px 0 !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-desc p {
    margin: 0;
    font-size: 13px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* No Results */
.ads-no-results {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 12px;
}

.no-results-icon {
    font-size: 60px;
    color: #ddd;
    margin: 0 0 5px 0 !important;
}

.ads-no-results h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
    margin: 0 0 5px 0 !important;
}

.ads-no-results p {
    font-size: 16px;
    color: #666;
    margin: 0 !important;
}

/* Pagination */
.ads-pagination {
    display: flex;
    margin-top: 30px;
}

.ads-pagination ul.page-numbers {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.ads-pagination .page-numbers li {
    display: inline-block;
    margin: 0;
}

.ads-pagination .page-numbers a,
.ads-pagination .page-numbers span {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ads-pagination .page-numbers a:hover {
    background-color: #D32F2F;
    color: #fff;
    border-color: #D32F2F;
}

.ads-pagination .page-numbers .current {
    background-color: #D32F2F;
    color: #fff;
    border-color: #D32F2F;
}

.ads-pagination .page-numbers .dots {
    border: none;
    pointer-events: none;
}

.ads-pagination .page-numbers .prev,
.ads-pagination .page-numbers .next {
    font-weight: 600;
}

.ads-pagination .page-numbers i {
    font-size: 16px;
}

/* Category */

.ads-category-header {
    position: relative;
    margin-top: 20px;
}

.ads-category-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 2px 0 !important;
    color: #333;
}

.ads-category-header p {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    margin: 0 !important;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .ads-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .ads-listing-wrapper {
        padding: 15px;
    }

    .ads-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 15px;
    }

    .post-card-header {
        font-size: 11px;
        padding: 6px 12px;
    }

    .post-card-desc h4 {
        font-size: 15px;
    }

    .post-card-desc p {
        font-size: 12px;
    }

    .ads-pagination .page-numbers a,
    .ads-pagination .page-numbers span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .ads-grid {
        grid-template-columns: 1fr;
    }

    .post-card-header {
        flex-wrap: wrap;
        gap: 6px;
    }

    .post-card-img {
        flex: 0 0 115px;
        max-width: 115px;
    }

    .post-card-content {
        padding: 0 0 0 10px;
    }

    .ads-pagination .page-numbers {
        gap: 3px;
    }

    .ads-pagination .page-numbers a,
    .ads-pagination .page-numbers span {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }
}

/* Hover Effects */
@media (hover: hover) {
    .post-card:hover .post-card-desc h4 {
        color: #D32F2F;
    }
}