/* 
   AffiliateReviewz - Table-based Offers Page Styles
   Version: 1.0
   Inspired by AffPlus.com layout
*/

/* Main Layout */
.offers-page {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
	background-color: #edf2f1;
}

.offers-sidebar {
    grid-column: 1;
}

.offers-main {
    grid-column: 2;
}

/* Filter Cards */
.filter-card {
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.filter-header {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.filter-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.filter-body {
    padding: 12px 15px;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.filter-item {
    margin-bottom: 8px;
}

.filter-item a {
    display: block;
    padding: 6px 10px;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.filter-item a:hover {
    background-color: #f1f3f5;
}

.filter-item.active a {
    background-color: #186b8b;
    color: white;
}

.range-slider {
    padding: 10px 0;
}

.range-slider-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.range-slider input {
    width: 100%;
}

/* Search Form */
.search-form {
    width: 100%;
}

.search-form .input-group {
    display: flex;
}

.search-form input {
    flex-grow: 1;
    border: 1px solid #ced4da;
    border-radius: 4px 0 0 4px;
    padding: 8px 1px;
    font-size: 0.9rem;
}

.search-form button {
    border-radius: 0 4px 4px 0;
    padding: 8px 12px;
}

/* Quick Filter Bar */
.quick-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.filter-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background-color: #e9ecef;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #495057;
}

.remove-filter {
    margin-left: 5px;
    color: #6c757d;
    text-decoration: none;
}

.remove-filter:hover {
    color: #dc3545;
}

.reset-filters {
    margin-left: 10px;
    font-size: 0.85rem;
    color: #dc3545;
    text-decoration: none;
}

.reset-filters:hover {
    text-decoration: underline;
}

.quick-search-form .input-group {
    width: 250px;
}

/* Table-based Layout */
.offers-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.offers-table thead th {
background-color: #34475b;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #fbfbfb;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.offers-table tbody tr {
    background-color: #fff;
    transition: background-color 0.2s ease;
}

.offers-table tbody tr:hover {
    background-color: #f1f9ff;
}

.offers-table tbody tr.featured-offer {
    background-color: #fff8e1;
}

.offers-table tbody tr.featured-offer:hover {
    background-color: #ffecb3;
}

.offers-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

/* Offer Title Column */
.offer-title {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 4px;
}

.offer-network {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
}

.network-logo-small {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    object-fit: contain;
    border-radius: 50%;
}

/* Offer Details */
.offer-payout {
    font-weight: 700;
    color: #28a745;
    white-space: nowrap;
}

.offer-payout-type {
    display: inline-block;
    padding: 2px 6px;
    background-color: #346ea8;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #ffffff;
    margin-top: 4px;
}

.offer-countries {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Action Buttons */
.offer-actions {
    white-space: nowrap;
}

.offer-actions .btn {
    padding: 4px 8px;
    font-size: 0.85rem;
    margin-right: 5px;
}

/* Featured Badge */
.featured-badge {
    display: inline-block;
    padding: 2px 6px;
    background-color: #ffc107;
    color: #212529;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

/* Category Badge */
.category-badge {
    display: inline-block;
    padding: 2px 6px;
    background-color: #346ea8;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #ffffff;
    margin-top: 4px;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 30px 0;
}

.page-link {
    display: inline-block;
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: #e9ecef;
}

.page-link.current {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.page-link.disabled {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
}

.page-link.ellipsis {
    border: none;
    background: none;
    padding: 8px 5px;
}

/* Header Styles */
.offers-header {
    background-color: #186b8b;
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
    text-align: center;
}

.offers-header h1 {
    margin: 0 0 10px 0;
    font-size: 2rem;
}

.offers-header p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* No Results Styles */
.no-results {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.no-results .icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.no-results p {
    margin-bottom: 10px;
    color: #333;
}

.no-results .btn {
    margin-top: 15px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .offers-page {
        grid-template-columns: 220px 1fr;
    }
    
    .offers-table th:nth-child(3),
    .offers-table td:nth-child(3) {
        display: none;
    }
}

@media (max-width: 768px) {
    .offers-page {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .offers-sidebar {
        grid-column: 1;
        grid-row: 1;
    }
    
    .offers-main {
        grid-column: 1;
        grid-row: 2;
    }
    
    .offers-table th:nth-child(4),
    .offers-table td:nth-child(4) {
        display: none;
    }
}

@media (max-width: 576px) {
    .offers-table {
        font-size: 0.9rem;
    }
    
    .offers-table th,
    .offers-table td {
        padding: 8px 10px;
    }
    
    .offer-actions .btn {
        padding: 3px 6px;
        font-size: 0.8rem;
    }
}