/* Enhanced UI styles for the Affiliate Website */

/* Filter section enhancements */
.filters-section {
    background: linear-gradient(to right, rgba(var(--highlight-color-rgb), 0.05), rgba(var(--highlight-color-rgb), 0.02));
    border-radius: 12px;
    margin-bottom: 2rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filters-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border-radius: 30px;
    border: 1px solid rgba(var(--highlight-color-rgb), 0.3);
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.search-box input:focus {
    outline: none;
    border-color: rgba(var(--highlight-color-rgb), 0.7);
    box-shadow: 0 4px 10px rgba(var(--highlight-color-rgb), 0.15);
}

.search-box i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(var(--highlight-color-rgb), 0.8);
}

.filter-group {
    min-width: 180px;
}

.filter-group select {
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid rgba(var(--highlight-color-rgb), 0.3);
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.filter-group select:focus {
    outline: none;
    border-color: rgba(var(--highlight-color-rgb), 0.7);
    box-shadow: 0 4px 10px rgba(var(--highlight-color-rgb), 0.15);
}

.checkbox-filter {
    display: flex;
    align-items: center;
}

.checkbox-filter label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(var(--highlight-color-rgb), 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.checkbox-filter label:hover {
    background-color: rgba(var(--highlight-color-rgb), 0.1);
}

.checkbox-filter input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--highlight-color);
}

/* Offer cards enhancements */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.offer-card {
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--highlight-color-rgb), 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(var(--highlight-color-rgb), 0.3);
}

.offer-card .card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.offer-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.offer-card .card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.offer-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.4;
}

.offer-card .card-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.offer-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.offer-card .coupon-badge {
    display: inline-block;
    padding: 5px 12px;
    background-color: rgba(var(--highlight-color-rgb), 0.1);
    color: var(--highlight-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.offer-card .card-button {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--highlight-color);
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.offer-card .card-button:hover {
    background-color: var(--btn-hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(var(--highlight-color-rgb), 0.3);
}

/* Dark mode adjustments */
[data-theme="dark"] .search-box input,
[data-theme="dark"] .filter-group select,
[data-theme="dark"] .checkbox-filter label {
    background-color: rgba(30, 41, 59, 0.8);
    color: var(--text-color);
}

[data-theme="night"] .search-box input,
[data-theme="night"] .filter-group select,
[data-theme="night"] .checkbox-filter label {
    background-color: rgba(15, 23, 42, 0.8);
    color: var(--text-color);
}

/* Pagination enhancements */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 3rem 0 1rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-item, 
.pagination-arrow {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(var(--highlight-color-rgb), 0.2);
}

.pagination-item:hover, 
.pagination-arrow:hover {
    background-color: rgba(var(--highlight-color-rgb), 0.1);
    border-color: rgba(var(--highlight-color-rgb), 0.5);
}

.pagination-item.active {
    background-color: var(--highlight-color);
    color: white;
    box-shadow: 0 4px 8px rgba(var(--highlight-color-rgb), 0.3);
}

/* Responsiveness */
@media (max-width: 768px) {
    .filters-wrapper {
        flex-direction: column;
    }
    
    .search-box,
    .filter-group {
        width: 100%;
    }
    
    .offer-card .card-image {
        height: 180px;
    }
}
