/* ========================================
   BIDFRESH PAGINATION COMPONENT
   Clean, reusable pagination styling
   ======================================== */

.bidfresh-pagination {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    width: 100%;
}

/* Pagination Info */
.pagination-info {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 400;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* Pagination Navigation */
.pagination-nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Items */
.page-item {
    display: list-item;
}

/* Base Page Link Styles */
.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: 1px solid transparent;
    min-height: 2.25rem;
}

/* Previous/Next Button Styles */
.prev-link,
.next-link {
    background-color: #f8fafc;
    color: #6b7280;
    border-color: #d1d5db;
    min-width: 5rem;
    gap: 0.25rem;
}

.prev-link:hover,
.next-link:hover {
    background-color: #e5e7eb;
    color: #374151;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.prev-link:active,
.next-link:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Number Link Styles */
.number-link {
    background-color: #ffffff;
    color: #374151;
    border-color: #d1d5db;
    min-width: 2.25rem;
    height: 2.25rem;
}

.number-link:hover {
    background-color: #f3f4f6;
    color: #111827;
    border-color: #9ca3af;
}

/* Active State */
.page-item.active .number-link {
    background-color: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    font-weight: 600;
}

/* Disabled State */
.page-item.disabled .page-link {
    background-color: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-item.disabled .page-link:hover {
    background-color: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
    transform: none;
    box-shadow: none;
}

/* Chevron Icons */
.chevron-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.prev-link .chevron-icon {
    transform: rotate(180deg);
}

/* Focus States */
.page-link:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Responsive Design */
@media (max-width: 640px) {
    .bidfresh-pagination {
        margin-top: 1.5rem;
        padding: 1rem 0;
    }
    
    .pagination-list {
        gap: 0.25rem;
    }
    
    .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.8125rem;
        min-height: 2rem;
    }
    
    .prev-link,
    .next-link {
        min-width: 4rem;
        padding: 0.375rem 0.5rem;
    }
    
    .number-link {
        min-width: 2rem;
        height: 2rem;
    }
    
    .chevron-icon {
        width: 0.875rem;
        height: 0.875rem;
    }
}

@media (max-width: 480px) {
    .pagination-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-link {
        padding: 0.25rem 0.375rem;
        font-size: 0.75rem;
    }
    
    .prev-link,
    .next-link {
        min-width: 3.5rem;
    }
    
    .number-link {
        min-width: 1.75rem;
        height: 1.75rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .page-link {
        border-width: 2px;
    }
    
    .page-item.active .number-link {
        border-width: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .page-link {
        transition: none;
    }
    
    .prev-link:hover,
    .next-link:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .bidfresh-pagination {
        display: none;
    }
}
